Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

โ€œInvest in yourself โ€” your confidence is always worth it.โ€

Explore Cosmetic Hospitals

Start your journey today โ€” compare options in one place.

Terraform: Example Code for Create Multiple Azure Linux Vms


Step 1 – Install terraform

Step 2 – Copy a followng code into new directory in file called “main.tf”

Step 3 – Create IAM user and assign Service Principal Access?

Step 4 – update main.tf with following entry


  subscription_id = ""
  client_id       = ""
  client_secret   = ""
  tenant_id       = ""Code language: JavaScript (javascript)

Step 5 – Go inside a directory and run following command


$ terraform init
$ terraform plan 
$ terraform apply 
$ terraform destroy

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services โ€” all in one place.

Explore Hospitals

Similar Posts

Subscribe
Notify of
guest
1 Comment
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
Akhil
Akhil
2 years ago

PS D:\Devops Codes> terraform plan

Planning failed. Terraform encountered an error while generating this plan.

โ•ท
โ”‚ Error: building account: getting authenticated object ID: listing Service Principals: ServicePrincipalsClient.BaseClient.Get(): clientCredentialsToken: received HTTP status 401 with response: {“error”:”invalid_client”,”error_description”:”AADSTS7000215: Invalid client secret provided. Ensure the secret being sent in the request is the client secret value, not the client secret ID, for a secret added to app ’27cbb9f1-be27-49e8-aee0-7ac8e7032efd’.\r\nTrace ID: 28a73c19-bbc4-45e1-aae0-ead5ac800e00\r\nCorrelation ID: 46b12c2d-aabc-47da-b8fd-ba3498320195\r\nTimestamp: 2023-04-27 05:05:54Z”,”error_codes”:[7000215],”timestamp”:”2023-04-27 05:05:54Z”,”trace_id”:”28a73c19-bbc4-45e1-aae0-ead5ac800e00″,”correlation_id”:”46b12c2d-aabc-47da-b8fd-ba3498320195″,”error_uri”:”https://login.microsoftonline.com/error?code=7000215″}
โ”‚
โ”‚  with provider[“registry.terraform.io/hashicorp/azurerm”],
โ”‚  on terraform.tf line 11, in provider “azurerm”:
โ”‚  11: provider “azurerm” {
โ”‚
โ•ต
PS D:\Devops Codes>