anyone proficient in azure SDK for python? I'm trying to create many VM's using an image that I captured from another VM. Questions:
- How do I put the custom image for deploying?
poller = compute_client.virtual_machines.begin_create_or_update(RESOURCE_GROUP_NAME, VM_NAME,
{
"location": LOCATION,
"storage_profile": {
"image_reference": {
"publisher": 'Canonical',
"offer": "UbuntuServer",
"sku": "18.04-LTS",
"version": "latest"
}
}
}
- How do I give custom data(metadata) to the instances? (the metadata will change from time to time)
This is the article I am following, https://docs.microsoft.com/en-us/azure/developer/python/azure-sdk-example-virtual-machines?tabs=cmd
Any help is appreciated.