Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,013 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Azure devops pipeline for terraform failed with error
A resource with the ID "/providers/Microsoft.Web/sourceControls/GitHub" already exists - to be managed via Terraform this resource needs to be imported into the State.
How to import this in azure settings. I gave in additional command. But it gave error
1m[31mError: [0m[0m[1mToo many command line arguments[0m
2023-08-05T18:21:46.5869211Z [31m│[0m [0m
2023-08-05T18:21:46.5869722Z [31m│[0m [0m[0mExpected at most one positional argument.
It would be best if you used the terraform import
command to import an existing resource into Terraform state. The correct syntax for importing a resource is as follows:
terraform import RESOURCE_TYPE.RESOURCE_NAME ID