Microsoft.Web/serverfarms resource deployment unspecified error

Serhii Tsotsko 26 Reputation points

Hi Everyone!

Since approx. 3rd of Aug I'm experiencing a problem with deployment of App Service plans for a set of Locations, for instance: centralus, japanwest and canadaeast.

A simple test configuration:

json parameters file:

"$schema": "",
"contentVersion": "",
"parameters": {
"location": {
"value": "centralus"
"appServicePlanName": {
"value": "mytestappServiceNameForCentralUS"
"appServicePlanKind": {
"value": "app"
"appServicePlanSku": {
"value": "D1"

bicep template file:

@description('Location of deployed resources')
param location string

@description('Required. Name of the App Service Plan')
param appServicePlanName string

@description('Required. Kind of the App Service Plan')
param appServicePlanKind string

@description('Required. SKU of the App Service Plan')
param appServicePlanSku string

resource appServicePlan 'Microsoft.Web/serverfarms@2021-03-01' = {
name: appServicePlanName
location: location
sku: {
name: appServicePlanSku
kind: appServicePlanKind

New-AzResourceGroupDeployment -ResourceGroupName <your-rg> -TemplateFile template.bicep -TemplateParameterFile templ.parameters.json

and generic error:

New-AzResourceGroupDeployment: 12:38:25 - Error: Code=InvalidTemplateDeployment; Message=The template deployment 'copy' is not valid according to the validation procedure. The tracking id is '9bee2b29-2c34-40c2-9370-5db12c3606b5'. See inner errors for details.
New-AzResourceGroupDeployment: 12:38:25 - Error: Code=; Message=Object reference not set to an instance of an object.
New-AzResourceGroupDeployment: The deployment validation failed

I'm wondering if there are any problems with those regions on MS side?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,801 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Ryan Hill 25,476 Reputation points Microsoft Employee

    Hi @Serhii Tsotsko , have you tried deploying resources through the portal or CLI? Also try using the CLI, az deployment group create --resource-group <your rg> --name <your deployment> --template-file .\template.bicep --parameters @templ.parameters.json to see if that fails. If that fails, let me know; if it doesn't, have you done any PowerShell module updates on your terminal?