A community member has associated this post with a similar question:
The subscription is not allowed to create or update the serverfarm

Only moderators can edit this content.

Unable to create azure app service. "is not allowed to create or update the serverfarm."

flower119 0 Reputation points
2024-04-18T00:43:47.5333333+00:00

I am the owner of this subscription. I can't select and create Azure App Service, Code Deployment, NET8, Linux.

[
  {
    "id": "/subscriptions/838b3ee5-362d-4fc3-a64d-b3361a803120/resourceGroups/flower119/providers/Microsoft.Resources/deployments/Microsoft.Web-WebApp-Portal-ed5f4b1e-9ef1/operations/C04D7EE889A95976",
    "operationId": "C04D7EE889A95976",
    "properties": {
      "provisioningOperation": "Create",
      "provisioningState": "Running",
      "timestamp": "2024-04-18T00:21:17.8522028Z",
      "duration": "PT20.1335695S",
      "trackingId": "16ab367e-1d9a-4712-a199-5497528167fd",
      "statusCode": "BadGateway",
      "statusMessage": {
        "status": "Failed",
        "error": {
          "code": "Forbidden",
          "message": "The subscription '838b3ee5-362d-4fc3-a64d-b3361a803120' is not allowed to create or update the serverfarm.",
          "details": [
            {
              "message": "The subscription '838b3ee5-362d-4fc3-a64d-b3361a803120' is not allowed to create or update the serverfarm."
            },
            {
              "code": "Forbidden"
            },
            {}
          ]
        }
      },
      "targetResource": {
        "id": "/subscriptions/838b3ee5-362d-4fc3-a64d-b3361a803120/resourceGroups/flower119/providers/Microsoft.Web/serverfarms/ASP-flower119-9ab1",
        "resourceType": "Microsoft.Web/serverfarms",
        "resourceName": "ASP-flower119-9ab1"
      }
    }
  }
]
{
  "id": "/subscriptions/838b3ee5-362d-4fc3-a64d-b3361a803120/resourceGroups/flower119/providers/Microsoft.Resources/deployments/Microsoft.Web-WebApp-Portal-ed5f4b1e-9ef1",
  "name": "Microsoft.Web-WebApp-Portal-ed5f4b1e-9ef1",
  "type": "Microsoft.Resources/deployments",
  "tags": {
    "primaryResourceId": "/subscriptions/838b3ee5-362d-4fc3-a64d-b3361a803120/resourcegroups/flower119/providers/Microsoft.Web/sites/flower119-app",
    "marketplaceItemId": "Microsoft.WebSite",
    "provisioningHash": "customize-post-provisioning-steps-webapp-deployment"
  },
  "properties": {
    "templateHash": "7602750783592817720",
    "parameters": {
      "subscriptionId": {
        "type": "String",
        "value": "838b3ee5-362d-4fc3-a64d-b3361a803120"
      },
      "resourceGroupName": {
        "type": "String",
        "value": "flower119"
      },
      "name": {
        "type": "String",
        "value": "flower119-app"
      },
      "location": {
        "type": "String",
        "value": "Korea Central"
      },
      "hostingPlanName": {
        "type": "String",
        "value": "ASP-flower119-9ab1"
      },
      "serverFarmResourceGroup": {
        "type": "String",
        "value": "flower119"
      },
      "alwaysOn": {
        "type": "Bool",
        "value": false
      },
      "ftpsState": {
        "type": "String",
        "value": "FtpsOnly"
      },
      "sku": {
        "type": "String",
        "value": "Basic"
      },
      "skuCode": {
        "type": "String",
        "value": "B1"
      },
      "workerSize": {
        "type": "String",
        "value": "0"
      },
      "workerSizeId": {
        "type": "String",
        "value": "0"
      },
      "numberOfWorkers": {
        "type": "String",
        "value": "1"
      },
      "currentStack": {
        "type": "String",
        "value": "dotnet"
      },
      "phpVersion": {
        "type": "String",
        "value": "OFF"
      },
      "netFrameworkVersion": {
        "type": "String",
        "value": "v8.0"
      }
    },
    "mode": "Incremental",
    "debugSetting": {
      "detailLevel": "None"
    },
    "provisioningState": "Running",
    "timestamp": "2024-04-18T00:21:17.7899428Z",
    "duration": "PT20.700308S",
    "correlationId": "c22f743e-5d40-4071-9a6c-7d300d5a9672",
    "providers": [
      {
        "namespace": "Microsoft.Web",
        "resourceTypes": [
          {
            "resourceType": "sites",
            "locations": [
              "koreacentral"
            ]
          },
          {
            "resourceType": "sites/basicPublishingCredentialsPolicies",
            "locations": [
              null
            ]
          },
          {
            "resourceType": "serverfarms",
            "locations": [
              "koreacentral"
            ]
          }
        ]
      }
    ],
    "dependencies": [
      {
        "dependsOn": [
          {
            "id": "/subscriptions/838b3ee5-362d-4fc3-a64d-b3361a803120/resourceGroups/flower119/providers/Microsoft.Web/serverfarms/ASP-flower119-9ab1",
            "resourceType": "Microsoft.Web/serverfarms",
            "resourceName": "ASP-flower119-9ab1"
          }
        ],
        "id": "/subscriptions/838b3ee5-362d-4fc3-a64d-b3361a803120/resourceGroups/flower119/providers/Microsoft.Web/sites/flower119-app",
        "resourceType": "Microsoft.Web/sites",
        "resourceName": "flower119-app"
      },
      {
        "dependsOn": [
          {
            "id": "/subscriptions/838b3ee5-362d-4fc3-a64d-b3361a803120/resourceGroups/flower119/providers/Microsoft.Web/Sites/flower119-app",
            "resourceType": "Microsoft.Web/Sites",
            "resourceName": "flower119-app"
          }
        ],
        "id": "/subscriptions/838b3ee5-362d-4fc3-a64d-b3361a803120/resourceGroups/flower119/providers/Microsoft.Web/sites/flower119-app/basicPublishingCredentialsPolicies/scm",
        "resourceType": "Microsoft.Web/sites/basicPublishingCredentialsPolicies",
        "resourceName": "flower119-app/scm"
      },
      {
        "dependsOn": [
          {
            "id": "/subscriptions/838b3ee5-362d-4fc3-a64d-b3361a803120/resourceGroups/flower119/providers/Microsoft.Web/Sites/flower119-app",
            "resourceType": "Microsoft.Web/Sites",
            "resourceName": "flower119-app"
          }
        ],
        "id": "/subscriptions/838b3ee5-362d-4fc3-a64d-b3361a803120/resourceGroups/flower119/providers/Microsoft.Web/sites/flower119-app/basicPublishingCredentialsPolicies/ftp",
        "resourceType": "Microsoft.Web/sites/basicPublishingCredentialsPolicies",
        "resourceName": "flower119-app/ftp"
      }
    ],
    "validationLevel": "Template"
  }
}
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,901 questions
{count} votes