Skip to content

Commit a9ef7ee

Browse files
authored
Clearer guidance on deploying template
1 parent 92a6bf0 commit a9ef7ee

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

articles/network-watcher/network-watcher-nsg-flow-logging-azure-resource-manager.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,15 @@ You can save any of the above example templates locally as `azuredeploy.json`. U
157157

158158
To deploy the template, run the following command in PowerShell.
159159
```azurepowershell
160+
$context = Get-AzSubscription -SubscriptionId 56acfbd6-vc72-43e9-831f-bcdb6f2c5505
161+
Set-AzContext $context
160162
New-AzResourceGroupDeployment -Name EnableFlowLog -ResourceGroupName NetworkWatcherRG `
161163
-TemplateFile "C:\MyTemplates\azuredeploy.json"
162164
```
163165

166+
> [!NOTE]
167+
> The above commands are deploying a resource to the NetworkWatcherRG resource group and not the resource group containing the NSG
168+
164169

165170
## Verifying your deployment
166171

0 commit comments

Comments
 (0)