@@ -198,71 +198,71 @@ Results:
198198}
199199```
200200
201- 1 . Create an Azure Bastion host with [ az network bastion create ] ( /cli/azure/network/bastion ) . Azure Bastion is used to securely connect Azure virtual machines without exposing them to the public internet.
201+ ## Create Azure Bastion Host
202202
203- ``` bash
204- export RESOURCE_GROUP_NAME=" test-rg$RANDOM_SUFFIX "
205- export BASTION_NAME=" bastion$RANDOM_SUFFIX "
206- export VNET_NAME=" vnet-1$RANDOM_SUFFIX "
207- export PUBLIC_IP_NAME=" public-ip-bastion$RANDOM_SUFFIX "
208- export REGION=" eastus2"
209-
210- az network bastion create \
211- --resource-group $RESOURCE_GROUP_NAME \
212- --name $BASTION_NAME \
213- --vnet-name $VNET_NAME \
214- --public-ip-address $PUBLIC_IP_NAME \
215- --location $REGION
216- ```
203+ Create an Azure Bastion host with [ az network bastion create] ( /cli/azure/network/bastion ) . Azure Bastion is used to securely connect Azure virtual machines without exposing them to the public internet.
217204
218- Results:
219-
220- < ! -- expected_similarity=0.3 -->
205+ ``` bash
206+ export RESOURCE_GROUP_NAME=" test-rg$RANDOM_SUFFIX "
207+ export BASTION_NAME=" bastion$RANDOM_SUFFIX "
208+ export VNET_NAME=" vnet-1$RANDOM_SUFFIX "
209+ export PUBLIC_IP_NAME=" public-ip-bastion$RANDOM_SUFFIX "
210+ export REGION=" eastus2"
221211
222- ` ` ` json
212+ az network bastion create \
213+ --resource-group $RESOURCE_GROUP_NAME \
214+ --name $BASTION_NAME \
215+ --vnet-name $VNET_NAME \
216+ --public-ip-address $PUBLIC_IP_NAME \
217+ --location $REGION
218+ ```
219+
220+ Results:
221+
222+ <!-- expected_similarity=0.3 -->
223+
224+ ``` json
225+ {
226+ "disableCopyPaste" : false ,
227+ "dnsName" : " bst-cc1d5c1d-9496-44fa-a8b3-3b2130efa306.bastion.azure.com" ,
228+ "enableFileCopy" : false ,
229+ "enableIpConnect" : false ,
230+ "enableKerberos" : false ,
231+ "enableSessionRecording" : false ,
232+ "enableShareableLink" : false ,
233+ "enableTunneling" : false ,
234+ "etag" : " W/\" 229bd068-160b-4935-b23d-eddce4bb31ed\" " ,
235+ "id" : " /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test-rg69e367/providers/Microsoft.Network/bastionHosts/bastion69e367" ,
236+ "ipConfigurations" : [
223237 {
224- " disableCopyPaste" : false,
225- " dnsName" : " bst-cc1d5c1d-9496-44fa-a8b3-3b2130efa306.bastion.azure.com" ,
226- " enableFileCopy" : false,
227- " enableIpConnect" : false,
228- " enableKerberos" : false,
229- " enableSessionRecording" : false,
230- " enableShareableLink" : false,
231- " enableTunneling" : false,
232238 "etag" : " W/\" 229bd068-160b-4935-b23d-eddce4bb31ed\" " ,
233- " id" : " /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test-rg69e367/providers/Microsoft.Network/bastionHosts/bastion69e367" ,
234- " ipConfigurations" : [
235- {
236- " etag" : " W/\" 229bd068-160b-4935-b23d-eddce4bb31ed\" " ,
237- " id" : " /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test-rg69e367/providers/Microsoft.Network/bastionHosts/bastion69e367/bastionHostIpConfigurations/bastion_ip_config" ,
238- " name" : " bastion_ip_config" ,
239- " privateIPAllocationMethod" : " Dynamic" ,
240- " provisioningState" : " Succeeded" ,
241- " publicIPAddress" : {
242- " id" : " /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test-rg69e367/providers/Microsoft.Network/publicIPAddresses/public-ip-bastion69e367" ,
243- " resourceGroup" : " test-rg69e367"
244- },
245- " resourceGroup" : " test-rg69e367" ,
246- " subnet" : {
247- " id" : " /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test-rg69e367/providers/Microsoft.Network/virtualNetworks/vnet-169e367/subnets/AzureBastionSubnet" ,
248- " resourceGroup" : " test-rg69e367"
249- },
250- " type" : " Microsoft.Network/bastionHosts/bastionHostIpConfigurations"
251- }
252- ],
253- " location" : " eastus2" ,
254- " name" : " bastion69e367" ,
239+ "id" : " /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test-rg69e367/providers/Microsoft.Network/bastionHosts/bastion69e367/bastionHostIpConfigurations/bastion_ip_config" ,
240+ "name" : " bastion_ip_config" ,
241+ "privateIPAllocationMethod" : " Dynamic" ,
255242 "provisioningState" : " Succeeded" ,
243+ "publicIPAddress" : {
244+ "id" : " /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test-rg69e367/providers/Microsoft.Network/publicIPAddresses/public-ip-bastion69e367" ,
245+ "resourceGroup" : " test-rg69e367"
246+ },
256247 "resourceGroup" : " test-rg69e367" ,
257- " scaleUnits " : 2,
258- " sku " : {
259- " name " : " Standard "
248+ "subnet " : {
249+ "id " : " /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test-rg69e367/providers/Microsoft.Network/virtualNetworks/vnet-169e367/subnets/AzureBastionSubnet " ,
250+ "resourceGroup " : " test-rg69e367 "
260251 },
261- " type" : " Microsoft.Network/bastionHosts"
252+ "type" : " Microsoft.Network/bastionHosts/bastionHostIpConfigurations "
262253 }
263- ` ` `
264-
265- ---
254+ ],
255+ "location" : " eastus2" ,
256+ "name" : " bastion69e367" ,
257+ "provisioningState" : " Succeeded" ,
258+ "resourceGroup" : " test-rg69e367" ,
259+ "scaleUnits" : 2 ,
260+ "sku" : {
261+ "name" : " Standard"
262+ },
263+ "type" : " Microsoft.Network/bastionHosts"
264+ }
265+ ```
266266
267267## Create a network interface with Accelerated Networking
268268
0 commit comments