Discrepancy in Azure Function App Deployment Between Portal and PowerShell

Tiwari, Jyoti 20 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.
Windows for business | Windows Server | User experience | PowerShell
{count} votes

Answer accepted by question author
  1. JananiRamesh-MSFT 29,436 Reputation points Moderator
    2024-11-26T06:42:28.2033333+00:00

    @Tiwari, Jyoti Thanks for the update! I am able to reproduce the same at my end even i noticed that deploying from portal fails with below error

    User's image

    whereas I am able to deploy the same successfully using below PowerShell command

    https://learn.microsoft.com/en-us/powershell/module/az.functions/new-azfunctionapp?view=azps-13.0.0&tryIt=true&source=docs#examples

    as mentioned above it should be the same quota regardless of how it is deployed will check internally on this and will update you shortly.

    Appreciate your patience on this topic!


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.