Skip to content

Instantly share code, notes, and snippets.

@ahanoff
Created October 18, 2018 02:09
Show Gist options
  • Save ahanoff/7a022626f8e406963f5d468cd743a6c0 to your computer and use it in GitHub Desktop.
Save ahanoff/7a022626f8e406963f5d468cd743a6c0 to your computer and use it in GitHub Desktop.
data "azurerm_client_config" "current" {}
output "account_id" {
value = "${data.azurerm_client_config.current.client_id}"
}
output "tenant_id" {
value = "${data.azurerm_client_config.current.tenant_id}"
}
output "subscription_id" {
value = "${data.azurerm_client_config.current.subscription_id }"
}
output "service_principal_application_id" {
value = "${data.azurerm_client_config.current.service_principal_application_id}"
}
output "service_principal_object_id" {
value = "${data.azurerm_client_config.current.service_principal_object_id}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment