Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Shivani-Msft opened this issue Mar 12, 2025 · 1 comment
Open

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

Shivani-Msft opened this issue Mar 12, 2025 · 1 comment
Assignees
Labels
Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team Network az network vnet/lb/nic/dns/etc... question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone

Comments

@Shivani-Msft
Copy link

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

@Shivani-Msft Shivani-Msft added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Mar 12, 2025
@yonzhan
Copy link
Collaborator

yonzhan commented Mar 12, 2025

Thank you for opening this issue, we will look into it.

@microsoft-github-policy-service microsoft-github-policy-service bot added the Network az network vnet/lb/nic/dns/etc... label Mar 12, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Mar 12, 2025
@yonzhan yonzhan removed the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Mar 12, 2025
@yonzhan yonzhan added this to the Backlog milestone Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team Network az network vnet/lb/nic/dns/etc... question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

3 participants