Unable to Delete App Service

Matt 20 Reputation points
2024-07-10T19:32:30.5733333+00:00

Hi there,

I am having an issue deleting an old app service we have not been using for a while.

When I try to delete the App Service I get this message:

Failed to delete app 'NAME_REMOVED': The slot cannot be changed because its configuration settings have been prepared for swap.

This App Service does not have any slots.

I am also unable to edit the configuration, while there is not messages explaining why.

Any help would be greatly appreicated.

Thanks,

Matt

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

Accepted answer
  1. Srinud 2,315 Reputation points Microsoft Vendor
    2024-07-15T09:12:02.1333333+00:00

    Hi Matt,

    Since the Microsoft Q&A community has a policy that the question author cannot accept their own answer. They can only accept answers by others, Summarized and posted the solution that you shared, request you to Accept the answer, it will benefit the community find the answers quickly.

    Scenario:

    Unable to Delete App Service

    Issue:

    When I try to delete the App Service I get this message:

    Failed to delete app 'NAME_REMOVED': The slot cannot be changed because its configuration settings have been prepared for swap.

    Things Tried:

    Resolved this issue by resetting my Slot Config via the "Try It" button provided in the link: https://learn.microsoft.com/en-us/rest/api/appservice/web-apps/reset-production-slot-config?view=rest-appservice-2023-12-01#code-try-0 which resulted in obtaining the expected outcomes.

    Shared by @Matt

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. akinbade abiola 16,320 Reputation points
    2024-07-10T22:57:01.9733333+00:00

    Hello Matt,

    Thanks for your question
    The underlying issue is: "The slot cannot be changed because its configuration settings have been prepared for swap.".

    Cancelling the swap will fix the issue.

    See similar issue: https://github.com/Azure/azure-cli/issues/27820

    You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Regards,

    Abiola


  2. Matt 20 Reputation points
    2024-07-12T16:05:22.58+00:00
    0 comments No comments

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.