Skip to content

Commit 390b7e3

Browse files
committed
fixes
1 parent aacc3ec commit 390b7e3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

articles/virtual-network/create-virtual-machine-accelerated-networking.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ If you choose to install and use PowerShell locally, this article requires the A
4747

4848
Before creating a virtual network, you have to create a resource group for the virtual network, and all other resources created in this article. Create a resource group with [New-AzResourceGroup](/powershell/module/az.resources/new-azresourcegroup). The following example creates a resource group named **test-rg** in the **eastus** location.
4949

50-
```azurepowershell-interactive
50+
```azurepowershell
5151
$resourceGroup = @{
5252
Name = "test-rg"
5353
Location = "EastUS2"
@@ -57,7 +57,7 @@ New-AzResourceGroup @resourceGroup
5757

5858
Create a virtual network with [New-AzVirtualNetwork](/powershell/module/az.network/new-azvirtualnetwork). The following example creates a virtual network named **vnet-1** with the address prefix **10.0.0.0/16**.
5959

60-
```azurepowershell-interactive
60+
```azurepowershell
6161
$vnet1 = @{
6262
ResourceGroupName = "test-rg"
6363
Location = "EastUS2"
@@ -69,7 +69,7 @@ $virtualNetwork1 = New-AzVirtualNetwork @vnet1
6969

7070
Create a subnet configuration with [Add-AzVirtualNetworkSubnetConfig](/powershell/module/az.network/add-azvirtualnetworksubnetconfig). The following example creates a subnet configuration with a **10.0.0.0/24** address prefix:
7171

72-
```azurepowershell-interactive
72+
```azurepowershell
7373
$subConfig = @{
7474
Name = "subnet-1"
7575
AddressPrefix = "10.0.0.0/24"
@@ -80,7 +80,7 @@ $subnetConfig1 = Add-AzVirtualNetworkSubnetConfig @subConfig
8080

8181
Create a subnet configuration for Azure Bastion with [Add-AzVirtualNetworkSubnetConfig](/powershell/module/az.network/add-azvirtualnetworksubnetconfig). The following example creates a subnet configuration with a **10.0.1.0/24** address prefix:
8282

83-
```azurepowershell-interactive
83+
```azurepowershell
8484
$subBConfig = @{
8585
Name = "AzureBastionSubnet"
8686
AddressPrefix = "10.0.1.0/24"
@@ -91,15 +91,15 @@ $subnetConfig2 = Add-AzVirtualNetworkSubnetConfig @subBConfig
9191

9292
Write the subnet configuration to the virtual network with [Set-AzVirtualNetwork](/powershell/module/az.network/Set-azVirtualNetwork), which creates the subnet:
9393

94-
```azurepowershell-interactive
94+
```azurepowershell
9595
$virtualNetwork1 | Set-AzVirtualNetwork
9696
```
9797

9898
### Create Azure Bastion
9999

100100
Create a public IP address for the Azure Bastion host with [New-AzPublicIpAddress](/powershell/module/az.network/new-azpublicipaddress). The following example creates a public IP address named *public-ip-bastion* in the *vnet-1* virtual network.
101101

102-
```azurepowershell-interactive
102+
```azurepowershell
103103
$publicIpParams = @{
104104
ResourceGroupName = "test-rg"
105105
Name = "public-ip-bastion"
@@ -112,7 +112,7 @@ New-AzPublicIpAddress @publicIpParams
112112

113113
Create an Azure Bastion host with [New-AzBastion](/powershell/module/az.network/new-azbastion). The following example creates an Azure Bastion host named *bastion* in the *AzureBastionSubnet* subnet of the *vnet-1* virtual network. Azure Bastion is used to securely connect Azure virtual machines without exposing them to the public internet.
114114

115-
```azurepowershell-interactive
115+
```azurepowershell
116116
$bastionParams = @{
117117
ResourceGroupName = "test-rg"
118118
Name = "bastion"

0 commit comments

Comments
 (0)