Instance (Virtual Machine)
Creating a virtual machine with minimal parameters (standard ssd)
resources:
- type: "Microsoft.Network/networkInterfaces"
name: nic1
props:
resource_group: rg1
ip_configurations:
- name: ipconfig1
subnet:
id: "@Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"
private_ip_allocation_method: Dynamic
- type: "Microsoft.Compute/virtualMachines"
name: vm1
props:
resource_group: rg1
hardware_profile:
vm_size: Standard_B2pts_v2
os_profile:
computer_name: testvm
admin_username: user1
admin_password: P@ssw0rd1234!
network_profile:
network_interfaces:
- id: "@Microsoft.Network/networkInterfaces/nic1"
storage_profile:
image_reference:
publisher: Canonical
offer: ubuntu-24_04-lts
sku: server
version: latest
os_disk:
create_option: FromImage
managed_disk:
storage_account_type: StandardSSD_LRS
disk_size_gb: 60Example price for above configuration
Creating a virtual machine with minimal parameters (premium ssd)
Example price for above configuration
Creating a virtual machine with minimal parameters (premium ssd v2)
Example price for above configuration
Last updated
Was this helpful?