Skip to content

Is it possible to create a VM with OS disk type different than Premium SSD? #19786

Closed

Description

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:

Screenshot from 2021-07-13 13-31-40

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

Compute - VMMgmtThis issue is related to a management-plane library.Service AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions