Azure / deployment-stacks

Contains Deployment Stacks CLI scripts and releases
MIT License
89 stars 7 forks source link

CLI tutorial fails for sub create #65

Closed Grant-Rc closed 1 year ago

Grant-Rc commented 2 years ago

This is autogenerated. Please review and update as needed. Describe the bug Command Name az stack sub create

Errors:

The command failed with an unexpected error. Here is the traceback: 'NoneType' object has no attribute 'name' 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 658, in execute File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 721, in _run_jobs_serially File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 692, 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/resource/custom.py", line 2087, in create_deployment_stack_at_subscription File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/resource/_client_factory.py", line 69, in _resource_deploymentstacks_client_factory File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/client_factory.py", line 70, in get_mgmt_service_client File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/client_factory.py", line 206, in _get_mgmt_service_client AttributeError: 'NoneType' object has no attribute 'name'

To Reproduce: Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here... az stack sub create -n {} -l {} -f {} -p {} Expected Behavior Environment Summary Windows-10-10.0.19041-SP0 Python 3.8.9 Installer: MSI

azure-cli 2.33.0 * Additional Context

Install CLI MSI successfully and following tutorial I get the following image

harshpatel17 commented 2 years ago

This error is expected to fixed in the next Deployment Stacks release.

dani3lheidemann commented 2 years ago

Hi @harshpatel17, when can we expect the new version? :) Thank you!

harshpatel17 commented 2 years ago

@dani3lheidemann I am currently expecting the newest version to be released within 1-2 weeks. Will keep you updated.

harshpatel17 commented 2 years ago

@DamianFlynn Before passing of the new build I wanted to confirm if you were able to do a couple of things

Open powershell as admin Run the following command & "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe" -m pip install -e path of unzipped sdk --force-reinstall

That error usually come from the CLI not being mapped to the SDK, the above command should fix that issue

DamianFlynn commented 2 years ago

@harshpatel17 i think you tagged the wrong person. My system is MacOS.

Happy to try if you need

harshpatel17 commented 2 years ago

@harshpatel17 i think you tagged the wrong person. My system is MacOS.

Happy to try if you need

I did tag the wrong person, sorry about that!

harshpatel17 commented 2 years ago

@dani3lheidemann Before passing of the new build I wanted to confirm if you were able to do a couple of things

Open powershell as admin Run the following command & "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe" -m pip install -e path of unzipped sdk --force-reinstall

That error usually come from the CLI not being mapped to the SDK, the above command should fix that issue

johndowns commented 1 year ago

I've run into this same issue with the latest preview.

azure-cli 2.44.1.post20230111200937

harshpatel17 commented 1 year ago

@johndowns Are you using the Mac build?

johndowns commented 1 year ago

@harshpatel17 Yes I am. Feel free to DM one on Teams if you want to discuss.