#Unable to find information regarding azure provider information in ARM
or using azure CLI?
#I looked in the portal and google but none are providing the
information?
#needing the provider information so I can connect to Azure and run terraform deployment via azure terraform. I want to place in a tf file.
Can I separate the below into a single tf file and place other resources such as the actual deployment of vnet, subnets, Iaas deployment, public IP,… all in separate tf files?
AZURE Connection information requested in the above link.
provider "azurerm" {
subscription_id = "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
client_id = "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
client_secret = "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
tenant_id = "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
resource "azurerm_resource_group" "myterraformgroup" {
name = "myResourceGroup"
location = "eastus"
tags = {
environment = "Terraform Demo"
}
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX I am trying to find the “client_id” and “client_secret”? Is “id” the same as subscription_id? What is isDefault = True? What is the difference form is Default = False? Can I assume the False is the free trial then the True is the actual pay as you go?
###output appeared automatically when logged in from azure CLI:
[ { “cloudName”: “AzureCloud”, “id”: “21eb90c5-a6ed-4819-a2d0-XXXXXXXXXXXXXX”, “isDefault”: true, “name”: “Pay-As-You-Go”, “state”: “Enabled”, “tenantId”: “1d6cd91f-d633-4291-8eca-XXXXXXXXXXX”, “user”: { “name”: "samename01@yahoo.com", “type”: “user” } }, { “cloudName”: “AzureCloud”, “id”: “b6d5b1ee-7327-42a0-b8e3-XXXXXXXXXXXXXX”, “isDefault”: false, “name”: “Pay-As-You-Go”, “state”: “Enabled”, “tenantId”: “1d6cd91f-d633-4291-8eca-XXXXXXXXXXXX”, “user”: { “name”: "samename01@yahoo.com", “type”: “user” } } ]