Correct Answer: A
You can only move a resource to a Resource Group or Subscription, but the location stays the same. When you move WebApp1 to RG2, the resource will be restricted based on the policy of the new Resource Group (Policy2).
I agree with the answer (A is correct), but your comments don't seem correct.
you are moving app from one region to another. Procedure is listed below:
- Create a back up of the source app.
- Create an app in a new App Service plan, in the target region.
- Restore the back up in the target app
- If you use a custom domain, bind it preemptively to the target app with 'awverify'. and enable the domain in the target app.
- Configure everything else in your target app to be the same as the source app and verify your configuration.
- When you're ready for the custom domain to point to the target app, remap the domain name.
Here it states that you have to create new AppService plan in new region. So old plan stays where it is.
Reference:
https://docs.microsoft.com/en-us/azure/app-service/manage-move-across-regions
Your right.....New-AzAppServicePlan -Location "North Central US" -ResourceGroupName DestinationAzureResourceGroup -Name DestinationAppServicePlan -Tier Standard
just to add to this. as I found the policy confusing. if they are talking about Azure policy:
An evalution will be ran before the move to verify that policy2 allows it.
https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/move-resource-group-and-subscription#frequently-asked-questions
My understanding is that App service plans cannot move regions. If you wanted to move it you would have to recreate it in a new region. And since the policies in this case are applied at the resource group level, and the only thing moving is the outsource webapp1, not the resource group itself, then the policies of the new RG2 will apply.
Moving to a resource group in a different region doesn't also move the resources to the same region as the RG.. come on guys! RG just hold meta data of the connected resources
App Service resources are region-specific and can't be moved across regions. You must create a copy of your existing App Service resources in the target region, then move your content over to the new app. If your source app uses a custom domain, you can migrate it to the new app in the target region when you're finished.
To make copying your app easier, you can clone an individual App Service app into an App Service plan in another region, but it does have limitations, especially that it doesn't support Linux apps.
I know its not the popular opinion but I think its correct. I got receipts...
Everyone seems to get that when you move a resource to a new resource group you dont change its location, but knowing that why do you think it changes its app service plan? App Service plan lays out the region resources for the apps that run in it and the you just agreed the region of the actual app service is not changing. So why would it then change to a app service plan that's laying out region specific limits.
Also according to MS...
"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, geographical region, and of the same OS type."
According to this its not even possible to move the app to a new app service plan that's not in the same region or the same resource group... and why would it. Since the app service plan lays out the resources in a region that all of its apps will share?
https://learn.microsoft.com/en-us/azure/app-service/app-service-plan-manage
Remember... "The resource group stores metadata about the resources. Therefore, when you specify a location for the resource group, you are specifying where that metadata is stored." This should help people understand why moving a resource into a new resource group will not change its location.
"you cannot change an App Service plan's region. If you want to run your app in a different region"
https://learn.microsoft.com/en-us/azure/app-service/app-service-plan-manage#move-an-app-to-a-different-region
https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/move-limitations/app-service-move-limitations#move-across-subscriptions
Answer A is correct. Verified and found that we can only change(Move) the RG2 of WebApp1. All other associated resources will be in same reason and same RG1. The activity is independent of app service plan. Even after moving the WebApp1 to RG2 the WebApp1 location will be West Europe only.
I tried this in a lab today, and the answer is C.
The Policy 1 was carried along when I moved the web app from RG1 to RG2.
I kept a simple policy to append tag and its default (policy1: name: RGroup ; value RG1; policy2: RGroup RG2). and the same tag remained as is when the web app was moved RG2
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
mlantonis
Highly Voted 3 years, 4 months agoVeks
2 years, 5 months agoklexams
2 years, 4 months agoAjinkyakore
2 years, 4 months agobryant12138
12 months agoklasbeatz
2 years, 3 months agoklasbeatz
2 years, 3 months agomcclane654
8 months, 2 weeks agoCluster007
Highly Voted 3 years, 10 months agokejo2
Most Recent 6 days agoSeMo0o0o0o
1 month agoTheFivePips
2 months agorobsoneuclides
4 months, 1 week agocamwilson04
6 months agoWojer
7 months ago93d821b
10 months agoAndmachado
3 months, 4 weeks agoclg003
10 months, 3 weeks agoclg003
1 year agomtc9
1 year agoMehedi007
1 year, 2 months agoMehedi007
1 year, 2 months agoRogit
1 year, 2 months agoAz_Amit
1 year, 3 months agoAbiram
1 year, 5 months agolulzsec2019
1 year, 4 months agoklexams
1 year, 11 months ago