-
Notifications
You must be signed in to change notification settings - Fork 3
Deployment Commands
rjnmylife edited this page Nov 11, 2021
·
2 revisions
# Update the latest branch or desired branch
lz_branch="2111.0"
git clone --branch ${lz_branch} https://github.com/Azure/caf-terraform-landingzones.git /tf/caf/landingzones
# Or refresh an existing clone to get latest CAF updates
cd /tf/caf/landingzones
git fetch origin
git checkout ${lz_branch}
git pull
git status
cd /tf/caf
git pull
caf_env="contoso-sandpit"
TF_VAR_tfstate_subscription_id=""
target_subscription=""
Set-up the launchpads for level0 to level4
rover \
-lz /tf/caf/landingzones/caf_launchpad \
-tfstate_subscription_id ${TF_VAR_tfstate_subscription_id} \
-target_subscription ${target_subscription} \
-var-folder /tf/caf/contoso/level0/launchpad \
-launchpad \
-env ${caf_env} \
-level level0 \
-a plan
rover \
-lz /tf/caf/landingzones/caf_solution \
-tfstate_subscription_id ${TF_VAR_tfstate_subscription_id} \
-target_subscription ${target_subscription} \
-var-folder /tf/caf/contoso/level1/shared_services \
-tfstate caf_foundations_sharedservices.tfstate \
-env ${caf_env} \
-level level1 \
-a plan
## Elevate Global Admin and Subscription Owner to User Access Administrator:
az rest --method post --url "/providers/Microsoft.Authorization/elevateAccess?api-version=2016-07-01"
# Check Access:
az role assignment list --role "User Access Administrator" --scope "/"
rover \
-lz /tf/caf/landingzones/caf_solution/add-ons/caf_eslz \
-tfstate_subscription_id ${TF_VAR_tfstate_subscription_id} \
-target_subscription ${target_subscription} \
-var-folder /tf/caf/contoso/level1/eslz_v1 \
-tfstate caf_foundations_enterprise_scale.tfstate \
-env ${caf_env} \
-level level1 \
-parallelism 50 \
-a plan
#vWAN infrastructure creation with 2 vHUBs
rover \
-lz /tf/caf/landingzones/caf_solution \
-tfstate_subscription_id ${TF_VAR_tfstate_subscription_id} \
-target_subscription ${target_subscription} \
-var-folder /tf/caf/gcc/level2/networking/vwan \
-tfstate caf_networking_vwan.tfstate \
-env ${environment} \
-level level2 \
-a [plan|apply|destroy]