You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#Customer intent: As an IT administrator, I want to learn about Azure Managed Disks so that I can create and manage storage for Windows VMs in Azure.
13
13
---
@@ -38,10 +38,10 @@ The exercises in this tutorial require a VM. Follow the steps in this section to
38
38
Before you begin, find the `$azRegion` variable located in the first line of sample code and update the value to reflect your desired region. For example, to specify the **Central US** region, use `$azRegion = "Central US"`. Next, use the code to deploy a VM within a new resource group. You're prompted for username and password values for the VM's local administrator account.
39
39
40
40
```azurepowershell-interactive
41
-
$azRegion = "[Your Region]"
41
+
$azRegion = "[Your Region]"
42
42
$azResourceGroup = "myDemoResourceGroup"
43
-
$azVMName = "myDemoVM"
44
-
$azDataDiskName = "myDemoDataDisk"
43
+
$azVMName = "myDemoVM"
44
+
$azDataDiskName = "myDemoDataDisk"
45
45
46
46
New-AzVm `
47
47
-Location $azRegion `
@@ -51,7 +51,7 @@ New-AzVm `
51
51
-VirtualNetworkName "myDemoVnet" `
52
52
-SubnetName "myDemoSubnet" `
53
53
-SecurityGroupName "myDemoNetworkSecurityGroup" `
54
-
-PublicIpAddressName "myDemoPublicIpAddress"
54
+
-PublicIpAddressName "myDemoPublicIpAddress"
55
55
```
56
56
57
57
The output confirms the VM's successful creation.
@@ -167,7 +167,7 @@ A data disk must be attached to a VM before the VM can access it. Complete the s
@@ -441,7 +441,7 @@ Follow the steps in this section to upgrade a managed disk from standard to prem
441
441
442
442
## Detach a data disk
443
443
444
-
You can detach a data disk from a VM when it's no longer needed. A detached disk is removed from the VM, but isn't deleted. If you've subscribed to premium storage, you'll continue to incur storage charges for the disk until it's deleted.
444
+
You can detach a data disk from a VM when you want to attach it to a different VM, or when it's no longer needed. By default, detached disks are not deleted to prevent unintentional data loss. A detached disk will continue to incur storage charges until it's deleted.
445
445
446
446
1. First, select the VM to which the disk is attached with the `Get-AzVM` cmdlet.
0 commit comments