Location for dynamic scope is not able to choose

Varma 1,275 Reputation points
2024-04-27T09:19:24.58+00:00

I am trying to use following


resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Maintenance/configurationAssignments@2023-04-01"
  name = "DS1"
  location =  "West Europe"
  schema_validation_enabled = false
  parent_id = "/subscriptions/XXX/"
  body = jsonencode({
    properties = {
      filter = {
        locations = [
          ""
        ]
        osTypes = [
          ""
        ]
        resourceGroups = [
          "acr-rg1"
        ]
        resourceTypes = [
          ""
        ]
        tagSettings = {
          filterOperator = ""
          tags = {}
        }
      }
      maintenanceConfigurationId = "/subscriptions/93048f2d-2d0f-44cc-b12c-4df25a3c5ff5/resourcegroups/rg1/providers/microsoft.maintenance/maintenanceconfigurations/mc1"
      resourceId = "XXX"
    }
  })
}



ERROR:

ERROR CODE UNAVAILABLE

│ --------------------------------------------------------------------------------

│ {

│ "Error": {

│ "Code": "InvalidResourceLocation",

│ "Message": "Region not supported westeurope, Resource: /subscriptions/93048f2d-2d0f-44cc-b12c-4df25a3c5ff5"

│ }

│ }

│ --------------------------------------------------------------------------------

│ with azapi_resource.symbolicname,

│ on main.tf line 74, in resource "azapi_resource" "symbolicname":

│ 74: resource "azapi_resource" "symbolicname" {

Please suggest

Azure Update Manager
Azure Update Manager
An Azure service to centrally manages updates and compliance at scale.
268 questions
0 comments No comments
{count} votes