For GDPR compliance we want to change the region of our static web app to Europe or even better Germany.
There is no option to do so. On other SO questions I found the solution to create a new static web app and redeploy. But now when I create it with region=westeurope the newly created resource still has the location Global.
How to change the region of our web app to the EU or even better Germany?
Edit: The region is still Global but in the overview of the resource group it shows the right location. We redeployed the app and just manually copied the (luckily few) settings, still 4 hours of work..
Jahnavi's answer should work if you have the Premium plan. Unfortunately we migrated before we saw the answer.
Thanks to #Joel Odey. By referring to this blog I found an approach using "Clone APP".
You can try this replica for your question with the following steps:
Create another destination app service plan.
Make sure you clone the app service into the same resource group and region as the destination plan.
Search for the web app you want to clone.
Inside the web app, click on clone app feature available on the left side of the blade.
Select the new region while cloning the app and click on clone
Delete the previous service plan.
Before cloning, the region is Central Us:
After cloning, I moved it to East US region:
Note: To perform cloning operation, you need to have premium app sevice plan otherwise it will not be possible.
For more info you can refer this Ms Doc
Related
I have an app service which I created in Central US. However, I would like instead to have the app service located in West US instead. Can I use powershell alone to make this shift?
I realize I can simply delete the app service and plan, and re-create, but looking for powershell to help me here?
According to my research, Azure now does not allow customers to move their resources form one region to another region. For more details, please refer to the feedback.
We have deployed our Web Apps on Azure. The sql Databases that they work on are located in South India.But the Web Apps are deployed in US Region. Please let us know how to migrate our Applications to Indian Data Center in Azure from US Data Centers .
Regards,
Susan Manoj Thankachan
You can't change location of an app service plan. However, you could realize it with two ways.
1.You create a new service plan with the specific location and redeploy you web.
2.Still create a new service plan with the location you want, then go to the App Service you want to change, choose Clone App under Development Tools ,in here you can rename web name and choose a new service plan. Here is the screenshot.But if you want to use this function , you maybe need to scale up your original service plan, you could delete plan and web after clone your web.
If you still have questions, please let me know.
We have BizSpark subscription with shared app service plan, where we are hosting our product. I need to host another version of the project for testing purpose, which fits into a free tier. I have checked the azure portals, but there is no provision to add a new service plan. does the BizSpark subscription support only one app service plan or am I missing anything?
Because an App Service services is an underlying component to other services, there isn't a simple way to directly create an App Service.
Since the only use case to create an App Service is to put something in it, the logic (I imagine) behind the Portals is that you create the resources you require and and it will create dependent resources within that process.
(Using the New Portal)
In order to create a new App Service plan, presuming you are deploying a new Web App. Click on New, Web + Mobile and then Web App.
When you click on Web App you will get this screen, if you fill in the details, and click App Service plan / Location at the bottom, you will be given the opportunity to select either an existing App Service or to create a new one.
The easiest solution would be to create a new Web app and when asked for App Service create a new one .. or use Azure Resource Manager template to achieve this: https://azure.microsoft.com/en-gb/documentation/templates/.
If it's another version of the App for testing purposes, why not use Deployment Slots? Slots have their custom URL separate from the Production app, separated configuration, domain bindings, it's like an App inside an App. You'll be able (if you want) to even swap the content of the Production environment with the Testing one for example.
And you don't incur in any extra cost because it runs on the resources of the current App Service :)
I am trying to delete everything related to a mobile app back-end I previously created, and I was able to delete everything but the app service plan.
It shows that the App service plan has no connected apps and no pricing tier, but I still can't delete it:
And when I try to click on the plan to see its details, the portal goes into an infinite loading state and nothing else happens:
Can anyone help me solve this problem?
I had a similar issue. The app service plan couldn't be deleted, but I wasn't able to access is properly from the Azure Portal. I managed to remove the plan like this:
Make sure all related apps (web jobs, ...) were removed.
Open PowerShell and log in to your Azure account: Login-AzureRmAccount.
Remove the app service plan: Remove-AzureRmAppServicePlan -Name <name> -ResourceGroupName <resourcegroup>.
If you delete the ResourceGroup it is located in, it will dissapear.
Nowadays it's possible to move most resources between ResourceGroups.
So you can create a new ResourceGroup, for example "ToBeDeleted", and then move the AppServicePlan to "ToBeDeleted" and then remove the ResourceGroup.
Once I had a WebApp in an App Service Plan (only one). There was some problem with the Aplication, and it was consuming all the CPU of the plan. I then moved the WebApp to another plan. It started to consume all the CPU (~100%) in the new (destination) App Service Plan.
After moving the app, in Azure portal, the original App Service Plan appeared as having "0 apps, 0 slots" (empty), yet the CPU was still around 100%. Weird!
Azure wouldn't let me remove that empty origin App Service Plan, telling me to first remove all the App it contained (which should be none).
I guessed Azure had registered the movement of the WebApp to the destination App Service Plan, yet some process was somehow stuck in the original App Service Plan, and until the process wouldn't end, I wouldn't be able to remove the App Service Plan (hence I would pay for it).
My trick here was to Scale Down that original App Service Plan. It was Premium, and I scaled it down to Free. When you scale up/down, Azure migrate deploys your app on a new set of machines. That is the stuck process would then forcely disappear. No new process was spawned on the new machine, as Azure had no account of any app being deployed on that App Service Plan anyway :)
Once scaled down to Free, I was instantly able to remove the empty plan.
So, in case you have any such problem, scale Up or Down the plan. It will assign new VMs, with no remaining processes nor new app process (as no apps are registred to the empty plan!)
Make sure no Resource Group is attached to the Service Plan.
I had the same issue and below fix worked for me.
Go to Resource Group tab in Azure portal.
Delete the attached Resource Group and then App Service Plan will delete automatically.
To confirm, go to All Resource tab and you should not see that App Service Plan anymore. Refresh if required or wait if delete is still in-progress.
Hope that helps.
I have just delete a service plan right now without issues.
Looks like any transient situation in azure Web Apps, try again/verify in a few minutes.
If the problem persist you can create a support ticket here:
Support Ticket
After deleting the Recourcegroup, it's no longer possible to rech the Service Plan over the portal!
If you don't have some Important things running on them, you can cancel the subscription.
Home --> Subscription --> Cancel subscription.
That stops everything and all billing costs.
Then you can add a new one.
To make the new subscription visible, you have to go setting --> Directories + subscriptions --> Default subscription filter --> select new subscription --> logout --> login.
On new Azure portal:
Click on your App service plan
Delete it
I had the same problem, also tried the script which executed without errors. In the end I pressed F12 to bring up the browser dev-tools, checked "disable cache" in the network tab and refreshed the web page with the service plans. And it's gone :)
I currently have a Web Application and SQL Database instance published on my own personal Azure trial subscription. However the app is now finished and I want to hand ownership over to the person I am creating it for. So I want to publish it to his Azure subscription, so he can look after billing, monitor, and have ownership of the application etc.
I asked him to add me as a user to his account, and now I see his company name listed as a 'Directory' from the portals home page (along with my Default Directory, my Web App, and my SQL Database). I don't know how to proceed from here. I want to be able to Publish it from Visual Studio 2013 - then run my code first migrations to create the database, all to a location that his company and not me is responsible for.
Is my approach to this wrong? In a general sense, how do you develop a test application (and test it in Azure) and publish it for someone else on Azure?
The first comment on the question is sort of what I am trying to achieve:
Transfer all data from my account to another in the same Azure subscription
"What do you mean by from my account to another in the same Azure subscription? Normally I have seen folks want to move data from one subscription to another one (say from Dev Subscription to Prod Subscription)."
But if I just transfer the app I wouldn't be able to make changes in VS and re-publish it, for example.
EDIT:
I found this article on Migrating an enterprise web app to an Azure service. Would it be possible to Publish the app to my local dev machine (with local database), then use the Migration Assistance to move it to Azure? Obviously to do this I would need my clients Microsoft ID and password to log into his subscription which is not ideal.
You will first want to make sure that the subscription appears in your "Subscription list" in the top right corner and is selected.
I am assuming you have connected your VS with your Azure subscription and are able to publish your app to your subscription from here, and that the new subscription is "missing" from your selection. But now you have been added to a new subscription but have not updated VS. Remove and readd Azure Subscriptions from VS. This should require you to log into Azure, and should pull updated account information.
Now when you Deploy your app, you will be able to select which Subscription you want to deploy it into.