Closed
Description
openedon Jul 13, 2021
Please correct me if there is a better place to ask questions for Azure's Python SDK.
Could you please let me know if it is possible to create a VM with a specific OS disk type, as it is possible when creating a VM from the Azure Portal? Below is an example of it:
Currently, I am creating the VM using the following call (azure-mgmt-compute==13.0.0):
vm_poller = compute_client.virtual_machines.create_or_update(
resource_group_name=azure_resource_group,
vm_name=vm_name,
parameters={'location': 'southcentralus', 'os_profile': {'computer_name': 'doodad', 'admin_username': '...', 'admin_password': '...', 'custom_data': ...'}, 'hardware_profile': {'vm_size': 'Standard_DS1_v2'}, 'storage_profile': {'image_reference': {'offer': 'UbuntuServer', 'publisher': 'Canonical', 'sku': '18.04-LTS', 'urn': 'Canonical:UbuntuServer:18.04-LTS:latest', 'urnAlias': 'UbuntuLTS', 'version': 'latest'}}, 'network_profile': {'network_interfaces': [{'id': '/subscriptions/.../resourceGroups/doodadca79a1/providers/Microsoft.Network/networkInterfaces/myNic'}]}, 'tags': {'user': 'jedrzej', 'log_path': 'doodad_exist_test'}, 'identity': {'type': <ResourceIdentityType.system_assigned: 'SystemAssigned'>}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Labels
This issue is related to a management-plane library.Workflow: This issue is responsible by Azure service team.Issues that are reported by GitHub users external to the Azure organization.Workflow: This issue needs attention from Azure service team or SDK teamThe issue doesn't require a change to the product in order to be resolved. Most issues start as that