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
@@ -51,7 +51,7 @@ Before you can create an Azure Virtual Network Manager instance, you have to cre
51
51
52
52
```azurepowershell
53
53
# Create a resource group
54
-
$location = "West US 2"
54
+
$location = "westus2"
55
55
$rg = @{
56
56
Name = 'resource-group'
57
57
Location = $location
@@ -65,7 +65,7 @@ New-AzResourceGroup @rg
65
65
Define the scope and access type for the Azure Virtual Network Manager instance by using [New-AzNetworkManagerScope](/powershell/module/az.network/new-aznetworkmanagerscope). This example defines a scope with a single subscription and sets the access type to *Connectivity*. Replace `<subscription_id>` with the ID of the subscription that you want to manage through Azure Virtual Network Manager.
Create a Virtual Network Manager instance by using [New-AzNetworkManager](/powershell/module/az.network/new-aznetworkmanager). This example creates an instance named *network-manager* in the *West US 2* region:
82
+
Create a Virtual Network Manager instance by using [New-AzNetworkManager](/powershell/module/az.network/new-aznetworkmanager). This example creates an instance named *network-manager* in the *(US) West US 2* region:
Create three virtual networks by using [New-AzVirtualNetwork](/powershell/module/az.network/new-azvirtualnetwork). This example creates virtual networks named *vnet-spoke-001*, *vnet-spoke-002*, and *vnet-hub-001* in the *West US 2* region. If you already have virtual networks that you want create a mesh network with, you can skip to the next section.
97
+
Create three virtual networks by using [New-AzVirtualNetwork](/powershell/module/az.network/new-azvirtualnetwork). This example creates virtual networks named *vnet-spoke-001*, *vnet-spoke-002*, and *vnet-hub-001* in the *(US) West US 2* region. If you already have virtual networks that you want create a mesh network with, you can skip to the next section.
Virtual Network Manager applies configurations to groups of virtual networks by placing them in network groups. Create a network group by using [New-AzNetworkManagerGroup](/powershell/module/az.network/new-aznetworkmanagergroup). This example creates a network group named *network-group* in the West US 2 region:
158
+
Virtual Network Manager applies configurations to groups of virtual networks by placing them in network groups. Create a network group by using [New-AzNetworkManagerGroup](/powershell/module/az.network/new-aznetworkmanagergroup). This example creates a network group named *network-group* in the *(US) West US 2* region:
159
159
160
160
```azurepowershell
161
161
$ng = @{
162
162
Name = 'network-group'
163
-
ResourceGroupName = $rg.ResourceGroupName
163
+
ResourceGroupName = $rg.Name
164
164
NetworkManagerName = $networkManager.Name
165
165
}
166
166
$ng = New-AzNetworkManagerGroup @ng
@@ -183,7 +183,7 @@ Static members must have a unique name that's scoped to the network group. We re
183
183
```azurepowershell
184
184
$sm_vnetspoke001 = @{
185
185
Name = Get-UniqueString $vnet_spoke_001.Id
186
-
ResourceGroupName = $rg.ResourceGroupName
186
+
ResourceGroupName = $rg.Name
187
187
NetworkGroupName = $ng.Name
188
188
NetworkManagerName = $networkManager.Name
189
189
ResourceId = $vnet_spoke_001.Id
@@ -194,7 +194,7 @@ $sm_vnetspoke001 = @{
194
194
```azurepowershell
195
195
$sm_vnetspoke002 = @{
196
196
Name = Get-UniqueString $vnet_spoke_002.Id
197
-
ResourceGroupName = $rg.ResourceGroupName
197
+
ResourceGroupName = $rg.Name
198
198
NetworkGroupName = $ng.Name
199
199
NetworkManagerName = $networkManager.Name
200
200
ResourceId = $vnet_spoke_002.Id
@@ -227,7 +227,7 @@ In this task, you create a connectivity configuration with the network group *ne
227
227
```azurepowershell
228
228
$config = @{
229
229
Name = 'connectivity-configuration'
230
-
ResourceGroupName = $rg.ResourceGroupName
230
+
ResourceGroupName = $rg.Name
231
231
NetworkManagerName = $networkManager.Name
232
232
ConnectivityTopology = 'Mesh'
233
233
AppliesToGroup = $configGroup
@@ -247,7 +247,7 @@ $target.Add("westus2")
247
247
248
248
$deployment = @{
249
249
Name = $networkManager.Name
250
-
ResourceGroupName = $rg.ResourceGroupName
250
+
ResourceGroupName = $rg.Name
251
251
ConfigurationId = $configIds
252
252
TargetLocation = $target
253
253
CommitType = 'Connectivity'
@@ -262,7 +262,7 @@ If you no longer need the Azure Virtual Network Manager instance and it's associ
262
262
1. Delete the resource group using [Remove-AzResourceGroup](/powershell/module/az.resources/remove-azresourcegroup):
0 commit comments