Hi, I'm trying to deploy my bicepscript but I am getting this error:
{
"status": "Failed",
"error": {
"code": "DeploymentFailed",
"target": "/subscriptions/<guid>/resourceGroups/<customer>-kmr-uat/providers/Microsoft.Resources/deployments/uatDeploy060825",
"message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.",
"details": [
{
"code": "ResourceDeploymentFailure",
"target": "/subscriptions/<guid>/resourceGroups/<customer>-kmr-uat/providers/Microsoft.Resources/deployments/<customer>-uat-scheduler-func",
"message": "The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'.",
"details": [
{
"code": "DeploymentFailed",
"target": "/subscriptions/<guid>/resourceGroups/<customer>-kmr-uat/providers/Microsoft.Resources/deployments/<customer>-uat-scheduler-func",
"message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.",
"details": [
{
"code": "Unauthorized",
"target": "/subscriptions/<guid>/resourceGroups/<customer>-kmr-uat/providers/Microsoft.Web/serverfarms/<customer>-uat-scheduler-func-plan",
"message": "{\r\n \"Code\": \"Unauthorized\",\r\n \"Message\": \"Requested features are not supported in region. Please try another region.\",\r\n \"Target\": null,\r\n \"Details\": [\r\n {\r\n \"Message\": \"Requested features are not supported in region. Please try another region.\"\r\n },\r\n {\r\n \"Code\": \"Unauthorized\"\r\n },\r\n {\r\n \"ErrorEntity\": {\r\n \"ExtendedCode\": \"59911\",\r\n \"MessageTemplate\": \"Requested features are not supported in region. Please try another region.\",\r\n \"Parameters\": [],\r\n \"Code\": \"Unauthorized\",\r\n \"Message\": \"Requested features are not supported in region. Please try another region.\"\r\n }\r\n }\r\n ],\r\n \"Innererror\": null\r\n}"
}
]
}
]
}
]
}
}
In the dev resource group I have manually added a function app using the portal gui and compared the plan parameters.
My plan in bicep looks like this: (Also tried with all properties set the same as the one in the dev resource group)
resource functionAppPlan 'Microsoft.Web/serverfarms@2024-11-01' = {
name: '${name}-plan'
location: 'Norway East'
sku: {
name: 'FC1'
tier: 'FlexConsumption'
size: 'FC1'
family: 'FC'
capacity: 0
}
kind: 'functionapp'
}
I'm running Azure CLI 2.76.0
output from: az functionapp list-flexconsumption-locations --output table
Name
------------------
canadacentral
northeurope
westeurope
southeastasia
eastasia
westus
japanwest
japaneast
eastus2
northcentralus
southcentralus
brazilsouth
australiaeast
australiasoutheast
centralus
eastus
centralindia
southindia
westcentralus
westus2
ukwest
uksouth
eastus2euap
koreacentral
francecentral
southafricanorth
switzerlandnorth
germanywestcentral
uaenorth
norwayeast <-------
westus3
swedencentral
italynorth
spaincentral
Why can't I use bicep to create this Flex Consumption Plan for my function?