Skip to content

Commit a9687a7

Browse files
authored
Merge pull request #48783 from ShawnKupfer/WB1622
AB#1016233: Provisioning a Linux virtual machine in Microsoft Azure
2 parents 4a3f756 + 1a5815b commit a9687a7

14 files changed

+50
-50
lines changed

learn-pr/azure/provision-linux-virtual-machine-in-azure/1-introduction.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
### YamlMime:ModuleUnit
22
uid: learn.provision-linux-virtual-machine-in-azure.introduction
33
title: Introduction
4-
metadata:
5-
adobe-target: true
4+
metadata:
5+
adobe-target: true
66
prefetch-feature-rollout: true
77
title: Introduction
88
description: Introduction
9-
ms.date: 10/30/2023
9+
ms.date: 01/17/2025
1010
author: fossygirl
1111
ms.author: carols
1212
ms.topic: unit

learn-pr/azure/provision-linux-virtual-machine-in-azure/2-provision-linux-virtual-machine-using-the-azure-portal.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
### YamlMime:ModuleUnit
22
uid: learn.provision-linux-virtual-machine-in-azure.provision-linux-virtual-machine-using-the-azure-portal
33
title: Provision a Linux virtual machine by using the Azure portal
4-
metadata:
5-
adobe-target: true
4+
metadata:
5+
adobe-target: true
66
prefetch-feature-rollout: true
77
title: Provision a Linux virtual machine by using the Azure portal
88
description: Learn how to provision a Linux virtual machine by using the Azure portal.
9-
ms.date: 10/30/2023
9+
ms.date: 01/17/2025
1010
author: fossygirl
1111
ms.author: carols
1212
ms.topic: unit

learn-pr/azure/provision-linux-virtual-machine-in-azure/3-provision-linux-virtual-machine-using-azure-cli.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
### YamlMime:ModuleUnit
22
uid: learn.provision-linux-virtual-machine-in-azure.provision-linux-virtual-machine-using-azure-cli
33
title: Provision a Linux virtual machine by using Azure CLI
4-
metadata:
5-
adobe-target: true
4+
metadata:
5+
adobe-target: true
66
prefetch-feature-rollout: true
77
title: Provision a Linux virtual machine by using Azure CLI
88
description: Learn how to provision by using Azure CLI.
9-
ms.date: 10/30/2023
9+
ms.date: 01/17/2025
1010
author: fossygirl
1111
ms.author: carols
1212
ms.topic: unit

learn-pr/azure/provision-linux-virtual-machine-in-azure/4-provision-linux-virtual-machine-using-terraform.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
### YamlMime:ModuleUnit
22
uid: learn.provision-linux-virtual-machine-in-azure.provision-linux-virtual-machine-using-terraform
33
title: Provision a Linux virtual machine by using Terraform
4-
metadata:
5-
adobe-target: true
4+
metadata:
5+
adobe-target: true
66
prefetch-feature-rollout: true
77
title: Provision a Linux virtual machine by using Terraform
88
description: Learn how to provision by using Terraform.
9-
ms.date: 10/30/2023
9+
ms.date: 01/17/2025
1010
author: fossygirl
1111
ms.author: carols
1212
ms.topic: unit

learn-pr/azure/provision-linux-virtual-machine-in-azure/5-provision-linux-virtual-machine-using-bicep.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
### YamlMime:ModuleUnit
22
uid: learn.provision-linux-virtual-machine-in-azure.provision-linux-virtual-machine-using-bicep
33
title: Provision a Linux virtual machine by using Bicep
4-
metadata:
5-
adobe-target: true
4+
metadata:
5+
adobe-target: true
66
prefetch-feature-rollout: true
77
title: Provision a Linux virtual machine by using Bicep
88
description: Learn how to provision by using Bicep.
9-
ms.date: 10/30/2023
9+
ms.date: 01/17/2025
1010
author: fossygirl
1111
ms.author: carols
1212
ms.topic: unit

learn-pr/azure/provision-linux-virtual-machine-in-azure/6-knowledge-check.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
### YamlMime:ModuleUnit
22
uid: learn.provision-linux-virtual-machine-in-azure.knowledge-check
33
title: Knowledge check
4-
metadata:
5-
adobe-target: true
4+
metadata:
5+
adobe-target: true
66
prefetch-feature-rollout: true
77
title: Knowledge check
88
description: Knowledge check
9-
ms.date: 10/30/2023
9+
ms.date: 01/17/2025
1010
author: fossygirl
1111
ms.author: carols
1212
ms.topic: unit
@@ -48,7 +48,7 @@ quiz:
4848
- content: "Terraform"
4949
isCorrect: false
5050
explanation: "Incorrect: Terraform doesn't provide direct support to run Azure CLI commands and requires adding the Terraform executable."
51-
- content: "Which parameter of the Azure CLI az vm image command should you use to list all images from the same vendor?"
51+
- content: "Which parameter of the Azure CLI `az vm image` command should you use to list all images from the same vendor?"
5252
choices:
5353
- content: "`--sku`"
5454
explanation: "Incorrect: SKU represents an individual image version from a given publisher, and the same offer."

