Location for dynamic scope is not able to choose

Varma 1,385 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.
320 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.