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.

webapp: Unable to create App Service Plan in a different resource group to App Service Environment

See original GitHub issue

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug As per the documentation, only one resource group can be specified, and it seems that this is expecting to be both the resource group to find the App Service Environment as well as the App Service Plan. However in our implementation they are generally in different groups.

To Reproduce az appservice plan create -g ResourceGroup1 -n ServicePlanName --app-service-environment AppServiceEnvironmentName --sku I1 (noting that my expectation is that ResourceGroup1 is where I want the serviceplan to go, not where the AppServiceEnvironment is located)

The result/error is: App service environment ‘/subscriptions/xxx/resourceGroups/ResourceGroup1/providers/Microsoft.Web/hostingEnvironments/AppServiceEnvironmentName’ not found in subscription.

Expected behavior I would expect aligned behaviour as per the AzureRM (https://docs.microsoft.com/en-us/powershell/module/azurerm.websites/new-azurermappserviceplan?view=azurermps-6.13.0) with a parameter ‘AseResourceGroupName’ that defines how to locate the App Service Environment (if specified), and the ‘ResourceGroupName’ is used only for the App Service in this scenario.

Environment summary Using windows based CLI

Additional context

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Kotasudhakarreddycommented, Feb 22, 2021

@SamirBanjanovic - yes it has been addressed and working fine in with latest versions of CLI. Please update your CLI version to 2.19.1. If you still face the issue please share the -debug log for your command.

0reactions
samirbanjanoviccommented, Feb 22, 2021

Has this issue been addressed? I am currently facing this exact error when attempting to run az appservice plan create where the plan is under a different RG than the ASE

Read more comments on GitHub >

github_iconTop Results From Across the Web

Manage an App Service plan in Azure - Microsoft Learn
Learn how to perform different tasks to manage an App Service plan, such as create, move, scale, and delete.
Read more >
Share App Service plan in different azure resource group
You can move an app to another App Service plan, as long as the source plan and the target plan are in the...
Read more >
Share App Service Plan across Resource Groups
App Services and the corresponding App Service Plan need not reside in the same Resource Group. They can be in two different Resource...
Read more >
Deploy an ASP.NET Web App in Azure App Service
Select one of the account that you wish to host against and click on “New” to create a new Resource group. image5. Log...
Read more >
App Service Support for Availability Zones
Currently you can not convert pre-existing App Service Plan. See next bullet for details on how to create a new App Service Plan...
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