- initialize Developer CLI with
azd init
- read values from azd environment
source <(azd env get-values)
- initialize Terraform state storage with
scripts/az-tfstate.sh $AZURE_LOCATION
;
note thatinfra/provider.conf.json
is configured to reference remote state environment variablesRS_STORAGE_ACCOUNT
,RS_CONTAINER_NAME
andRS_RESOURCE_GROUP
set in this shell script - set infra/main.tfvars.json
{
"location": "${AZURE_LOCATION}",
"environment_name": "${AZURE_ENV_NAME}",
"resource_prefix": "{your-resource-prefix}",
"purge_protection_enabled": false,
"secretstore_admins": [
"{object-id-of-additional-keyvault-admin}"
]
}
{your-resource-prefix}
is the prefix all resources created get e.g.tfaca
{object-id-of-additional-keyvault-admin}
is the AAD object ID of additional users or service principals needing adminstration access to Key Vault created
- bring up environment with
azd up