Azure / azure-rest-api-specs

The source for REST API specifications for Microsoft Azure.
MIT License
2.69k stars 5.12k forks source link

Run custom startup scripts when provisioning an Azure VM via python SDK #26472

Open rachelywong opened 1 year ago

rachelywong commented 1 year ago

Is your feature request related to a problem? Please describe.

I would like to be able to run custom Python startup scripts when provisioning a VM via the python SDK.

I've been working closely with the Azure VM support team to create a provision_vm.py script that will auto create Azure VMs. Previously, I used GCP to do so and I was able to add a startup script to be run each time a VM is provisioned. It seems Azure does not have this functionality, and this was confirmed by the Azure support team. They suggested I create an issue here.

I was directed to create an issue from azure-sdk-for-python. You can find that issue here.

Describe the solution you'd like

Documentation on GCP startup scripts. It would be nice to have this option in Azure.

Describe alternatives you've considered

Staying with GCP because they have this functionality.

ChenxiJiang333 commented 1 year ago

Related swagger might be https://github.com/Azure/azure-rest-api-specs/blob/main/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-07-01/virtualMachine.json#L3076.