learn-pr/azure/provision-linux-virtual-machine-in-azure/7-summary.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
### YamlMime:ModuleUnit
22
uid: learn.provision-linux-virtual-machine-in-azure.summary
33
title: Summary
4-
metadata:
5-
adobe-target: true
4+
metadata:
5+
adobe-target: true
66
prefetch-feature-rollout: true
77
title: Summary
88
description: Summary
9-
ms.date: 10/30/2023
9+
ms.date: 01/17/2025
1010
author: fossygirl
1111
ms.author: carols
1212
ms.topic: unit

learn-pr/azure/provision-linux-virtual-machine-in-azure/includes/1-introduction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The Azure CLI is a cross-platform command-line tool that you can use to access A
1818

1919
### Terraform
2020

21-
Terraform is an open-source, multiplatform Infrastructure as Code (IaC) tool that you can use to provision and configure a wide range of environments, including multivendor public and private clouds. Unlike Azure CLI—which provides an _imperative approach_ to resource management—Terraform follows a _declarative_ approach.
21+
Terraform is an open-source, multiplatform Infrastructure as Code (IaC) tool that you can use to provision and configure a wide range of environments, including multivendor public and private clouds. Unlike Azure CLIwhich provides an _imperative approach_ to resource managementTerraform follows a _declarative_ approach.
2222

2323
An imperative approach involves writing scripts or running a sequence of commands. You explicitly provide the steps to run to produce a desired outcome. When you use imperative deployments, it's your responsibility to manage dependencies, error handling, and resource updates. A declarative approach involves writing a definition that describes the desired outcome, rather than the steps to implement it; the tooling determines the optimal method to deliver that outcome for you. It does this by inspecting the current state of your environment, comparing it to your target state, and then implementing the changes required to make them identical.
2424

@@ -40,7 +40,7 @@ Azure supports two types of templates for declarative provisioning:
4040

4141
You can use both these templates to deploy practically any Azure resource. These templates also easily integrate into version-control systems and deployment pipelines, resulting in improved automation and reliability. However, in comparison to Azure Resource Manager templates, Bicep templates offer several additional benefits, including more concise syntax and built-in dependency management.
4242

43-
## What will we be doing?
43+
## What will we learn?
4444

4545
In this module, you'll choose the optimal deployment method of provisioning Linux VMs in Azure. Your choice will be dependent on the criteria that have been established during the deployment planning phase.
4646

learn-pr/azure/provision-linux-virtual-machine-in-azure/includes/2-provision-linux-virtual-machine-using-the-azure-portal.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ On the Virtual machines page, select the **+ Create** link. This step is the sam
3232

3333
### Assign resource-specific settings
3434

35-
The settings you assign at this stage will determine the properties of the deployed resource. Although you can modify most of the settings after deployment, there are some settings that are immutable. The immutable settings include the resource name and the operating system (OS) image, so it's important to carefully consider their assignments. In addition, some of the modifiable settings might impact the resource availability if changed after deployment. For example, you can change an online Azure VM's resource group, but moving it across virtual networks, subscriptions, and regions (although possible) will result in downtime. Similarly, changing the Azure VM size, while straightforward and commonly done, requires an OS restart.
35+
The settings you assign at this stage determine the properties of the deployed resource. Although you can modify most of the settings after deployment, there are some settings that are immutable. The immutable settings include the resource name and the operating system (OS) image, so it's important to carefully consider their assignments. In addition, some of the modifiable settings might impact the resource availability if changed after deployment. For example, you can change an online Azure VM's resource group, but moving it across virtual networks, subscriptions, and regions (although possible) results in downtime. Similarly, changing the Azure VM size, while straightforward and commonly done, requires an OS restart.
3636

3737
> [!NOTE]
3838
> Microsoft doesn't support moving resources across subscriptions associated with different Microsoft Entra ID tenants, and provisioning multiple resources that are part of a larger deployment should follow a planning stage that determines their optimal configuration, including a naming convention.
@@ -65,7 +65,7 @@ The settings on this page configure the target subscription, either an existing
6565
![Screenshot showing the Basics tab of the Create a virtual machine wizard.](../media/azure-portal-create-virtual-machine-basic.png)
6666

6767
> [!CAUTION]
68-
> If you deploy an individual Azure VM for testing or evaluation purposes, you might choose to allow connectivity from the internet due to the convenience it provides. However, in general, you should avoid exposing Azure VMs to connections originating from the internet without additional constraints. To enhance security in such scenarios, consider implementing Azure Bastion or just-in-time (JIT) VM access, which is available as part of the Defender for Cloud service. Azure also offers hybrid connectivity options, including Site-to-Site (S2S) virtual private network (VPN), Point-to-Site (P2S) VPN, and Azure ExpressRoute. All three options eliminate the need for assigning public IP addresses to Azure VM network interfaces for connections originating from your on-premises datacenter or designated, internet-connected computers.
68+
> If you deploy an individual Azure VM for testing or evaluation purposes, you might choose to allow connectivity from the internet due to the convenience it provides. However, in general, you should avoid exposing Azure VMs to connections originating from the internet without additional constraints. To enhance security in such scenarios, consider implementing Azure Bastion or just-in-time (JIT) VM access, which is available as part of the Defender for Cloud service. Azure also offers hybrid connectivity options, including Site-to-Site (S2S) virtual private network (VPN), Point-to-Site (P2S) VPN, and Azure ExpressRoute. All three options eliminate the need for assigning public IP addresses to Azure VM network interfaces for connections originating from your on-premises datacenter or designated, internet-connected computers.
6969
7070
##### Disks
7171

