Skip to content

"az functionapp create" failing to create App Service Plan in select regions #28944

@brettnagy

Description

@brettnagy

Describe the bug

Using the Azure CLI to create a new consumption plan function in South Central US fails to create the associated app service plan, but the function is created successfully. Using the Azure Portal to create the function in SCUS (point and click, not cloud shell) works as expected and creates the Y1 plan.

Using the Azure CLI and South Central US location, after creating the consumption plan function, an app service plan name is shown:

image

Clicking on the app service plan name produces the following 404 error:

image

Using "az functionapp show" against the newly created function throws an error:

image

Using the Azure CLI and East US location, the function and its app service plan are created successfully and the app service plan can be viewed in the portal.

image

Related command

Repro Steps

$someRandom = "PUT SOMETHING SHORT & RANDOM IN HERE"
$location = "southcentralus"
$resourceGroupName = "FunctionResourceGroup"
$storageName = "funcstorage$someRandom"
$functionAppName = "funcapp$someRandom"

az group create --name $resourceGroupName --location $location
az storage account create --name $storageName --location $location --resource-group $resourceGroupName --sku Standard_LRS
az functionapp create --name $functionAppName --storage-account $storageName --consumption-plan-location $location --resource-group $resourceGroupName --functions-version 4

-- this following line will fail in SCUS
az functionapp show --name $functionAppName --resource-group $resourceGroupName

image

Errors

Clicking on the app service plan name produces the following 404 error:

image

Using "az functionapp show" against the newly created function throws an error:

image

Issue script & Debug output

Can provide on request. It's big and did not show any errors.

Expected behavior

"az functionapp create", when using the --consumption-plan-location argument, should create a Y1 app service plan that can be viewed in the portal. The "az functionapp show" command should be able to retrieve details of the function.

Environment Summary

image

Same incorrect behavior seen when using the Azure Portal Cloud Shell & PowerShell.

Additional context

No response

Metadata

Metadata

Labels

Auto-AssignAuto assign by botFunctionsaz functionappService AttentionThis issue is responsible by Azure service team.act-observability-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions