I have two Resource Groups, call them Group1 and Group2. Within Group1 I have:
- a web app (with its deployment slot) that I moved from Group2
- a SQL Server and a SQL Database
- 3 storage account
- a Cloud Service (classic)
In Group2 I have just one App Service Plan which contains the web app that it is now in Group1.
When I try to move the App Service Plan it says (I see this in Audit Log) "ResourceGroup contains resources and cannot be deleted without deleting the resource first." that doesn't make much sense to me.
Here I read:
When working with web apps, you cannot move only an App Service plan. To move web apps, your options are:
- Move all of the resources from one resource group to a different resource group, if the destination resource group does not already have Microsoft.Web resources.
- Move the web apps to a different resource group, but keep the App Service plan in the original resource group.
That sounds like referring to my problem but I'm not sure. Why I can have both the App Service Plan and the Web App pin the same Resource Group if I create them but cannot if I move them?