az webapp create with invalid app service plan name throws: 'NoneType' object has no attribute 'location'
See original GitHub issueThis is autogenerated. Please review and update as needed.
Describe the bug
I tried to create a webapp with an invalid app service plan and got this error:
az webapp create -n mvpsdkdemoapp -g groupname --plan azsdkdemoplan
az webapp create: error: 'NoneType' object has no attribute 'location'
Command Name
az webapp create
Errors: az webapp create: error: ‘NoneType’ object has no attribute ‘location’
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 webapp create -n {} --plan {}
Expected Behavior
Environment Summary
Windows-10-10.0.18362-SP0
Python 3.6.6
azure-cli 2.2.0
Additional Context
azsdke2e
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:14 (12 by maintainers)
Top Results From Across the Web
az appservice ase - Microsoft Learn
Create vNet and app service environment v2, but do not create network security group and route table in existing resource group. Azure CLI...
Read more >azure-cli 2.22.1 - PyPI
az webapp config ssl bind : handle if webapp and appservice plan in different rg. ... Fix #14054: 'NoneType' object has no attribute...
Read more >Azure web app create cli command throws error - Whizlabs
I am facing an issue while executing below command in azure portalaz webapp create --resource-group WebAppLinuxRG --plan ASP-
Read more >azure cli error 'NoneType' object has no attribute ...
Az CLI Error 'NoneType' object has no attribute 'server_farm_id' caused by using the wrong Azure subscription.
Read more >Bug listing with status RESOLVED with resolution OBSOLETE ...
... Bug:82253 - "xfce4 has hanging hourglass on Desktop and window title bars" ... Bug:90687 - "app-emulation/bochs: ebuild does not support pci nor...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@calvinsID can you check if this is fixed by any of the validations you added. Moving to next milestone.
Fixed with newer versions of CLI