Skip to content

Commit cc79158

Browse files
authored
Merge pull request #67410 from roygara/updateAz
Update articles to use Az
2 parents a50e9d5 + 3a46cb9 commit cc79158

File tree

4 files changed

+12
-19
lines changed

4 files changed

+12
-19
lines changed

articles/virtual-machines/windows/attach-disk-ps.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,8 @@ Update-AzVM -VM $vm -ResourceGroupName $rgName
5555
```
5656

5757
### Using managed disks in an Availability Zone
58-
To create a disk in an Availability Zone, use [New-AzDiskConfig](https://docs.microsoft.com/powershell/module/az.compute/new-azdiskconfig) with the `-Zone` parameter. The following example creates a disk in zone *1*.
5958

60-
To create a disk in an Availability Zone, use [New-AzureRmDiskConfig](/powershell/module/azurerm.compute/new-azurermdiskconfig) with the `-Zone` parameter. The following example creates a disk in zone *1*.
59+
To create a disk in an Availability Zone, use [New-AzDiskConfig](https://docs.microsoft.com/powershell/module/az.compute/new-azdiskconfig) with the `-Zone` parameter. The following example creates a disk in zone *1*.
6160

6261
```powershell
6362
$rgName = 'myResourceGroup'

articles/virtual-machines/windows/convert-disk-storage.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ms.workload: infrastructure-services
1414
ms.tgt_pltfrm: vm-windows
1515
ms.devlang: na
1616
ms.topic: article
17-
ms.date: 10/04/2018
17+
ms.date: 02/22/2019
1818
ms.author: ramankum
1919
ms.subservice: disks
2020
---
@@ -27,11 +27,8 @@ Azure managed disks offers four storage type options: Ultra solid state drives (
2727

2828
## Prerequisites
2929

30-
* Because the conversion requires a restart of the virtual machine (VM), you should schedule the migration of your disks storage during a pre-existing maintenance window.
31-
* If you're using an unmanaged disk, first [convert it to a managed disk](convert-unmanaged-to-managed-disks.md) to allow you to switch it between the storage types.
32-
* The examples in this article require the Azure PowerShell module version 6.0.0 or later. Run `Get-Module -ListAvailable AzureRM` to find the version. If you need to upgrade, see [Install Azure PowerShell module](/powershell/azure/azurerm/install-azurerm-ps). Run [Connect-AzAccount](https://docs.microsoft.com/powershell/module/az.accounts/connect-azaccount) to create a connection with Azure.
33-
34-
* The examples in this article require the Azure PowerShell module version 6.0.0 or later. Run `Get-Module -ListAvailable AzureRM` to find the version. If you need to upgrade, see [Install Azure PowerShell module](/powershell/azure/azurerm/install-azurerm-ps). Run [Connect-AzureRmAccount](https://docs.microsoft.com/powershell/module/azurerm.profile/connect-azurermaccount) to create a connection with Azure.
30+
* Because the conversion requires a restart of the virtual machine (VM), you should schedule the migration of your disks storage during a pre-existing maintenance window.
31+
* If you're using an unmanaged disk, first [convert it to a managed disk](convert-unmanaged-to-managed-disks.md) to allow you to switch it between the storage types.
3532

3633
## Convert all the managed disks of a VM from standard to premium
3734

articles/virtual-machines/windows/find-unattached-disks.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: How to find and delete unattached Azure managed and unmanaged (VHDs
44
services: virtual-machines-windows
55
documentationcenter: ''
66
author: ramankumarlive
7-
manager: jeconnoc
7+
manager: twooley
88
editor: ''
99
tags: azure-resource-manager
1010

@@ -14,16 +14,16 @@ ms.workload: infrastructure-services
1414
ms.tgt_pltfrm: vm-windows
1515
ms.devlang: na
1616
ms.topic: article
17-
ms.date: 03/30/2018
17+
ms.date: 02/22/2019
1818
ms.author: ramankum
1919
ms.subservice: disks
2020
---
2121

2222
# Find and delete unattached Azure managed and unmanaged disks
23-
When you delete a virtual machine (VM) in Azure, by default, any disks that are attached to the VM aren't deleted. This feature helps to prevent data loss due to the unintentional deletion of VMs. After a VM is deleted, you will continue to pay for unattached disks. This article shows you how to find and delete any unattached disks and reduce unnecessary costs.
2423

24+
When you delete a virtual machine (VM) in Azure, by default, any disks that are attached to the VM aren't deleted. This feature helps to prevent data loss due to the unintentional deletion of VMs. After a VM is deleted, you will continue to pay for unattached disks. This article shows you how to find and delete any unattached disks and reduce unnecessary costs.
2525

26-
## Managed disks: Find and delete unattached disks
26+
## Managed disks: Find and delete unattached disks
2727

2828
The following script looks for unattached [managed disks](managed-disks-overview.md) by examining the value of the **ManagedBy** property. When a managed disk is attached to a VM, the **ManagedBy** property contains the resource ID of the VM. When a managed disk is unattached, the **ManagedBy** property is null. The script examines all the managed disks in an Azure subscription. When the script locates a managed disk with the **ManagedBy** property set to null, the script determines that the disk is unattached.
2929

@@ -127,7 +127,4 @@ foreach($storageAccount in $storageAccounts){
127127

128128
## Next steps
129129

130-
For more information, see [Delete storage account](../../storage/common/storage-create-storage-account.md) and [Identify Orphaned Disks Using PowerShell](https://blogs.technet.microsoft.com/ukplatforms/2018/02/21/azure-cost-optimisation-series-identify-orphaned-disks-using-powershell/)
131-
132-
133-
130+
For more information, see [Delete storage account](../../storage/common/storage-create-storage-account.md) and [Identify Orphaned Disks Using PowerShell](https://blogs.technet.microsoft.com/ukplatforms/2018/02/21/azure-cost-optimisation-series-identify-orphaned-disks-using-powershell/)

includes/virtual-machines-common-how-to-enable-write-accelerator.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
author: msraiye
66
ms.service: virtual-machines
77
ms.topic: include
8-
ms.date: 02/20/2019
8+
ms.date: 02/22/2019
99
ms.author: raiye
1010
ms.custom: include file
1111
---
@@ -121,7 +121,7 @@ $lunid=8
121121
#size
122122
$size=1023
123123
#Pulls the VM info for later
124-
$vm=Get-AzurermVM -ResourceGroupName $rgname -Name $vmname
124+
$vm=Get-AzVM -ResourceGroupName $rgname -Name $vmname
125125
#add a new VM data disk
126126
Add-AzVMDataDisk -CreateOption empty -DiskSizeInGB $size -Name $vmname-$datadiskname -VM $vm -Caching None -WriteAccelerator:$true -lun $lunid
127127
#Updates the VM with the disk config - does not require a reboot
@@ -142,7 +142,7 @@ $datadiskname = "test-log001"
142142
#new Write Accelerator status ($true for enabled, $false for disabled)
143143
$newstatus = $true
144144
#Pulls the VM info for later
145-
$vm=Get-AzurermVM -ResourceGroupName $rgname -Name $vmname
145+
$vm=Get-AzVM -ResourceGroupName $rgname -Name $vmname
146146
#add a new VM data disk
147147
Set-AzVMDataDisk -VM $vm -Name $datadiskname -Caching None -WriteAccelerator:$newstatus
148148
#Updates the VM with the disk config - does not require a reboot

0 commit comments

Comments
 (0)