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"!
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
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.
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.
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.
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.
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.
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.
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!
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.
In my case I just deleted the resources causing this issue and redeployed those resources.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With