Azure-docs: ElasticPremium pricing tier not allowed in resource group

Created on 10 Apr 2019  Â·  8Comments  Â·  Source: MicrosoftDocs/azure-docs

Currently getting the following issue while attempting to deploy the Premium plan to an existing Resource Group. Is this a known limitation of the premium plan? What is the expected migration path for deployments that wish to upgrade? Are users expected to have to redeploy to a completely new resource group just to use the feature?

The pricing tier 'ElasticPremium' is not allowed in this resource group.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

azure-functionsvc cxp product-question triaged

Most helpful comment

@wahyuen I tried to deploy the Premium plan to an existing Resource Group using the portal and it worked for me in the Australia East region.

I tried with the below ARM template in the existing Resource Group and it is working.

Can you try with the below ARM template and see if that works.

{  
   "$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
   "contentVersion":"1.0.0.0",
   "parameters":{  
      "appName":{  
         "type":"string",
         "metadata":{  
            "description":"The name of the function app that you wish to create."
         }
      },
      "storageAccountType":{  
         "type":"string",
         "defaultValue":"Standard_LRS",
         "allowedValues":[  
            "Standard_LRS",
            "Standard_GRS",
            "Standard_RAGRS"
         ],
         "metadata":{  
            "description":"Storage Account type"
         }
      },
      "location":{  
         "type":"string",
         "defaultValue":"[resourceGroup().location]",
         "metadata":{  
            "description":"Location for all resources."
         }
      }
   },
   "variables":{  
      "functionAppName":"[parameters('appName')]",
      "hostingPlanName":"[parameters('appName')]",
      "storageAccountName":"[concat(uniquestring(resourceGroup().id), 'functions')]"
   },
   "resources":[  
      {  
         "type":"Microsoft.Storage/storageAccounts",
         "name":"[variables('storageAccountName')]",
         "apiVersion":"2018-02-01",
         "location":"[parameters('location')]",
         "kind":"Storage",
         "sku":{  
            "name":"[parameters('storageAccountType')]"
         }
      },
      {  
         "type":"Microsoft.Web/serverfarms",
         "apiVersion":"2018-02-01",
         "kind":"elastic",
         "name":"[variables('hostingPlanName')]",
         "location":"[parameters('location')]",
         "sku":{  
            "name":"EP1",
            "tier":"ElasticPremium",
            "size":"EP1",
            "family":"EP",
            "capacity":1
         },
         "properties":{  
            "name":"[variables('hostingPlanName')]"
         }
      },
      {  
         "apiVersion":"2018-02-01",
         "type":"Microsoft.Web/sites",
         "name":"[variables('functionAppName')]",
         "location":"[parameters('location')]",
         "kind":"functionapp",
         "properties":{  
            "serverFarmId":"[resourceId('Microsoft.Web/serverfarms', variables('hostingPlanName'))]",
            "siteConfig":{  
               "appSettings":[  
                  {  
                     "name":"AzureWebJobsStorage",
                     "value":"[concat('DefaultEndpointsProtocol=https;AccountName=',variables('storageAccountName'),';AccountKey=',listkeys(resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName')), '2015-05-01-preview').key1,';')]"
                  },
                  {  
                     "name":"WEBSITE_CONTENTAZUREFILECONNECTIONSTRING",
                     "value":"[concat('DefaultEndpointsProtocol=https;AccountName=',variables('storageAccountName'),';AccountKey=',listkeys(resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName')), '2015-05-01-preview').key1,';')]"
                  },
                  {  
                     "name":"WEBSITE_CONTENTSHARE",
                     "value":"[toLower(variables('functionAppName'))]"
                  },
                  {  
                     "name":"FUNCTIONS_WORKER_RUNTIME",
                     "value":"node"
                  },
                  {  
                     "name":"WEBSITE_NODE_DEFAULT_VERSION",
                     "value":"10.14.1"
                  },
                  {  
                     "name":"FUNCTIONS_EXTENSION_VERSION",
                     "value":"~2"
                  }
               ]
            }
         },
         "dependsOn":[  
            "[resourceId('Microsoft.Web/serverfarms', variables('hostingPlanName'))]",
            "[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName'))]"
         ]
      }
   ]
}

All 8 comments

@wahyuen Thank you for your feedback! We will review and provide an update as appropriate.

@wahyuen Have you tried creating the same resource using portal instead of ARM deployment. If not , could you please try if possible.

The troubleshooting steps for this error message is mentioned in the below article.
https://github.com/Azure/Azure-Functions/blob/master/functions-premium-plan/troubleshooting.md

I have attempted this in the portal and had the same issue

{ "status": "Failed", "error": { "code": "ResourceDeploymentFailure", "message": "The resource operation completed with terminal provisioning state 'Failed'.", "details": [ { "code": "Conflict", "message": "The pricing tier 'ElasticPremium' is not allowed in this resource group. Use this link to learn more: http://go.microsoft.com/fwlink/?LinkId=825764" } ] } }

The link that was provided, is that still an issue in the current release of this feature? The documentation there hinted that this applied for the Private Preview and seemed to be specific to deploying to South Central US? (we are targetting Australia East)