learn-pr/azure/provision-linux-virtual-machine-in-azure/includes/3-provision-linux-virtual-machine-using-azure-cli.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ You can install Azure CLI locally on Linux, macOS, and Windows operating systems
55
66
To use Azure CLI interactively, launch a shell available within your operating system, such as cmd.exe in Windows, or Bash in Linux or macOS, and then issue a command at the command prompt. To automate repetitive tasks, assemble the CLI commands into a shell script using your chosen shell's script syntax, then run the script.
77

8-
If you want to avoid installing Azure CLI, you can use Azure Cloud Shell. Azure Cloud Shell is an interactive, authenticated shell that you can use to manage Azure resources from a web browser. Azure Cloud Shell can run Bash and Azure PowerShell, and it has the current version of Azure CLI already preinstalled. To access Azure Cloud Shell, open the [Azure Cloud Shell](https://shell.azure.com/) link in a web browser or launch it from the Azure portal by selecting the Azure Cloud Shell icon next to the global search textbox.
8+
If you want to avoid installing Azure CLI, you can use Azure Cloud Shell. Azure Cloud Shell is an interactive, authenticated shell that you can use to manage Azure resources from a web browser. Azure Cloud Shell can run Bash and Azure PowerShell, and it has the current version of Azure CLI already preinstalled. To access Azure Cloud Shell, open the [Azure Cloud Shell](https://shell.azure.com/) link in a web browser or launch it from the Azure portal by selecting the **Cloud Shell** icon next to the global search textbox.
99

1010
![Screenshot showing the Azure Cloud Shell icon in the Azure portal.](../media/azure-portal-cloud-shell-icon.png)
1111

@@ -21,7 +21,7 @@ The process of provisioning an Azure VM running Linux by using Azure CLI typical
2121
- Create and configure a virtual network.
2222
- Create an Azure VM.
2323

24-
Depending on your existing environment and requirements, it might not be necessary to complete each of the preceding steps. For example, you might use an existing resource group or a virtual network subnet for your deployment. In addition, Azure CLI supports a wide range of default settings, which automatically apply if you decide not to explicitly assign values to some of the resource settings. For example, as with the Azure portal-based deployment, if you don't specify an existing virtual network, Azure CLI will automatically provision one for you. In this module, you'll rely on the Azure CLI default settings and skip the process of creating a virtual network.
24+
Depending on your existing environment and requirements, it might not be necessary to complete each of the preceding steps. For example, you might use an existing resource group or a virtual network subnet for your deployment. In addition, Azure CLI supports a wide range of default settings, which automatically apply if you decide not to explicitly assign values to some of the resource settings. For example, as with the Azure portal-based deployment, if you don't specify an existing virtual network, Azure CLI automatically provisions one for you. In this module, you'll rely on the Azure CLI default settings and skip the process of creating a virtual network.
2525

2626
> [!NOTE]
2727
> For information regarding implementing virtual networks by using Azure CLI, refer to [Quickstart: Use Azure CLI to create a virtual network](/azure/virtual-network/quick-create-cli).
@@ -45,7 +45,7 @@ az vm image list-publishers --location eastus --query [].name --output tsv | gre
4545
```
4646

4747
> [!NOTE]
48-
> The list is quite extensive, so you should ensure that you limit the output to the available session buffer.
48+
> The list is quite extensive, so you should ensure that you limit the output to the available session buffer. To exit the list, you can use **CTRL** + **C** on your keyboard.
4949
5050
Assume you chose `Canonical`. Next, identify the offers available from that publisher by running the following command:
5151

@@ -79,7 +79,7 @@ In addition to image availability, you also should ensure that the VM size you i
7979
az vm list-sizes --location eastus --output table
8080
```
8181

82-
Identify the VM size suitable for your sample deployment from the listing and note the value in the Name column. You'll need to enter the name in the identical format when running the Azure CLI command that initiates the Azure VM provisioning. Assume you chose *Standard_F4s*.
82+
Identify the VM size suitable for your sample deployment from the listing and note the value in the *Name* column. You'll need to enter the name in the identical format when running the Azure CLI command that initiates the Azure VM provisioning. Assume you chose *Standard_F4s*.
8383

8484
> [!IMPORTANT]
8585
> Before you proceed, verify that this VM size is available in the Azure region you're targeting, and if needed, adjust the values of parameters in the subsequent commands accordingly.

0 commit comments

Comments
 (0)