skip to Main Content

Azure DevOps Pipelines: TerraformTaskV4: init with different subscription and Workflow Identity Federation

I have a Azure DevOps YAML pipeline and want to deploy resources with Terraform to Azure. As first step I need to run terraform init. For that I want to use TerraformTaskV4 (https://github.com/microsoft/azure-pipelines-terraform/blob/main/Tasks/TerraformTask/TerraformTaskV4/README.md): - task: TerraformTaskV4@4 displayName: Initialize Terraform inputs:…

VIEW QUESTION

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
Back To Top
Search