Skip to content

Commit f7efa91

Browse files
committed
Refreshed, reflowed, converted to link refs
1 parent 3cbc989 commit f7efa91

File tree

1 file changed

+31
-14
lines changed

1 file changed

+31
-14
lines changed

docs-ref-conceptual/Latest-version/azure-cli-vm-tutorial-1.md

Lines changed: 31 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
2-
title: Create virtual machine (VM) on a virtual network (VNet) prerequisites – Azure CLI | Microsoft Docs
2+
title: Create virtual machine (VM) on a virtual network (VNet) prerequisites
33
description: Prerequisites for creating a virtual machines (VM) on a virtual network (VNet) with the Azure CLI.
4-
ms.date: 09/19/2024
54
ms.topic: tutorial
65
ms.service: azure-cli
76
ms.custom: devx-track-azurecli
@@ -10,24 +9,31 @@ keywords: azure cli create vm, virtual machine in azure cli, shell variables
109

1110
# Overview and Prerequisites
1211

13-
In this tutorial, you learn how to create a virtual network (VNet) and deploy a virtual machine (VM) to the VNet with the Azure CLI. This tutorial
14-
also covers Azure CLI specific concepts such as shell variables and output queries.
12+
In this tutorial, you learn how to create a virtual network (VNet) and deploy a virtual machine (VM)
13+
to the VNet with the Azure CLI. This tutorial also covers Azure CLI specific concepts such as shell
14+
variables and output queries.
1515

16-
This tutorial can be completed with the interactive experience offered through Azure Cloud Shell, or you may [install the CLI](install-azure-cli.md)
17-
locally.
16+
This tutorial can be completed with the interactive experience offered through Azure Cloud Shell, or
17+
you may [install the CLI][04] locally.
1818

19-
Use __ctrl-shift-v__ (__cmd-shift-v__ on macOS) to paste tutorial text into Azure Cloud Shell.
19+
Use <kbd>ctrl</kbd>+<kbd>shift</kbd>+<kbd>v</kbd> (<kbd>cmd</kbd>+<kbd>shift</kbd>+<kbd>v</kbd> on
20+
macOS) to paste tutorial text into Azure Cloud Shell.
2021

2122
[!INCLUDE [include](~/articles/reusable-content/azure-cli/azure-cli-prepare-your-environment.md)]
2223

2324
## Shell variables
2425

25-
Shell variables store values for future use and can be used to pass values to command parameters. Shell variables allow for the reuse of commands, both on their own and in scripts. This tutorial uses shell variables for easier customization of command parameters. To use your own parameter values instead of using the provided values, change the values assigned to the shell variables. For more information about shell variables, see [Use shell variables](./azure-cli-variables.md#use-shell-variables).
26+
Shell variables store values for future use and can be used to pass values to command parameters.
27+
Shell variables allow for the reuse of commands, both on their own and in scripts. This tutorial
28+
uses shell variables for easier customization of command parameters. To use your own parameter
29+
values instead of using the provided values, change the values assigned to the shell variables. For
30+
more information about shell variables, see [Use shell variables][01].
2631

2732
## Create a resource group
2833

29-
In Azure, all resources are allocated in a resource management group. Resource groups provide logical groupings of resources
30-
that make them easier to work with as a collection. Use the [az group create](/cli/azure/group#az_group_create) command to create a resource group named `VMTutorialResources`.
34+
In Azure, all resources are allocated in a resource management group. Resource groups provide
35+
logical groupings of resources that make them easier to work with as a collection. Use the
36+
[az group create][03] command to create a resource group named `VMTutorialResources`.
3137

3238
# [Bash](#tab/bash)
3339

@@ -49,22 +55,33 @@ $location = "eastus"
4955
az group create --name $resourceGroup --location $location
5056
```
5157

52-
***
58+
---
5359

5460
## Create a resource group in interactive mode
5561

56-
Interactive mode offers new AI functionalities that allow the user to run and search for commands more efficiently. To get a better understanding of required parameters and steps related to `az group create`, try out Azure CLI in interactive mode by running the `az interactive` command. Please note that all commands throughout this tutorial can be run in interactive mode.
62+
Interactive mode offers new AI functionalities that allow the user to run and search for commands
63+
more efficiently. To get a better understanding of required parameters and steps related to
64+
`az group create`, try out Azure CLI in interactive mode by running the `az interactive` command.
65+
Please note that all commands throughout this tutorial can be run in interactive mode.
5766

5867
```azurecli
5968
# install interactive mode
6069
az interactive
6170
```
6271

63-
In the following example, the command recommendation feature in interactive mode lists and defines all of the required parameters needed for `az group create`:
72+
In the following example, the command recommendation feature in interactive mode lists and defines
73+
all of the required parameters needed for `az group create`:
6474

6575
```azurecli
6676
# get options for az group create
6777
az>> az group create
6878
```
6979

70-
![Azure Interactive Hint](./media/az-interactive-vm-tutorial-hint.png)
80+
![Azure Interactive Hint][02]
81+
82+
<!-- link references -->
83+
84+
[01]: ./azure-cli-variables.md#use-shell-variables
85+
[02]: ./media/az-interactive-vm-tutorial-hint.png
86+
[03]: /cli/azure/group#az_group_create
87+
[04]: install-azure-cli.md

0 commit comments

Comments
 (0)