You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Pull Request
## Description
Support for multiple input files that get merged together.
Docs updates for new version of complete-multi-region Terraform module.
Associated PR for starter module:
Azure/alz-terraform-accelerator#175
## License
By submitting this pull request, I confirm that my contribution is made
under the terms of the projects associated license.
-replaceFiles # This will replace the files in the output folder with the files in the bootstrap and starter modules, so any updates are taken into account
203
210
204
211
```
205
212
213
+
>NOTE: The `config-hub-and-spoke-vnet-multi-region.yaml` file is an example. You can use any of the other configuration files.
214
+
206
215
### Terraform GitHub
207
216
208
217
Run this from the VSCode terminal for the ALZ-PowerShell-Module repository:
-replaceFiles # This will replace the files in the output folder with the files in the bootstrap and starter modules, so any updates are taken into account
227
236
228
237
```
229
238
239
+
>NOTE: The `config-hub-and-spoke-vnet-multi-region.yaml` file is an example. You can use any of the other configuration files.
240
+
230
241
### Terraform Local
231
242
232
243
Run this from the VSCode terminal for the ALZ-PowerShell-Module repository:
-replaceFiles # This will replace the files in the output folder with the files in the bootstrap and starter modules, so any updates are taken into account
251
262
252
263
```
264
+
265
+
>NOTE: The `config-hub-and-spoke-vnet-multi-region.yaml` file is an example. You can use any of the other configuration files.
1. In your PowerShell Core (pwsh) terminal run the module:
154
154
155
+
>NOTE: The following examples include 2 input files. This is the recommended approach for the `complete_multi_region` starter module. However, all inputs can be combined into a single file if desired and other starter modules only require a single input file.
1. In your PowerShell Core (pwsh) terminal run the module:
141
141
142
+
>NOTE: The following examples include 2 input files. This is the recommended approach for the `complete_multi_region` starter module. However, all inputs can be combined into a single file if desired and other starter modules only require a single input file.
1. In your PowerShell Core (pwsh) terminal run the module:
130
130
131
+
>NOTE: The following examples include 2 input files. This is the recommended approach for the `complete_multi_region` starter module. However, all inputs can be combined into a single file if desired and other starter modules only require a single input file.
Copy file name to clipboardExpand all lines: docs/wiki/[User-Guide]-Quick-Start-Phase-3.md
+14-7
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,10 @@ Follow the steps below to deploy the landing zone locally. If you want to hook i
37
37
38
38
#### 3.1.3.1 Bicep
39
39
40
+
The Bicep option outputs a `deploy-local.ps1` file that you can use to deploy the ALZ.
41
+
42
+
>NOTE: If you set the `grant_permissions_to_current_user` input to `false` in the bootstrap, you will need to set permissions on your management group and subscriptions before the commands will succeed.
43
+
40
44
1. Ensure you have the latest versions of the [AZ PowerShell Module](https://learn.microsoft.com/en-us/powershell/azure/install-azure-powershell) and [Bicep](https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/install) installed.
41
45
1. Open a new PowerShell Core (pwsh) terminal or use the one you already have open.
42
46
1. Navigate to the directory shown in the `module_output_directory_path` output from the bootstrap.
@@ -49,13 +53,16 @@ Follow the steps below to deploy the landing zone locally. If you want to hook i
49
53
50
54
#### 3.1.3.2 Terraform
51
55
56
+
The Terraform option outputs a `deploy-local.ps1` file that you can use to deploy the ALZ.
57
+
58
+
>NOTE: If you set the `grant_permissions_to_current_user` input to `false` in the bootstrap, you will need to set permissions on your management group, subscriptions and storage account before the commands will succeed.
59
+
52
60
1. Open a new PowerShell Core (pwsh) terminal or use the one you already have open.
53
61
1. Navigate to the directory shown in the `module_output_directory_path` output from the bootstrap.
54
-
1. If you choose to deploy the bootstrap resources in Azure, then you will need to navigate to the Azure Portal and find you storage account.
55
-
1. Make note of the `Resource Group Name`, `Storage account name`and `Container Name` from the storage account.
56
-
1. If you did not choose to deploy the bootstrap resources in Azure, type `terraform init` and hit enter.
57
-
1. If you choose to deploy the bootstrap resources in Azure, type `terraform init -backend-config="resource_group_name=<Resource Group Name>" -backend-config="storage_account_name=<Storage account name>" -backend-config="container_name=<Container Name>" -backend-config="key=terraform.tfstate" -backend-config="use_azuread_auth=true"` , replacing the items in angle brackets and hit enter.
58
-
1. Type `terraform plan -out=tfplan` and hit enter.
59
-
1. Review the plan. Use `terraform show tfplan` to see the plan details.
60
-
1. If you are happy with the plan, then type `terraform apply tfplan` and hit enter.
62
+
1. (Optional) Ensure you are still logged in to Azure using `az login --tenant 00000000-0000-0000-0000-000000000000`.
63
+
1. (Optional) Connect to your target subscription using `az account set --subscription 00000000-0000-0000-0000-000000000000`.
64
+
1. (Optional) Examine the `./scripts/deploy-local.ps1` to understand what it is doing.
65
+
1. Run `./scripts/deploy-local.ps1`.
66
+
1. A plan will run and then you'll be prompted to check it and run the deploy.
67
+
1. Type `yes` and hit enter to run the deploy.
61
68
1. The ALZ will now be deployed, this may take some time.
0 commit comments