Discrepancy in Azure Function App Deployment Between Portal and PowerShell

Tiwari, Jyoti 0 Reputation points
2024-11-25T12:51:22.3166667+00:00

I encountered an issue while deploying a Function App in the East US region:

Issue with Azure Portal: Deployment failed with the error:

"The template deployment 'Microsoft.Web-FunctionApp-Portal-XXXXXXXX' is not valid according to the validation procedure. Code: ValidationForResourceFailed. This region has a quota of 0 instances for your subscription."

PowerShell Deployment: The same Function App deployment succeeded without any errors when using PowerShell. Both deployments used identical configurations, including:

  • Runtime Stack: Java 11.0
    • Hosting Plan: Consumption (Dynamic SKU)
      • Region: East US
      Steps to Reproduce:
      1. Attempt to deploy a Function App in **East US** using the Azure Portal.
      
         1. Use the same settings to deploy the Function App using PowerShell (`New-AzFunctionApp`).
      
         **Expected Behavior**: The deployment should either succeed or fail consistently across both the Azure Portal and PowerShell.
      

Request:

Please investigate the following:

  1. Why the Azure Portal fails the deployment with a quota error, but PowerShell succeeds?
  2. Is this a bug in the Portal validation process, or is there a hidden quota difference in how these tools operate?

Awaiting response

Azure SQL Database
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,162 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,642 questions
0 comments No comments
{count} votes

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.