Service Principal in block
The Azure provider block defines syntax that allows you to specify your Azure subscription's authentication information.
Step-by-Step Example
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~>3.0"
}
}
}
provider "azurerm" {
features {}
subscription_id = var.subscription_id
tenant_id = var.tenant_id
client_id = var.client_id
client_secret = var.client_secret
}
variable "subscription_id" {}
variable "tenant_id" {}
variable "client_id" {}
variable "client_secret" {}Real-Life DevOps Example: GitHub Actions
Best Practices
References
Add to SUMMARY.md
Last updated