Azure App Service Plan cannot be changed - azure

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

Related

"Requested feature is not available in resource group..." when creating a new function app with a new app service plan

Background
My team is implementing disaster recovery via zone redundancy for our function apps. We currently have several function apps on a consumption app service plan. All of the apps and the service plan are in the same Azure region and in the same resource group. All of the apps run on Windows.
We need an elastic premium app service plan to enable zone redundancy for our function apps. As far as we can tell, the only way to create an elastic premium app service plan is to create a new function app.
Problem
When we use the Azure portal to create a new function app with a new elastic premium app service plan, the deployment fails.
Operation details > Status message gives some error details:
Requested feature is not available in resource group...
Try using a different resource group or create a new one.
How do we create a new elastic premium app service plan in our resource group?
We want to avoid moving our function apps to a different resource group if possible.
Related documentation
Azure Functions Premium plan
Create a Premium plan function app in the Azure portal
Create Azure website (app service) within a resource group with service plan with Powershell
How to deploy an Azure Functions App when the Service plan is in a different Resource Group
Unable to create Linux Function Apps (Consumption plan) and Linux App Service Plans and in the same Resource Group
Requested feature is not available in resource group...
Solution
We eventually figured out a workaround for moving our function apps to an elastic premium app service plan with zone redundancy:
Create a new resource group in the same Azure region as our function apps.
Create a new dummy fxn app in the new resource group, and choose an elastic premium plan during app creation. Zone redundancy will be enabled by default.
Delete the dummy fxn app and storage account. (Azure requires a storage account with each function app.)
Move the elastic premium plan to the old resource group.
Update the ARM template in our deployment pipeline to use the new elastic premium app service plan.
Delete the function apps. (Make sure your deployment pipeline works before doing this! We actually deleted one function app at a time.)
Redeploy the function apps via ARM template in the deployment pipeline.

Share App Service plan in different azure resource group

I have two web apps in different Resource Groups. I want to use a shared App Service Plan. Please guide how this can be done, When I try to use "Change Service Plan" I can not see another resource group service plan. Both Resource groups are in same region. When I try to create a App Service Plan I can not see option as a shared resource.
I am too late for the show, but still - it's possible to at least CREATE an App Service with App Service Plan from another resource group (not geographical region though).
You can pick up some details from here:
https://praveenkumarsreeram.com/2019/09/11/share-azure-app-service-plan-across-resource-groups/
It is not possible to move App Service to App Service plan in another 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 same resource group and
geographical region.
Additional Info:
Azure deploys each new App Service plan into a deployment unit,
internally called a webspace. Each region can have many webspaces, but
your app can only move between plans that are created in the same
webspace. An App Service Environment is an isolated webspace, so apps
can be moved between plans in the same App Service Environment, but
not between plans in different App Service Environments.
You can’t specify the webspace you want when creating a plan, but it’s
possible to ensure that a plan is created in the same webspace as an
existing plan. In brief, all plans created with the same resource
group and region combination are deployed into the same webspace. For
example, if you created a plan in resource group A and region B, then
any plan you subsequently create in resource group A and region B is
deployed into the same webspace. Note that plans can’t move webspaces
after they’re created, so you can’t move a plan into “the same
webspace” as another plan by moving it to another resource group.
Ref: https://learn.microsoft.com/en-us/azure/app-service/app-service-plan-manage#move-an-app-to-another-app-service-plan

Move Azure Web Apps into new Azure App Service Plan?

I have two Azure web apps that are in the same resource group but have two different app service plans.
web-app-1, in resource group web-app-group, has app service plan web-app-1-plan
web-app-2, in resource group web-app-group, has app service plan web-app-2-plan
I created a new app service plan called “web-app-3-plan”, in resource group web-app-group, which was created after the two web apps. Now I want to move both web apps into the new app service plan. All three plans are in the same region (West US) but have different pricing tiers (which shouldn’t matter).
When I go to web-app-1 and select “Change App Service plan” I only see the current plan in the dropdown list and an option to create a new plan (that starts with ASP-).
How do I move my web apps into “web-app-3-plan”, my new plan?
Thanks for contributing to Stack Overflow.
I tried to replicate your issue, and I was able to move the Web App to New ASP(App Service Plan) without any issues. Attached the screenshot for the same.
And after investigating your issue further,
The reason this might be occurring is because the App Service Plan is tied to a different webspace than the original App Service Plan of the web app, even though the newly created App Service Plan was moved to the same Resource Group.
What you can do to resolve the issue is, delete the newly created App Service Plan, and then create the new App Service Plan in the same Resource Group rather than moving it to the Resource Group( if you have done it) . This will ensure the App Service Plans are tied to the same webspace (on the same Resource Group and the same region).
Please refer to the below doc for more reference : Move an App to another App Service Plan
I hope this information helps.

Azure Resource Group split into different regions

Apologies I am quite new to Azure.
I have setup an Azure RG but for some reason the App Service and App Service Plan are located in South Central US. I think it may be slowing down the performance? How do I move everything to use UK South?
For some reason I was thinking about moving the resources to the other resource group, not the other region. So the answer is: No. You can't do that for WebApps yet. You would have to create a new WebApp and new App Service Plan and deploy your code there.
How can I modify the Location of my web site in Windows azure?
If you have source code, It is the simplest way to redeploy your application to another new web app. If you do not have source code, please try to use clone via the following steps:
1) create a new web service plan with region "UK Source", select pricing tier as P1 at least (Clone app is a feature that is only available to apps hosted on Premium App Service Plans. You can upgrade your App Service Plan to get access to this feature).
2) Clone Web App in Azure portal. Refer to more information at this article. Choose the same resource group, select app service plan we created at step 1.
3) delete unused App service plan
4) Change App service plan that we created at step 1.

Change location for web app not available in azure

I'm currently use azure in trial mode. I created a web app that use "South Central US" location. As far as I could see when I created this, I could not select anything else than South Central US, I would like to change this to north Europe. How do I do that?
Recently, I meet the same question. After I investigated the azure app service documents, I found I can use "Clone APP" feature to conveniently deploy my web app to another region.
Choose "Change APP Service Plan", and add a new premium service plan (So that I can use "Clone APP" feature).
Choose "Clone APP", then I can clone my app to another region.
Change the service plan to original and delete the other service plan.
You can't simply pick a new region for your web app: It resides within an app service plan within a given region.
To deploy into a different region, you'd need to create a new app service plan in that target region, then redeploy your app there. If you're taking advantage of built-in source code management (e.g. github), redeployment should be fairly straightforward.
Your question around which regions your subscription exposes is off-topic: That's something you'll need to open a billing support ticket and discuss directly with Azure support about.
It is very simple to change the location instead of cloning or redeploy your app. Here is the process to change app service plan for the existing and running Web app
Step 1:
Create new App service plan as your preferred location and pricing tier
Step 2:
Select change app service plan under your web app settings blade - app service section and choose your available app service plan just you created in step 1. now it updates your plan.
Step 3:
Delete the previous app service plan from your resource group, otherwise charges will apply for the previous associated app service plan.

Resources