Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure App Service Plan cannot be changed

I have an App Service plan on which we have deployed some applications. For the needs of reorganizing server and applications I wanted to rename the service plan which was in a standard resource group "Default-Web-WestEurope-blablabla".

Given that an App service plan cannot be renamed I have during the time created another resource group and gradually moved all my apps and services (Storage, Database ,etc.) inside the new resource group. Also the old App Service plan has been moved to the new resource group.

The scope was to have everything inside a new resource group and then create a new App Service plan where to move all the app services in the previous one by using the "Change App Service plan feature".

However I have discovered, after having created a new App service plan, that when I try to hit the "Change App Service plan feature" option, the answer is "No App Service plan found"!

enter image description here

How can I move all the resource between the two App Service plan?

EDIT:

I have tried by using Powershell and I get a a reason.

Set-AzureRmWebApp : Cannot change the site xxxxx to the App Service Plan XXXXX due to hosting constraints. At line:1 char:1

like image 960
Lorenzo Avatar asked Jun 03 '17 23:06

Lorenzo


People also ask

Is it possible to change the app service plan in Azure?

In the Azure portal, search for and select App services and select the app that you want to move. From the left menu, select Change App Service plan. In the App Service plan dropdown, select an existing plan to move the app to.

Can we change the app service plan?

2 Answers. Technically, You can move an app to another App Service plan, as long as the source plan and the target plan are in the same resource group and geographical region which is true in your case. Unfortunately, we can't change the App Service Plan through CLI, otherwise, it would have shown more information.

What is the difference between APP service and app service plan in Azure?

App Service brings together everything you need to create websites, web APIs for any platform or device. Our Free and Shared (preview) plans are ideal for testing applications in a managed Azure environment. Basic, Standard and Premium plans are for production workloads and run on dedicated Virtual Machine instances.

Can we change app service plan 1 and 2 from Azure portal?

Based on my understanding App Service Plan 1 in the resource group 1 and Service Plan 2 in the resource group 2, we can't do that from azure portal currently. According to the official document, we could change service that in the same resource group and geographical location.

How do I create an app service in Azure App service?

You can create an empty App Service plan, or you can create a plan as part of app creation. In the Azure portal, select New > Web + mobile, and then select Web App or another kind of App Service app. Select an existing App Service plan or create a plan for the new app.

How do I move an app from one azure plan to another?

In the Azure portal, browse to the app that you want to move. On the menu, look for the App Service Plan section. Select Change App Service plan to open the App Service plan selector.

Is it possible to change the app service plan?

This is a combination of Location and RG, and cannot be changed even if the Plan is later moved to another RG. Read Move an app to another App Service plan for more details. Thanks for contributing an answer to Stack Overflow!


2 Answers

In other words this operation can't be done if the original app service plan is in a different web space.

Yes, you are right. There is a limit when move an app to a different App Service plan. The resource group in the limit is the initial resource group when you create your App Service Plan.

Only valid plans (in the same resource group and geographical location) are shown.

For your issue, you could create a new App Service Plan in your original resource group. After finished the web app move operation, you could move all the resources to the new resource group.

If you moved your web app to the new resource group, Web App backup and restore is a good choice to copy all the contents and configurations from your old Web App to a new Web App.

like image 69
Amor Avatar answered Oct 24 '22 08:10

Amor


In my case I just deleted the resources causing this issue and redeployed those resources.

like image 40
Melchia Avatar answered Oct 24 '22 08:10

Melchia