Skip to content

Commit dcf4084

Browse files
authored
[Compute] vm create --count mode, support vnet and subnet configuration (#17660)
* [Compute] vm create --count mode, support vnet and subnet configuration * 17649
1 parent fa56bf5 commit dcf4084

File tree

3 files changed

+3764
-491
lines changed

3 files changed

+3764
-491
lines changed

src/azure-cli/azure/cli/command_modules/vm/_validators.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1770,7 +1770,8 @@ def _validate_vmss_create_host_group(cmd, namespace):
17701770

17711771
def _validate_count(namespace):
17721772
if namespace.count < 2 or namespace.count > 250:
1773-
raise ValidationError('--count should be in [2, 250]')
1773+
raise ValidationError(
1774+
'--count should be in [2, 250]. Please make sure your subscription has enough quota of resources')
17741775
banned_params = [
17751776
namespace.attach_data_disks,
17761777
namespace.attach_os_disk,
@@ -1785,9 +1786,7 @@ def _validate_count(namespace):
17851786
namespace.public_ip_address_dns_name,
17861787
namespace.storage_account,
17871788
namespace.storage_container_name,
1788-
namespace.subnet,
17891789
namespace.use_unmanaged_disk,
1790-
namespace.vnet_name
17911790
]
17921791
params_str = [
17931792
'--attach-data-disks',

0 commit comments

Comments
 (0)