Skip to content

Commit 5e022bf

Browse files
authored
Merge pull request #109544 from mumian/0330-add-debug
0330 add debug
2 parents 926e434 + 624ac00 commit 5e022bf

10 files changed

+32
-2
lines changed

articles/azure-resource-manager/templates/template-tutorial-add-functions.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ az deployment group create \
6767

6868
---
6969

70+
> [!NOTE]
71+
> If the deployment failed, use the **debug** switch with the deployment command to show the debug logs. You can also use the **verbose** switch to show the full debug logs.
72+
7073
## Verify deployment
7174

7275
You can verify the deployment by exploring the resource group from the Azure portal.

articles/azure-resource-manager/templates/template-tutorial-add-outputs.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ In the output for the deployment command, you'll see an object similar to:
8585
}
8686
```
8787

88+
> [!NOTE]
89+
> If the deployment failed, use the **debug** switch with the deployment command to show the debug logs. You can also use the **verbose** switch to show the full debug logs.
90+
8891
## Review your work
8992

9093
You've done a lot in the last six tutorials. Let's take a moment to review what you have done. You created a template with parameters that are easy to provide. The template is reusable in different environments because it allows for customization and dynamically creates needed values. It also returns information about the storage account that you could use in your script.

articles/azure-resource-manager/templates/template-tutorial-add-parameters.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ az deployment group create \
107107

108108
---
109109

110+
> [!NOTE]
111+
> If the deployment failed, use the **debug** switch with the deployment command to show the debug logs. You can also use the **verbose** switch to show the full debug logs.
112+
110113
To see the flexibility of your template, let's deploy again. This time set the SKU parameter to **Standard_GRS**. You can either pass in a new name to create a different storage account, or use the same name to update your existing storage account. Both options work.
111114

112115
# [PowerShell](#tab/azure-powershell)

articles/azure-resource-manager/templates/template-tutorial-add-resource.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ You must have Visual Studio Code with the Resource Manager Tools extension, and
2121

2222
To add a storage account definition to the existing template, look at the highlighted JSON in the following example. Instead of trying to copy sections of the template, copy the whole file and replace your template with its contents.
2323

24-
Replace **{provide-unique-name}** with a unique storage account name.
24+
Replace **{provide-unique-name}** (including the curly brackets) with a unique storage account name.
2525

2626
> [!IMPORTANT]
2727
> The storage account name must be unique across Azure. The name must have only lowercase letters or numbers. It can be no longer than 24 characters. You might try a naming pattern like using **store1** as a prefix and then adding your initials and today's date. For example, the name you use could look like **store1abc09092019**.
@@ -78,6 +78,9 @@ az deployment group create \
7878

7979
---
8080

81+
> [!NOTE]
82+
> If the deployment failed, use the **debug** switch with the deployment command to show the debug logs. You can also use the **verbose** switch to show the full debug logs.
83+
8184
Two possible deployment failures that you might encounter:
8285

8386
- Error: Code=AccountNameInvalid; Message={provide-unique-name} is not a valid storage account name. Storage account name must be between 3 and

articles/azure-resource-manager/templates/template-tutorial-add-tags.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ az deployment group create \
6565

6666
---
6767

68+
> [!NOTE]
69+
> If the deployment failed, use the **debug** switch with the deployment command to show the debug logs. You can also use the **verbose** switch to show the full debug logs.
70+
6871
## Verify deployment
6972

7073
You can verify the deployment by exploring the resource group from the Azure portal.

articles/azure-resource-manager/templates/template-tutorial-add-variables.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ az deployment group create \
7676

7777
---
7878

79+
> [!NOTE]
80+
> If the deployment failed, use the **debug** switch with the deployment command to show the debug logs. You can also use the **verbose** switch to show the full debug logs.
81+
7982
## Verify deployment
8083

8184
You can verify the deployment by exploring the resource group from the Azure portal.

articles/azure-resource-manager/templates/template-tutorial-create-first-template.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ $templateFile = "{provide-the-path-to-the-template-file}"
123123
New-AzResourceGroupDeployment `
124124
-Name blanktemplate `
125125
-ResourceGroupName myResourceGroup `
126-
-TemplateFile $templateFile
126+
-TemplateFile $templateFile
127127
```
128128

129129
# [Azure CLI](#tab/azure-cli)
@@ -152,6 +152,9 @@ The deployment command returns results. Look for `ProvisioningState` to see whet
152152

153153
---
154154

155+
> [!NOTE]
156+
> If the deployment failed, use the **debug** switch with the deployment command to show the debug logs. You can also use the **verbose** switch to show the full debug logs.
157+
155158
## Verify deployment
156159

157160
You can verify the deployment by exploring the resource group from the Azure portal.

articles/azure-resource-manager/templates/template-tutorial-export-template.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ az deployment group create \
104104

105105
---
106106

107+
> [!NOTE]
108+
> If the deployment failed, use the **debug** switch with the deployment command to show the debug logs. You can also use the **verbose** switch to show the full debug logs.
109+
107110
## Verify deployment
108111

109112
You can verify the deployment by exploring the resource group from the Azure portal.

articles/azure-resource-manager/templates/template-tutorial-quickstart-template.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ az deployment group create \
8484

8585
---
8686

87+
> [!NOTE]
88+
> If the deployment failed, use the **debug** switch with the deployment command to show the debug logs. You can also use the **verbose** switch to show the full debug logs.
89+
8790
## Clean up resources
8891

8992
If you're moving on to the next tutorial, you don't need to delete the resource group.

articles/azure-resource-manager/templates/template-tutorial-use-parameter-file.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ az deployment group create \
115115

116116
---
117117

118+
> [!NOTE]
119+
> If the deployment failed, use the **debug** switch with the deployment command to show the debug logs. You can also use the **verbose** switch to show the full debug logs.
120+
118121
## Verify deployment
119122

120123
You can verify the deployment by exploring the resource groups from the Azure portal.

0 commit comments

Comments
 (0)