0
0
Azurecloud~10 mins

VPN Gateway for hybrid connectivity in Azure - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a virtual network gateway in Azure.

Azure
az network vnet-gateway create --resource-group MyResourceGroup --name MyVpnGateway --vnet MyVNet --subnet GatewaySubnet --public-ip-address [1] --gateway-type Vpn --vpn-type RouteBased --sku VpnGw1
Drag options to blanks, or click blank then click option'
AMyNSG
BMySubnet
CMyVNet
DMyPublicIP
Attempts:
3 left
💡 Hint
Common Mistakes
Using the virtual network name instead of the public IP name.
Using a subnet name where a public IP is required.
2fill in blank
medium

Complete the code to create a local network gateway representing the on-premises network.

Azure
az network local-gateway create --resource-group MyResourceGroup --name MyLocalGateway --gateway-ip-address [1] --local-address-prefixes 10.0.0.0/24
Drag options to blanks, or click blank then click option'
A20.30.40.50
B192.168.1.1
C10.1.0.4
D172.16.0.1
Attempts:
3 left
💡 Hint
Common Mistakes
Using a private IP address instead of the public IP of the on-premises gateway.
3fill in blank
hard

Fix the error in the command to create a VPN connection between Azure and on-premises.

Azure
az network vpn-connection create --resource-group MyResourceGroup --name MyConnection --vnet-gateway1 MyVpnGateway --local-gateway2 [1] --shared-key MySharedKey
Drag options to blanks, or click blank then click option'
AMyLocalGateway
BMyVpnGateway
CMyVNet
DMyPublicIP
Attempts:
3 left
💡 Hint
Common Mistakes
Using the virtual network gateway name instead of the local network gateway name.
4fill in blank
hard

Fill both blanks to configure the VPN connection with the correct routing and protocol.

Azure
az network vpn-connection create --resource-group MyResourceGroup --name MyConnection --vnet-gateway1 MyVpnGateway --local-gateway2 MyLocalGateway --shared-key MySharedKey --[1] [2]
Drag options to blanks, or click blank then click option'
Arouting-weight
Bprotocol
CIKEv2
DBGP
Attempts:
3 left
💡 Hint
Common Mistakes
Using routing-weight instead of protocol for VPN protocol.
Using BGP as protocol value which is a routing protocol, not VPN protocol.
5fill in blank
hard

Fill all three blanks to create a VPN gateway with the correct SKU, gateway type, and VPN type.

Azure
az network vnet-gateway create --resource-group MyResourceGroup --name MyVpnGateway --vnet MyVNet --subnet GatewaySubnet --public-ip-address MyPublicIP --sku [1] --gateway-type [2] --vpn-type [3]
Drag options to blanks, or click blank then click option'
AVpnGw1
BVpn
CRouteBased
DStandard
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Standard' as gateway type instead of 'Vpn'.
Confusing vpn-type with gateway-type.