Skip to content

Commit c78e101

Browse files
Merge pull request #232543 from divargas-msft/patch-3
[Doc-a-thon] Updating disk-encryption-powershell-quickstart
2 parents eb9ebcb + fb14596 commit c78e101

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

articles/virtual-machines/linux/disk-encryption-powershell-quickstart.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ms.custom: devx-track-azurepowershell, mode-api
1515

1616
**Applies to:** :heavy_check_mark: Linux VMs :heavy_check_mark: Flexible scale sets
1717

18-
The Azure PowerShell module is used to create and manage Azure resources from the PowerShell command line or in scripts. This quickstart shows you how to use the Azure PowerShell module to create a Linux virtual machine (VM), create a Key Vault for the storage of encryption keys, and encrypt the VM. This quickstart uses the Ubuntu 16.04 LTS marketplace image from Canonical and a VM Standard_D2S_V3 size.
18+
The Azure PowerShell module is used to create and manage Azure resources from the PowerShell command line or in scripts. This quickstart shows you how to use the Azure PowerShell module to create a Linux virtual machine (VM), create a Key Vault for the storage of encryption keys, and encrypt the VM. This quickstart uses the Ubuntu 16.04 LTS marketplace image from Canonical and a VM Standard_D2S_V3 size. However, any [ADE supported Linux image version](/azure/virtual-machines/linux/disk-encryption-overview#supported-operating-systems) could be used instead of an Ubuntu VM.
1919

2020
If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
2121

@@ -29,30 +29,30 @@ New-AzResourceGroup -Name "myResourceGroup" -Location "EastUS"
2929

3030
## Create a virtual machine
3131

32-
Create an Azure virtual machine with [New-AzVM](/powershell/module/az.compute/new-azvm), passing to it the VM configuration object you created above.
32+
Create an Azure virtual machine with [New-AzVM](/powershell/module/az.compute/new-azvm), passing to it the VM configuration object you created in the previous step.
3333

3434
```powershell-interactive
3535
$cred = Get-Credential
3636
3737
New-AzVM -Name MyVm -Credential $cred -ResourceGroupName MyResourceGroup -Image Canonical:UbuntuServer:18.04-LTS:latest -Size Standard_D2S_V3
3838
```
3939

40-
It will take a few minutes for your VM to be deployed.
40+
It takes a few minutes for your VM to be deployed.
4141

4242
## Create a Key Vault configured for encryption keys
4343

4444
Azure disk encryption stores its encryption key in an Azure Key Vault. Create a Key Vault with [New-AzKeyvault](/powershell/module/az.keyvault/new-azkeyvault). To enable the Key Vault to store encryption keys, use the -EnabledForDiskEncryption parameter.
4545

4646
> [!Important]
47-
> Every key vault must have a name that is unique across Azure. In the examples below, replace \<your-unique-keyvault-name\> with the name you choose.
47+
> Every key vault must have a name that is unique across Azure. In the following examples, replace \<your-unique-keyvault-name\> with the name you choose.
4848
4949
```azurepowershell-interactive
5050
New-AzKeyvault -name "<your-unique-keyvault-name>" -ResourceGroupName "myResourceGroup" -Location EastUS -EnabledForDiskEncryption
5151
```
5252

5353
## Encrypt the virtual machine
5454

55-
Encrypt your VM with [Set-AzVmDiskEncryptionExtension](/powershell/module/az.compute/set-azvmdiskencryptionextension).
55+
Encrypt your VM with [Set-AzVmDiskEncryptionExtension](/powershell/module/az.compute/set-azvmdiskencryptionextension).
5656

5757
Set-AzVmDiskEncryptionExtension requires some values from your Key Vault object. You can obtain these values by passing the unique name of your key vault to [Get-AzKeyvault](/powershell/module/az.keyvault/get-azkeyvault).
5858

@@ -64,7 +64,7 @@ Set-AzVMDiskEncryptionExtension -ResourceGroupName MyResourceGroup -VMName "MyVM
6464

6565
After a few minutes the process will return the following:
6666

67-
```
67+
```output
6868
RequestId IsSuccessStatusCode StatusCode ReasonPhrase
6969
--------- ------------------- ---------- ------------
7070
True OK OK
@@ -78,7 +78,7 @@ Get-AzVmDiskEncryptionStatus -VMName MyVM -ResourceGroupName MyResourceGroup
7878

7979
When encryption is enabled, you will see the following in the returned output:
8080

81-
```
81+
```output
8282
OsVolumeEncrypted : EncryptionInProgress
8383
DataVolumesEncrypted : NotMounted
8484
OsVolumeEncryptionSettings : Microsoft.Azure.Management.Compute.Models.DiskEncryptionSettings

0 commit comments

Comments
 (0)