Azure / azure-cli

Azure Command-Line Interface
MIT License
4.03k stars 3.01k forks source link

Azure CLI unable to create VM with 2 NICs #18780

Closed AvRajath closed 3 years ago

AvRajath commented 3 years ago

https://github.com/Azure/azure-cli/issues/18109

Opening a new issue as the old issue was closed due to no response.

AvRajath commented 3 years ago

Here is the requested info:

PS C:\Users\rav.INFOBLOX> az cloud show { "endpoints": { "activeDirectory": "https://login.microsoftonline.com/", "activeDirectoryDataLakeResourceId": null, "activeDirectoryGraphResourceId": "https://graph.windows.net/", "activeDirectoryResourceId": "https://management.infoblox.onmicrosoft.com/2c4d956f-20d4-41b5-b012-105ceb99613e", "appInsightsResourceId": null, "appInsightsTelemetryChannelResourceId": null, "attestationResourceId": null, "azmirrorStorageAccountResourceId": null, "batchResourceId": null, "gallery": "https://providers.infoblox.local:30016/", "logAnalyticsResourceId": null, "management": "https://management.blr1.azurestackeng.inblr.infoblox.com", "mediaResourceId": null, "microsoftGraphResourceId": null, "ossrdbmsResourceId": null, "portal": null, "resourceManager": "https://management.blr1.azurestackeng.inblr.infoblox.com", "sqlManagement": null, "synapseAnalyticsResourceId": null, "vmImageAliasDoc": null }, "isActive": true, "name": "user1", "profile": "2019-03-01-hybrid", "suffixes": { "acrLoginServerEndpoint": null, "attestationEndpoint": null, "azureDatalakeAnalyticsCatalogAndJobEndpoint": null, "azureDatalakeStoreFileSystemEndpoint": null, "keyvaultDns": ".vault.blr1.azurestackeng.inblr.infoblox.com", "mariadbServerEndpoint": null, "mhsmDns": null, "mysqlServerEndpoint": null, "postgresqlServerEndpoint": null, "sqlServerHostname": null, "storageEndpoint": "blr1.azurestackeng.inblr.infoblox.com", "storageSyncEndpoint": null, "synapseAnalyticsEndpoint": null } }

PS C:\Users\rav.INFOBLOX> az vm create --resource-group "res-engg" --name "ubuntu-vm" --image "Canonical:UbuntuServer:18.04-LTS:latest" --admin-username "demouser" --admin-password "Passs" --location blr1 --size Standard_DS12_V2 --nics rav-nic-lan1 rav-nic-mgmt --debug cli.knack.cli: Command arguments: ['vm', 'create', '--resource-group', 'res-engg', '--name', 'ubuntu-vm', '--image', 'Canonical:UbuntuServer:18.04-LTS:latest', '--admin-username', 'demouser', '--admin-password', 'Infoblox@123', '--location', 'blr1', '--size', 'Standard_DS12_V2', '--nics', 'rav-nic-lan1', 'rav-nic-mgmt', '--debug'] cli.knack.cli: init debug log: Enable color in terminal. Init colorama. cli.knack.cli: Event: Cli.PreExecute [] cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x02614100>, <function OutputProducer.on_global_arguments at 0x02780F58>, <function CLIQuery.on_global_arguments at 0x027A6B68>] cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate [] cli.azure.cli.core: Modules found from index for 'vm': ['azure.cli.command_modules.vm'] cli.azure.cli.core: Loading command modules: cli.azure.cli.core: Name Load Time Groups Commands cli.azure.cli.core: vm 0.434 44 167 cli.azure.cli.core: Total (1) 0.434 44 167 cli.azure.cli.core: Loaded 44 groups, 167 commands. cli.azure.cli.core: Found a match in the command table. cli.azure.cli.core: Raw command : vm create cli.azure.cli.core: Command table: vm create cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x042C1070>] cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\rav.INFOBLOX.azure\commands\2021-07-05.12-38-21.vm_create.12380.log'. az_command_data_logger: command args: vm create --resource-group {} --name {} --image {} --admin-username {} --admin-password {} --location {} --size {} --nics {} {} --debug cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x043040B8>, <function register_global_query_examples_argument..register_query_examples at 0x04314808>] cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad [] cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x04314850>, <function register_cache_arguments..add_cache_arguments at 0x043148E0>] cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded [] cli.knack.cli: Event: CommandInvoker.OnPreParseArgs [] cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x02780FA0>, <function CLIQuery.handle_query_parameter at 0x027A6BB0>, <function register_global_query_examples_argument..handle_example_parameter at 0x043147C0>, <function register_ids_argument..parse_ids_arguments at 0x04314898>] cli.azure.cli.core.commands.client_factory: Getting management service client client_type=ComputeManagementClient cli.azure.cli.core.commands.client_factory: Getting management service client client_type=ComputeManagementClient cli.azure.cli.core.adal_authentication: AdalAuthentication.get_token invoked by Track 2 SDK with scopes=('https://management.infoblox.onmicrosoft.com/2c4d956f-20d4-41b5-b012-105ceb99613e/.default',) cli.azure.cli.core._profile: Retrieving token from ADAL for resource 'https://management.infoblox.onmicrosoft.com/2c4d956f-20d4-41b5-b012-105ceb99613e' cli.azure.cli.core.util: attempting to read file C:\Users\rav.INFOBLOX.azure\accessTokens.json as utf-8-sig adal-python: e6359c31-cb80-4466-bf9d-e3fb6dce6f77 - Authority:Performing instance discovery: ... adal-python: e6359c31-cb80-4466-bf9d-e3fb6dce6f77 - Authority:Performing static instance discovery adal-python: e6359c31-cb80-4466-bf9d-e3fb6dce6f77 - Authority:Authority validated via static instance discovery adal-python: e6359c31-cb80-4466-bf9d-e3fb6dce6f77 - TokenRequest:Getting token from cache with refresh if necessary. adal-python: e6359c31-cb80-4466-bf9d-e3fb6dce6f77 - CacheDriver:finding with query keys: {'_clientId': '...', 'userId': '...'} adal-python: e6359c31-cb80-4466-bf9d-e3fb6dce6f77 - CacheDriver:Looking for potential cache entries: {'_clientId': '...', 'userId': '...'} adal-python: e6359c31-cb80-4466-bf9d-e3fb6dce6f77 - CacheDriver:Found 4 potential entries. adal-python: e6359c31-cb80-4466-bf9d-e3fb6dce6f77 - CacheDriver:Resource specific token found. adal-python: e6359c31-cb80-4466-bf9d-e3fb6dce6f77 - CacheDriver:Returning token from cache lookup, AccessTokenId: b'1g88NqXDQgHuoVbzpIRNbZnjx7u3GVPOO074x7wuYdM=', RefreshTokenId: b'nad0vNgkRFiWQRe4frn1J3zyOTQxe0sFAFMYMBi7rWc=' cli.azure.cli.core.sdk.policies: Request URL: 'https://management.blr1.azurestackeng.inblr.infoblox.com/subscriptions/d698561a-d8c5-47e0-86f4-02e20e9082ac/providers/Microsoft.Compute/locations/blr1/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions?$top=1&$orderby=name%20desc&api-version=2017-12-01' cli.azure.cli.core.sdk.policies: Request method: 'GET' cli.azure.cli.core.sdk.policies: Request headers: cli.azure.cli.core.sdk.policies: 'Accept': 'application/json' cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': 'c7be88ae-dd5f-11eb-b6e0-e4b97a61bbea' cli.azure.cli.core.sdk.policies: 'CommandName': 'vm create' cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--resource-group --name --image --admin-username --admin-password --location --size --nics --debug' cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.25.0 (MSI) azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.9 (Windows-10-10.0.19041-SP0)' cli.azure.cli.core.sdk.policies: 'Authorization': '' cli.azure.cli.core.sdk.policies: Request body: cli.azure.cli.core.sdk.policies: This request has no body urllib3.connectionpool: Starting new HTTPS connection (1): management.blr1.azurestackeng.inblr.infoblox.com:443 urllib3.connectionpool: https://management.blr1.azurestackeng.inblr.infoblox.com:443 "GET /subscriptions/d698561a-d8c5-47e0-86f4-02e20e9082ac/providers/Microsoft.Compute/locations/blr1/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions?$top=1&$orderby=name%20desc&api-version=2017-12-01 HTTP/1.1" 200 251 cli.azure.cli.core.sdk.policies: Response status: 200 cli.azure.cli.core.sdk.policies: Response headers: cli.azure.cli.core.sdk.policies: 'Cache-Control': 'no-cache' cli.azure.cli.core.sdk.policies: 'Pragma': 'no-cache' cli.azure.cli.core.sdk.policies: 'Content-Length': '251' cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json; charset=utf-8' cli.azure.cli.core.sdk.policies: 'Expires': '-1' cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': '26e0132d-ce24-4fa3-b2d7-4b41ade5a903' cli.azure.cli.core.sdk.policies: 'Server': 'Microsoft-HTTPAPI/2.0' cli.azure.cli.core.sdk.policies: 'WWW-Authenticate': 'oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvZBf8XFjkYjEysqgI1JVBfK6xAQBApudKAeTeFo2Bjer8ef3b1Z4k1nf3zu3VlQxkKcJcFbm8HzScsCF4OTiT8tZjSVZDj/1vj4Epa1/bFbSLuh5XcV1Tap9nsoSwSTs5DSzdov+uefe9oLw7p4sP' cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-reads': '14994' cli.azure.cli.core.sdk.policies: 'x-ms-request-id': '26e0132d-ce24-4fa3-b2d7-4b41ade5a903' cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'BLR1:20210705T070816Z:26e0132d-ce24-4fa3-b2d7-4b41ade5a903' cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains' cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff' cli.azure.cli.core.sdk.policies: 'Date': 'Mon, 05 Jul 2021 07:08:16 GMT' cli.azure.cli.core.sdk.policies: Response content: cli.azure.cli.core.sdk.policies: [{"id":"/Subscriptions/d698561a-d8c5-47e0-86f4-02e20e9082ac/Providers/Microsoft.Compute/Locations/blr1/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202007080","location":"blr1","name":"18.04.202007080"}] cli.azure.cli.core.adal_authentication: AdalAuthentication.get_token invoked by Track 2 SDK with scopes=('https://management.infoblox.onmicrosoft.com/2c4d956f-20d4-41b5-b012-105ceb99613e/.default',) cli.azure.cli.core._profile: Retrieving token from ADAL for resource 'https://management.infoblox.onmicrosoft.com/2c4d956f-20d4-41b5-b012-105ceb99613e' adal-python: 6fa18ed5-4c2c-4e76-9dd1-15ef1397dbdd - Authority:Performing instance discovery: ... adal-python: 6fa18ed5-4c2c-4e76-9dd1-15ef1397dbdd - Authority:Performing static instance discovery adal-python: 6fa18ed5-4c2c-4e76-9dd1-15ef1397dbdd - Authority:Authority validated via static instance discovery adal-python: 6fa18ed5-4c2c-4e76-9dd1-15ef1397dbdd - TokenRequest:Getting token from cache with refresh if necessary. adal-python: 6fa18ed5-4c2c-4e76-9dd1-15ef1397dbdd - CacheDriver:finding with query keys: {'_clientId': '...', 'userId': '...'} adal-python: 6fa18ed5-4c2c-4e76-9dd1-15ef1397dbdd - CacheDriver:Looking for potential cache entries: {'_clientId': '...', 'userId': '...'} adal-python: 6fa18ed5-4c2c-4e76-9dd1-15ef1397dbdd - CacheDriver:Found 4 potential entries. adal-python: 6fa18ed5-4c2c-4e76-9dd1-15ef1397dbdd - CacheDriver:Resource specific token found. adal-python: 6fa18ed5-4c2c-4e76-9dd1-15ef1397dbdd - CacheDriver:Returning token from cache lookup, AccessTokenId: b'1g88NqXDQgHuoVbzpIRNbZnjx7u3GVPOO074x7wuYdM=', RefreshTokenId: b'nad0vNgkRFiWQRe4frn1J3zyOTQxe0sFAFMYMBi7rWc=' cli.azure.cli.core.sdk.policies: Request URL: 'https://management.blr1.azurestackeng.inblr.infoblox.com/subscriptions/d698561a-d8c5-47e0-86f4-02e20e9082ac/providers/Microsoft.Compute/locations/blr1/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202007080?api-version=2017-12-01' cli.azure.cli.core.sdk.policies: Request method: 'GET' cli.azure.cli.core.sdk.policies: Request headers: cli.azure.cli.core.sdk.policies: 'Accept': 'application/json' cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': 'c7be88ae-dd5f-11eb-b6e0-e4b97a61bbea' cli.azure.cli.core.sdk.policies: 'CommandName': 'vm create' cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--resource-group --name --image --admin-username --admin-password --location --size --nics --debug' cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.25.0 (MSI) azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.9 (Windows-10-10.0.19041-SP0)' cli.azure.cli.core.sdk.policies: 'Authorization': '' cli.azure.cli.core.sdk.policies: Request body: cli.azure.cli.core.sdk.policies: This request has no body urllib3.connectionpool: Starting new HTTPS connection (1): management.blr1.azurestackeng.inblr.infoblox.com:443 urllib3.connectionpool: https://management.blr1.azurestackeng.inblr.infoblox.com:443 "GET /subscriptions/d698561a-d8c5-47e0-86f4-02e20e9082ac/providers/Microsoft.Compute/locations/blr1/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202007080?api-version=2017-12-01 HTTP/1.1" 200 326 cli.azure.cli.core.sdk.policies: Response status: 200 cli.azure.cli.core.sdk.policies: Response headers: cli.azure.cli.core.sdk.policies: 'Cache-Control': 'no-cache' cli.azure.cli.core.sdk.policies: 'Pragma': 'no-cache' cli.azure.cli.core.sdk.policies: 'Content-Length': '326' cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json; charset=utf-8' cli.azure.cli.core.sdk.policies: 'Expires': '-1' cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': '30743a0b-99dc-4227-8bfe-8adf5413e0a6' cli.azure.cli.core.sdk.policies: 'Server': 'Microsoft-HTTPAPI/2.0' cli.azure.cli.core.sdk.policies: 'WWW-Authenticate': 'oYG3MIG0oAMKAQChCwYJKoZIgvcSAQICooGfBIGcYIGZBgkqhkiG9xIBAgICAG+BiTCBhqADAgEFoQMCAQ+iejB4oAMCARKicQRvzCbF/yVO+q88o3p5N6JSzdF+75lpVxKi0/+C0y85ut7RlXv9QYAMdHJhB+lpLKpYnJCeAXcvEm/HOedLqA25gtoXc+PXV9a+dOkfZ/0TFNUglUq23dXmqIKyP/uCt3bkqDugVEM4bnD4TiDpnify' cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-reads': '14998' cli.azure.cli.core.sdk.policies: 'x-ms-request-id': '30743a0b-99dc-4227-8bfe-8adf5413e0a6' cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'BLR1:20210705T070817Z:30743a0b-99dc-4227-8bfe-8adf5413e0a6' cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains' cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff' cli.azure.cli.core.sdk.policies: 'Date': 'Mon, 05 Jul 2021 07:08:17 GMT' cli.azure.cli.core.sdk.policies: Response content: cli.azure.cli.core.sdk.policies: {"properties":{"osDiskImage":{"operatingSystem":"Linux"},"dataDiskImages":[]},"id":"/Subscriptions/d698561a-d8c5-47e0-86f4-02e20e9082ac/Providers/Microsoft.Compute/Locations/blr1/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202007080","location":"blr1","name":"18.04.202007080"} cli.azure.cli.command_modules.vm._validators: storage profile 'StorageProfile.ManagedPirImage' cli.azure.cli.command_modules.vm._validators: no suitable subnet found. One will be created. cli.azure.cli.command_modules.vm._validators: new NSG will be created cli.azure.cli.command_modules.vm._validators: new public IP address will be created cli.azure.cli.command_modules.vm._validators: existing NIC(s) will be used cli.azure.cli.command_modules.vm.custom: When specifying an existing NIC, do not specify accelerated networking. Ignore --accelerated-networking now. This will trigger an error instead of a warning in future releases. cli.azure.cli.core.commands.client_factory: Getting management service client client_type=ResourceManagementClient cli.azure.cli.core.adal_authentication: AdalAuthentication.get_token invoked by Track 2 SDK with scopes=('https://management.infoblox.onmicrosoft.com/2c4d956f-20d4-41b5-b012-105ceb99613e/.default',) cli.azure.cli.core._profile: Retrieving token from ADAL for resource 'https://management.infoblox.onmicrosoft.com/2c4d956f-20d4-41b5-b012-105ceb99613e' adal-python: 6d613105-8ec4-4a8c-ac5f-5aba475f0d3b - Authority:Performing instance discovery: ... adal-python: 6d613105-8ec4-4a8c-ac5f-5aba475f0d3b - Authority:Performing static instance discovery adal-python: 6d613105-8ec4-4a8c-ac5f-5aba475f0d3b - Authority:Authority validated via static instance discovery adal-python: 6d613105-8ec4-4a8c-ac5f-5aba475f0d3b - TokenRequest:Getting token from cache with refresh if necessary. adal-python: 6d613105-8ec4-4a8c-ac5f-5aba475f0d3b - CacheDriver:finding with query keys: {'_clientId': '...', 'userId': '...'} adal-python: 6d613105-8ec4-4a8c-ac5f-5aba475f0d3b - CacheDriver:Looking for potential cache entries: {'_clientId': '...', 'userId': '...'} adal-python: 6d613105-8ec4-4a8c-ac5f-5aba475f0d3b - CacheDriver:Found 4 potential entries. adal-python: 6d613105-8ec4-4a8c-ac5f-5aba475f0d3b - CacheDriver:Resource specific token found. adal-python: 6d613105-8ec4-4a8c-ac5f-5aba475f0d3b - CacheDriver:Returning token from cache lookup, AccessTokenId: b'1g88NqXDQgHuoVbzpIRNbZnjx7u3GVPOO074x7wuYdM=', RefreshTokenId: b'nad0vNgkRFiWQRe4frn1J3zyOTQxe0sFAFMYMBi7rWc=' cli.azure.cli.core.sdk.policies: Request URL: 'https://management.blr1.azurestackeng.inblr.infoblox.com/subscriptions/d698561a-d8c5-47e0-86f4-02e20e9082ac/resourcegroups/res-engg/providers/Microsoft.Resources/deployments/vm_deploy_GkAEB7Wq0bCVM5ZqV59wxLR3yMXgWaHe?api-version=2018-05-01' cli.azure.cli.core.sdk.policies: Request method: 'PUT' cli.azure.cli.core.sdk.policies: Request headers: cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json' cli.azure.cli.core.sdk.policies: 'Accept': 'application/json' cli.azure.cli.core.sdk.policies: 'Content-Length': '1388' cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': 'c7be88ae-dd5f-11eb-b6e0-e4b97a61bbea' cli.azure.cli.core.sdk.policies: 'CommandName': 'vm create' cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--resource-group --name --image --admin-username --admin-password --location --size --nics --debug' cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.25.0 (MSI) azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.9 (Windows-10-10.0.19041-SP0)' cli.azure.cli.core.sdk.policies: 'Authorization': '' cli.azure.cli.core.sdk.policies: Request body: cli.azure.cli.core.sdk.policies: {"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": {"adminPassword": {"type": "securestring", "metadata": {"description": "Secure adminPassword"}}}, "variables": {}, "resources": [{"apiVersion": "2017-12-01", "type": "Microsoft.Compute/virtualMachines", "name": "ubuntu-vm", "location": "blr1", "tags": {}, "dependsOn": [], "properties": {"hardwareProfile": {"vmSize": "Standard_DS12_V2"}, "networkProfile": {"networkInterfaces": [{"id": "/subscriptions/d698561a-d8c5-47e0-86f4-02e20e9082ac/resourceGroups/res-engg/providers/Microsoft.Network/networkInterfaces/rav-nic-lan1", "properties": {"primary": true}}, {"id": "/subscriptions/d698561a-d8c5-47e0-86f4-02e20e9082ac/resourceGroups/res-engg/providers/Microsoft.Network/networkInterfaces/rav-nic-mgmt", "properties": {"primary": false}}]}, "storageProfile": {"osDisk": {"createOption": "fromImage", "name": null, "caching": "ReadWrite", "managedDisk": {"storageAccountType": null}}, "imageReference": {"publisher": "Canonical", "offer": "UbuntuServer", "sku": "18.04-LTS", "version": "latest"}}, "osProfile": {"computerName": "ubuntu-vm", "adminUsername": "demouser", "adminPassword": "[parameters('adminPassword')]"}}}], "outputs": {}}, "parameters": {"adminPassword": {"value": "Infoblox@123"}}, "mode": "incremental"}} urllib3.connectionpool: Starting new HTTPS connection (1): management.blr1.azurestackeng.inblr.infoblox.com:443 urllib3.connectionpool: https://management.blr1.azurestackeng.inblr.infoblox.com:443 "PUT /subscriptions/d698561a-d8c5-47e0-86f4-02e20e9082ac/resourcegroups/res-engg/providers/Microsoft.Resources/deployments/vm_deploy_GkAEB7Wq0bCVM5ZqV59wxLR3yMXgWaHe?api-version=2018-05-01 HTTP/1.1" 201 644 cli.azure.cli.core.sdk.policies: Response status: 201 cli.azure.cli.core.sdk.policies: Response headers: cli.azure.cli.core.sdk.policies: 'Cache-Control': 'no-cache' cli.azure.cli.core.sdk.policies: 'Pragma': 'no-cache' cli.azure.cli.core.sdk.policies: 'Content-Length': '644' cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json; charset=utf-8' cli.azure.cli.core.sdk.policies: 'Expires': '-1' cli.azure.cli.core.sdk.policies: 'Azure-AsyncOperation': 'https://management.blr1.azurestackeng.inblr.infoblox.com/subscriptions/d698561a-d8c5-47e0-86f4-02e20e9082ac/resourcegroups/res-engg/providers/Microsoft.Resources/deployments/vm_deploy_GkAEB7Wq0bCVM5ZqV59wxLR3yMXgWaHe/operationStatuses/08585761379876083278?api-version=2018-05-01' cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-writes': '1198' cli.azure.cli.core.sdk.policies: 'x-ms-request-id': '256a6d22-96df-4f7a-9427-b1b80af9fd40' cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': '256a6d22-96df-4f7a-9427-b1b80af9fd40' cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'BLR1:20210705T070817Z:256a6d22-96df-4f7a-9427-b1b80af9fd40' cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains' cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff' cli.azure.cli.core.sdk.policies: 'Date': 'Mon, 05 Jul 2021 07:08:17 GMT' cli.azure.cli.core.sdk.policies: Response content: cli.azure.cli.core.sdk.policies: {"id":"/subscriptions/d698561a-d8c5-47e0-86f4-02e20e9082ac/resourceGroups/res-engg/providers/Microsoft.Resources/deployments/vm_deploy_GkAEB7Wq0bCVM5ZqV59wxLR3yMXgWaHe","name":"vm_deploy_GkAEB7Wq0bCVM5ZqV59wxLR3yMXgWaHe","properties":{"templateHash":"4886099114470125975","parameters":{"adminPassword":{"type":"SecureString"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2021-07-05T07:08:17.9054389Z","duration":"PT0.0361296S","correlationId":"256a6d22-96df-4f7a-9427-b1b80af9fd40","providers":[{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["blr1"]}]}],"dependencies":[]}} cli.azure.cli.core.sdk.policies: Request URL: 'https://management.blr1.azurestackeng.inblr.infoblox.com/subscriptions/d698561a-d8c5-47e0-86f4-02e20e9082ac/resourcegroups/res-engg/providers/Microsoft.Resources/deployments/vm_deploy_GkAEB7Wq0bCVM5ZqV59wxLR3yMXgWaHe/operationStatuses/08585761379876083278?api-version=2018-05-01' cli.azure.cli.core.sdk.policies: Request method: 'GET' cli.azure.cli.core.sdk.policies: Request headers: cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': 'c7be88ae-dd5f-11eb-b6e0-e4b97a61bbea' cli.azure.cli.core.sdk.policies: 'CommandName': 'vm create' cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--resource-group --name --image --admin-username --admin-password --location --size --nics --debug' cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.25.0 (MSI) azsdk-python-azure-mgmt-resource/18.0.0 Python/3.8.9 (Windows-10-10.0.19041-SP0)' cli.azure.cli.core.sdk.policies: 'Authorization': '' cli.azure.cli.core.sdk.policies: Request body: cli.azure.cli.core.sdk.policies: This request has no body urllib3.connectionpool: https://management.blr1.azurestackeng.inblr.infoblox.com:443 "GET /subscriptions/d698561a-d8c5-47e0-86f4-02e20e9082ac/resourcegroups/res-engg/providers/Microsoft.Resources/deployments/vm_deploy_GkAEB7Wq0bCVM5ZqV59wxLR3yMXgWaHe/operationStatuses/08585761379876083278?api-version=2018-05-01 HTTP/1.1" 200 588 cli.azure.cli.core.sdk.policies: Response status: 200 cli.azure.cli.core.sdk.policies: Response headers: cli.azure.cli.core.sdk.policies: 'Cache-Control': 'no-cache' cli.azure.cli.core.sdk.policies: 'Pragma': 'no-cache' cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json; charset=utf-8' cli.azure.cli.core.sdk.policies: 'Expires': '-1' cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-reads': '14993' cli.azure.cli.core.sdk.policies: 'x-ms-request-id': '57b0d630-85b8-4146-9d6c-c960c23d4a4c' cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': '57b0d630-85b8-4146-9d6c-c960c23d4a4c' cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'BLR1:20210705T070848Z:57b0d630-85b8-4146-9d6c-c960c23d4a4c' cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains' cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff' cli.azure.cli.core.sdk.policies: 'Date': 'Mon, 05 Jul 2021 07:08:48 GMT'