I would imagine that not being able to create the premium plan on an existing Resource Group to be a large blocker for many users...

@wahyuen I tried to deploy the Premium plan to an existing Resource Group using the portal and it worked for me in the Australia East region.

I tried with the below ARM template in the existing Resource Group and it is working.

Can you try with the below ARM template and see if that works.

{  
   "$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
   "contentVersion":"1.0.0.0",
   "parameters":{  
      "appName":{  
         "type":"string",
         "metadata":{  
            "description":"The name of the function app that you wish to create."
         }
      },
      "storageAccountType":{  
         "type":"string",
         "defaultValue":"Standard_LRS",
         "allowedValues":[  
            "Standard_LRS",
            "Standard_GRS",
            "Standard_RAGRS"
         ],
         "metadata":{  
            "description":"Storage Account type"
         }
      },
      "location":{  
         "type":"string",
         "defaultValue":"[resourceGroup().location]",
         "metadata":{  
            "description":"Location for all resources."
         }
      }
   },
   "variables":{  
      "functionAppName":"[parameters('appName')]",
      "hostingPlanName":"[parameters('appName')]",
      "storageAccountName":"[concat(uniquestring(resourceGroup().id), 'functions')]"
   },
   "resources":[  
      {  
         "type":"Microsoft.Storage/storageAccounts",
         "name":"[variables('storageAccountName')]",
         "apiVersion":"2018-02-01",
         "location":"[parameters('location')]",
         "kind":"Storage",
         "sku":{  
            "name":"[parameters('storageAccountType')]"
         }
      },
      {  
         "type":"Microsoft.Web/serverfarms",
         "apiVersion":"2018-02-01",
         "kind":"elastic",
         "name":"[variables('hostingPlanName')]",
         "location":"[parameters('location')]",
         "sku":{  
            "name":"EP1",
            "tier":"ElasticPremium",
            "size":"EP1",
            "family":"EP",
            "capacity":1
         },
         "properties":{  
            "name":"[variables('hostingPlanName')]"
         }
      },
      {  
         "apiVersion":"2018-02-01",
         "type":"Microsoft.Web/sites",
         "name":"[variables('functionAppName')]",
         "location":"[parameters('location')]",
         "kind":"functionapp",
         "properties":{  
            "serverFarmId":"[resourceId('Microsoft.Web/serverfarms', variables('hostingPlanName'))]",
            "siteConfig":{  
               "appSettings":[  
                  {  
                     "name":"AzureWebJobsStorage",
                     "value":"[concat('DefaultEndpointsProtocol=https;AccountName=',variables('storageAccountName'),';AccountKey=',listkeys(resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName')), '2015-05-01-preview').key1,';')]"
                  },
                  {  
                     "name":"WEBSITE_CONTENTAZUREFILECONNECTIONSTRING",
                     "value":"[concat('DefaultEndpointsProtocol=https;AccountName=',variables('storageAccountName'),';AccountKey=',listkeys(resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName')), '2015-05-01-preview').key1,';')]"
                  },
                  {  
                     "name":"WEBSITE_CONTENTSHARE",
                     "value":"[toLower(variables('functionAppName'))]"
                  },
                  {  
                     "name":"FUNCTIONS_WORKER_RUNTIME",
                     "value":"node"
                  },
                  {  
                     "name":"WEBSITE_NODE_DEFAULT_VERSION",
                     "value":"10.14.1"
                  },
                  {  
                     "name":"FUNCTIONS_EXTENSION_VERSION",
                     "value":"~2"
                  }
               ]
            }
         },
         "dependsOn":[  
            "[resourceId('Microsoft.Web/serverfarms', variables('hostingPlanName'))]",
            "[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName'))]"
         ]
      }
   ]
}

@KetanChawda-MSFT thanks for that, I've done some more testing today based on your ARM template and have some more observations.

Existing Resource Group Location (Australia SouthEast)

  • deploy using your ARM template targetting Australia SouthEast - Works
  • deploy using your ARM template targetting Australia East - Does not work
  • deploy using the Azure Portal targetting Australia SouthEast - Works
  • deploy using the Azure Portal targetting Australia East - Does not work

I've tested this on a brand new Resource Group from Australia Central, targetting Australia East, and both ARM + Portal works.

@wahyuen We apologize for the inconvenience you have encountered. Due to the unique characteristics of your issue, we feel it would be best if this issue is worked one on one. Please send your Azure Subscription GUID to AzCommunity[at]Microsoft[dot]com along with the link to this thread and instructions will be sent back for next steps.

Thanks! Email sent :)

@wahyuen I tried to deploy the Premium plan to an existing Resource Group using the portal and it worked for me in the Australia East region. As this is repo is meant for the documentation feedback, I would reccomend you to open this issue on Azure Function GitHub Repo for better clarity.

Please note that Elastic Premium Plan Functions are currently in preview.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mrdfuse picture mrdfuse  Â·  3Comments

spottedmahn picture spottedmahn  Â·  3Comments

varma31 picture varma31  Â·  3Comments

behnam89 picture behnam89  Â·  3Comments

ianpowell2017 picture ianpowell2017  Â·  3Comments