Renaming the app service plan and app service using ARM template

Varma 1,380 Reputation points
2024-08-17T07:27:38.9633333+00:00

can not we rename the existing app service name and plan with out deleting the existing resources which was created using ARM template. ?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,679 questions
0 comments No comments
{count} votes

Accepted answer
  1. TP 90,636 Reputation points
    2024-08-17T07:43:28.95+00:00

    Hi,

    You cannot rename an existing app service plan or web app.

    What you may be able to do is create a new app service plan in same resource group, same region, with same OS as existing app service plan, and then switch the existing web app over to the new plan. This will work only some of the time which is why I used the word "may" in previous sentence.

    If you give the above method a try and it succeeds you will have effectively renamed the app service plan, however, the web app name will be the same. Once you have switched the web app over to the new plan you could delete the old plan, assuming there are no other apps and you no longer need it.

    Please click Accept Answer and upvote if the above was helpful.

    Thanks.

    -TP


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.