Terraform支持在Azure CLI中做这样的事情吗?
az role assignment create --assignee ${var.assignee} --role Reader --scope /subscriptions/${var.subscription_id}/resourceGroups/${var.registry_name}/providers/Microsoft.ContainerRegistry/registries/${var.registry_name}目前,我正在用Terraform做这样的事情
provisioner "local-exec" {
command = "az login --service-principal -u ${var.client_id} -p ${var.client_secret} --tenant ${var.tenant_id}"
}
provisioner "local-exec" {
command = "az role assignment create --assignee ${var.assignee} --role Reader --scope /subscriptions/${var.subscription_id}/resourceGroups/${var.registry_name}/providers/Microsoft.ContainerRegistry/registries/${var.registry_name}"
}发布于 2017-06-23 01:30:18
https://stackoverflow.com/questions/44705604
复制相似问题