Closed AvRajath closed 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.
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": {} }
Compute
Any update on this?
@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.
https://github.com/Azure/azure-cli/issues/18109
Opening a new issue as the old issue was closed due to no response.