question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

az webapp create with invalid app service plan name throws: 'NoneType' object has no attribute 'location'

See original GitHub issue

This 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:14 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
panchagnulacommented, Aug 18, 2020

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

0reactions
calvinsIDcommented, Aug 18, 2020

Fixed with newer versions of CLI

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found