Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
mode, help
  • Loading branch information
qwordy committed Mar 17, 2021
commit 007171b9675a1f90949df48765ac187f40752ad5
2 changes: 1 addition & 1 deletion src/azure-cli/azure/cli/command_modules/vm/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def load_arguments(self, _):
c.argument('platform_fault_domain', min_api='2020-06-01',
help='Specify the scale set logical fault domain into which the virtual machine will be created. By default, the virtual machine will be automatically assigned to a fault domain that best maintains balance across available fault domains. This is applicable only if the virtualMachineScaleSet property of this virtual machine is set. The virtual machine scale set that is referenced, must have platform fault domain count. This property cannot be updated once the virtual machine is created. Fault domain assignment can be viewed in the virtual machine instance view')
c.argument('count', type=int, is_preview=True,
help='Number of virtual machines to create. Each VM has its own public IP, NIC. VNET and NSG are shared. When --count is specified, --attach-data-disks, --attach-os-disk, --boot-diagnostics-storage, --computer-name, --host, --host-group, --nics, --os-disk-name, --private-ip-address, --public-ip-address, --public-ip-address-dns-name, --storage-account, --storage-container-name, --subnet, --use-unmanaged-disk, --vnet-name are not allowed.')
help='Number of virtual machines to create. They will be created in parallel. Each VM has its own public IP, NIC. VNET and NSG are shared. It is recommended that no existing public IP, NIC, VNET and NSG are in resource group. When --count is specified, --attach-data-disks, --attach-os-disk, --boot-diagnostics-storage, --computer-name, --host, --host-group, --nics, --os-disk-name, --private-ip-address, --public-ip-address, --public-ip-address-dns-name, --storage-account, --storage-container-name, --subnet, --use-unmanaged-disk, --vnet-name are not allowed.')

with self.argument_context('vm create', arg_group='Storage') as c:
c.argument('attach_os_disk', help='Attach an existing OS disk to the VM. Can use the name or ID of a managed disk or the URI to an unmanaged disk VHD.')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ def build_public_ip_resource(cmd, name, location, tags, address_allocation, dns_
public_ip['name'] = "[concat('{}', copyIndex())]".format(name)
public_ip['copy'] = {
'name': 'publicipcopy',
'mode': 'parallel',
'count': count
}

Expand Down Expand Up @@ -167,6 +168,7 @@ def build_nic_resource(_, name, location, tags, vm_name, subnet_id, private_ip_a
nic['name'] = "[concat('{}', copyIndex())]".format(name)
nic['copy'] = {
'name': 'niccopy',
'mode': 'parallel',
'count': count
}

Expand Down Expand Up @@ -519,6 +521,7 @@ def _build_storage_profile():
if count:
vm['copy'] = {
'name': 'vmcopy',
'mode': 'parallel',
'count': count
}
vm['name'] = "[concat('{}', copyIndex())]".format(name)
Expand Down