azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

az webapp create returns Error : There was a conflict. AlwaysOn cannot be set for this site as the plan does not allow it.

Open ChNorman opened this issue 7 years ago • 2 comments

Describe the bug when you create an ASP on Shared SKU and then create a web app on that ASP it tries to enable AlwaysOn. Returns Error : There was a conflict. AlwaysOn cannot be set for this site as the plan does not allow it.

To Reproduce

  1. install AZ CLI 2.0.66
  2. az group create -l wewstus -n MyTestRG
  3. az appservice plan create --name "MyDemoASP" --resource-group MyTestRG --location westus --sku SHARED
  4. az webapp create -g MyTestRG -p MyDemoASP -n MyDemoApp

Expected behavior create the webapp and not enable AlwaysOn

Environment summary MSI install of latest version 2.0.66 Windows 10 image PowerShell Core 6.0

Additional context This appears to happen with any version greater than 2.0.61

ChNorman avatar Jun 04 '19 22:06 ChNorman

@chNorman thanks for reporting this. Shared SKU doesn't support Always ON & is a regression on our end. For not you can create an app with a different SKU & Scale Out to Shared. Sorry for the inconvinience.

panchagnula avatar Jun 05 '19 17:06 panchagnula

https://github.com/Azure/azure-cli/pull/9323 fixes this

yugangw-msft avatar Jun 13 '19 16:06 yugangw-msft