cli.azure.cli.core.sdk.policies: Response content: cli.azure.cli.core.sdk.policies: {"status":"Failed","error":{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[{"code":"BadRequest","message":"{\r\n \"error\": {\r\n \"code\": \"NetworkProfileValidationError\",\r\n \"message\": \"The number of network interfaces for virtual machine ubuntu-vm exceeds the maximum allowed for the virtual machine size Standard_DS12_V2. The number of network interfaces is 2 and the maximum allowed is 1. \"\r\n }\r\n}"}]}} cli.azure.cli.core.util: azure.cli.core.util.handle_exception is called with an exception: cli.azure.cli.core.util: Traceback (most recent call last): File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/polling/base_polling.py", line 482, in run File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/polling/base_polling.py", line 521, in _poll azure.core.polling.base_polling.OperationFailed: Operation failed or canceled

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 691, in _run_job File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 328, in call File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/vm/custom.py", line 1014, in create_vm File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 999, in call File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 987, in call File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/polling/_poller.py", line 255, in result File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/tracing/decorator.py", line 83, in wrapper_use_tracer File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/polling/_poller.py", line 275, in wait File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/polling/_poller.py", line 192, in _start File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/core/polling/base_polling.py", line 500, in run azure.core.exceptions.HttpResponseError: (DeploymentFailed) At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/arm.py", line 100, in handle_template_based_exception AttributeError: 'OperationFailed' object has no attribute 'error'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 231, in invoke File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 657, in execute File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 720, in _run_jobs_serially File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 712, in _run_job File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/arm.py", line 102, in handle_template_based_exception knack.util.CLIError: (DeploymentFailed) At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.

cli.azure.cli.core.azclierror: (DeploymentFailed) At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details. az_command_data_logger: (DeploymentFailed) At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details. cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x042C1190>] az_command_data_logger: exit code: 1 cli.main: Command ran in 34.347 seconds (init: 0.326, invoke: 34.021) telemetry.save: Save telemetry record of length 3283 in cache telemetry.check: Negative: The C:\Users\rav.INFOBLOX.azure\telemetry.txt was modified at 2021-07-05 12:34:37.535479, which in less than 600.000000 s PS C:\Users\rav.INFOBLOX> az version { "azure-cli": "2.25.0", "azure-cli-core": "2.25.0", "azure-cli-telemetry": "1.0.6", "extensions": {} }

yonzhan commented 3 years ago

Compute

AvRajath commented 3 years ago

Any update on this?

zhoxing-ms commented 3 years ago

@AvRajath Hi, thank you for your information. I found out from the debug log that this is a issue for network interfaces exceeding the limit

The number of network interfaces for virtual machine ubuntu-vm exceeds the maximum allowed for the virtual machine size Standard_DS12_V2. The number of network interfaces is 2 and the maximum allowed is 1.

Therefore, you may need to consider adjusting the number of network interfaces to 1 or increasing the size of virtual machine.