Skip to content

Trying to run a command and get the following error #31022

@Shivani-Msft

Description

@Shivani-Msft

Describe the bug

PS /home/shivani> az network manager post-commit --network-manager-name "ankur-nm-slice1" --commit-type "Connectivity" --configuration-ids "/subscriptions/f70df20d-7c49-465b-a4a1-e2a682ca1ffd/resourceGroups/ankursood-rg/providers/Microsoft.Network/networkManagers/ankur-nm-slice1/connectivityConfigurations/cvgTestConfig2" --target-locations "eastus" --resource-group "ankursood-rg"

Related command

PS /home/shivani> az network manager post-commit --network-manager-name "ankur-nm-slice1" --commit-type "Connectivity" --configuration-ids "/subscriptions/f70df20d-7c49-465b-a4a1-e2a682ca1ffd/resourceGroups/ankursood-rg/providers/Microsoft.Network/networkManagers/ankur-nm-slice1/connectivityConfigurations/cvgTestConfig2" --target-locations "eastus" --resource-group "ankursood-rg"

Errors

The command failed with an unexpected error. Here is the traceback:
"Model 'AAZObjectType' has no field named 'instance'"
Traceback (most recent call last):
File "/usr/lib64/az/lib/python3.9/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/commands/init.py", line 666, in execute
raise ex
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/commands/init.py", line 734, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/commands/init.py", line 714, in _run_job
result = LongRunningOperation(cmd_copy.cli_ctx, 'Starting {}'.format(cmd_copy.name))(result)
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/commands/init.py", line 1063, in call
result = poller.result()
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/aaz/_poller.py", line 111, in result
return self._result_callback(resource)
File "/home/shivani/.azure/cliextensions/virtual-network-manager/azext_network_manager/aaz/latest/network/manager/_post_commit.py", line 104, in _output
result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True)
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/aaz/_field_value.py", line 87, in getattr
return self[key]
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/aaz/_field_value.py", line 69, in getitem
attr_schema, name = self._get_attr_schema_and_name(key)
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/aaz/_field_value.py", line 157, in _get_attr_schema_and_name
attr_schema = self._schema[key] # will raise error if key not exist
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/aaz/_field_type.py", line 180, in getitem
raise AAZUnknownFieldError(self, key)
azure.cli.core.aaz.exceptions.AAZUnknownFieldError: "Model 'AAZObjectType' has no field named 'instance'"
To check existing issues, please visit: https://github.com/Azure/azure-cli/issues

Issue script & Debug output

The command failed with an unexpected error. Here is the traceback:
"Model 'AAZObjectType' has no field named 'instance'"
Traceback (most recent call last):
File "/usr/lib64/az/lib/python3.9/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/commands/init.py", line 666, in execute
raise ex
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/commands/init.py", line 734, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/commands/init.py", line 714, in _run_job
result = LongRunningOperation(cmd_copy.cli_ctx, 'Starting {}'.format(cmd_copy.name))(result)
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/commands/init.py", line 1063, in call
result = poller.result()
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/aaz/_poller.py", line 111, in result
return self._result_callback(resource)
File "/home/shivani/.azure/cliextensions/virtual-network-manager/azext_network_manager/aaz/latest/network/manager/_post_commit.py", line 104, in _output
result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True)
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/aaz/_field_value.py", line 87, in getattr
return self[key]
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/aaz/_field_value.py", line 69, in getitem
attr_schema, name = self._get_attr_schema_and_name(key)
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/aaz/_field_value.py", line 157, in _get_attr_schema_and_name
attr_schema = self._schema[key] # will raise error if key not exist
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/aaz/_field_type.py", line 180, in getitem
raise AAZUnknownFieldError(self, key)
azure.cli.core.aaz.exceptions.AAZUnknownFieldError: "Model 'AAZObjectType' has no field named 'instance'"
To check existing issues, please visit: https://github.com/Azure/azure-cli/issues

Expected behavior

Command should successfully run

Environment Summary

Image

Additional context

No response

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamNetworkaz network vnet/lb/nic/dns/etc...questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions