Skip to main content

LocationRequired: The resource needs a location

The resource needs a location value. The location of the deployment or its resource group doesn't fill in a missing value in the resource declaration.

What to check​

  1. Find the resource in the error and check whether the location property is missing or evaluates to an empty value.
  2. Supply a location supported by the resource type. Use the resource group's location only if it meets the resource's requirements.

Official reference​