Skip to content

Commit 458412e

Browse files
authored
Merge pull request #115808 from damendo/patch-2
Clearer guidance on deploying template
2 parents 92a6bf0 + 3388018 commit 458412e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Below are two examples of complete templates to set up NSG Flow Logs.
107107
```
108108

109109
> [!NOTE]
110-
> * The name of resource has the format "Parent Resource>/Child resource". Here, the parent resource is the regional Network Watcher instance (Format: NetworkWatcher_<RegionName>. Example: NetworkWatcher_centraluseuap)
110+
> * The name of resource has the format "Parent Resource_Child resource". Here, the parent resource is the regional Network Watcher instance (Format: NetworkWatcher_RegionName. Example: NetworkWatcher_centraluseuap)
111111
> * targetResourceId is the resource ID of the target NSG
112112
> * storageId is the resource ID of the destination storage account
113113
@@ -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)