added docs
This commit is contained in:
Родитель
4f353bdb9a
Коммит
dfa66d3c8b
|
@ -11,6 +11,16 @@ To start the lab, clone the repo that contains the lab content.
|
|||
- For the repository URL enter: https://github.com/Azure/Ignite2019_IaC_pre-day_docs and press **Enter**
|
||||
- Select a location for the repo, and open the folder when prompted by VS Code
|
||||
|
||||
## Import WhatIf Module
|
||||
|
||||
For this lab there will be a ***preview*** of the "WhatIf" feature for ARM Templates. Before running any commands import the preview modules for PowerShell.
|
||||
|
||||
- Open a PowerShell command window
|
||||
- Change the current directory to the directory used for cloning the lab repo, if you used the default this will be C:\Users\demouser\Ignite2019_IaC_pre-day_docs\ARM Template>
|
||||
- Run the script to import the preview modules: import.ps1
|
||||
|
||||
> **NOTE:** If you close the PowerShell window you will need to re-run these commands before using the WhatIf feature.
|
||||
|
||||
## Deploy an Empty Template
|
||||
|
||||
Before getting started in the lab, deploy the empty template to get familiar with the command line tools available for Azure. Open a PowerShell command window to run all of the commands provided for the labs.
|
||||
|
@ -33,7 +43,7 @@ az login
|
|||
|
||||
### Deploy the Template
|
||||
|
||||
A template will typically deploy a set of resources to a resource group. An empty resource group is available for this lab, the name of the resource group will use part of your userId so you will need to update the commands below to use the correct name for your user.
|
||||
A template will typically deploy a set of resources to a resource group. An empty resource group is available for this lab, the name of the resource group will use part of your userId so you will need to update the commands below to use the correct name for your user instead of "000000".
|
||||
|
||||
> **NOTE:** For each step of the lab run the commands from the directory that contains the lab files, for example **C:\Users\demouser\Ignite2019_IaC_pre-day_docs\ARM Template\01 - Basics**
|
||||
|
||||
|
|
|
@ -249,6 +249,24 @@ After editing the template you should have the folloing copy loop in the propert
|
|||
]
|
||||
```
|
||||
|
||||
## Examine Changes Before Deployment
|
||||
|
||||
> *At this conference ARM will introduce the private preview of a new feature for ARM Templates currently named "WhatIf". This feature will show the changes that will be applied when a template is deployed so you can examine those changes before deployment begins. This section of the lab will give you a preview of the feature.*
|
||||
|
||||
Before deploying the template, run the following command to preview the changes that will be applied when the template is deployed. Note, this command is currently only available in PowerShell. If you have not use PowerShell for the earlier sections of the lab, you will need to log in first.
|
||||
|
||||
```PowerShell
|
||||
Connect-AzAccount
|
||||
```
|
||||
|
||||
After login, run the following command:
|
||||
|
||||
```PowerShell
|
||||
New-AzResourceGroupDeploymentWhatif -ResourceGroupName IoC-02-000000 -TemplateFile azuredeploy.json
|
||||
```
|
||||
|
||||
When the command finishes you will see the output of the command showing that a Network Security Group will be added as a result of this deployment.
|
||||
|
||||
## Deploy the Template with the Copy Loop
|
||||
|
||||
Before deploying the template, use VS Code to inspect your template for errors. Format the code if necessary using SHIFT+ALT+F in VS Code. Then in your command window, verify that your current directory is set to the directory used for this lab before running the following commands.
|
||||
|
|
Загрузка…
Ссылка в новой задаче