skip to Main Content

Azure – While importing the resources, I got an error message

azurerm_public_ip.TestGeraldVm: Importing from ID "C:/Program Files/Git/subscriptions/3476gjkfe7-73ed-3444-2124-n8e6ad00jr1z/resourceGroups/henry/providers/Microsoft.Network/publicIPAddresses/TestVm-ip"... Error: parsing "C:/Program Files/Git/subscriptions/3476gjkfe7-73ed-3444-2124-n8e6ad00jr1z/resourceGroups/henry/providers/Microsoft.Network/publicIPAddresses/TestVm-ip": parsing segment "subscriptions": parsing the PublicIPAddress ID: the segment at position 0 didn't match Expected a PublicIPAddress ID that matched: /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/example-resource-group/providers/Microsoft.Network/publicIPAddresses/publicIPAddressesValue However this value was provided: C:/Program Files/Git/subscriptions/3476gjkfe7-73ed-3444-2124-n8e6ad00jr1z/resourceGroups/henry/providers/Microsoft.Network/publicIPAddresses/TestVm-ip The parsed…

VIEW QUESTION

Terraform import azurerm_role_assignment id

I want to import an azurerm_role_assignment (Azure) in Terraform dependent on my environment (dev, test, prod) by using an import block such as import { to = azurerm_role_assignment.test_role_assignment id = "<scope>/.../<GUID>" } At the moment I use az role assignment…

VIEW QUESTION
Back To Top
Search