How to delete Properties of an Azure App Service Plan ?

David Maryo 111 Reputation points
2022-04-08T16:19:05.817+00:00

I have deployed an Azure App Service Plan and now I wanted to delete some of the properties.. For example, I would like to delete the property named "reserved".

Below is the Resource JSON of my App Service Plan:

Note: Some of the sensitive information has been sanitized.

{
    "id": "/subscriptions/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "name": "demo-function-app-plan",
    "type": "Microsoft.Web/serverfarms",
    "kind": "functionapp",
    "location": "xxxxxxxxxx",
    "tags": {},
    "properties": {
        "serverFarmId": xxxxx,
        "name": "demo-function-app-plan",
        "workerSize": "Default",
        "workerSizeId": 0,
        "workerTierName": null,
        "numberOfWorkers": 0,
        "currentWorkerSize": "Default",
        "currentWorkerSizeId": 0,
        "currentNumberOfWorkers": 0,
        "status": "Ready",
        "reserved": true,
        "isXenon": false,
        "hyperV": false,
        ...
        ...
    }
} 

Is there a way to delete the property from Azure UI or from Azure CLI ?

I tried something like the following using azure-cli but it seems, I am missing something.

az appservice plan delete --ids /subscriptions/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/{properties:reserved}
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,155 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Takahito Iwasa 4,841 Reputation points MVP
    2022-04-09T21:41:33.13+00:00

    Hi, @David Maryo

    It is not possible to delete the settings of ARM resources.
    However, you may be able to omit those properties when creating an ARM template.

    Why do you want to remove it?

    1 person found this answer helpful.
    0 comments No comments