This repo contains sample scripts for using performance tiers feature of managed disks
Перейти к файлу
Raman Kumar 752f7afaa0
Update CreateVMWithDisksUsingTier.json
2021-03-22 13:38:30 -07:00
.gitignore Initial commit 2020-08-11 17:59:32 +00:00
CODE_OF_CONDUCT.md Initial CODE_OF_CONDUCT.md commit 2020-08-11 10:59:38 -07:00
CreateUpdateDataDiskWithTier.json Update CreateUpdateDataDiskWithTier.json 2021-02-18 10:44:27 -08:00
CreateUpdateOSDiskWithTier.json Update CreateUpdateOSDiskWithTier.json 2021-02-18 10:45:24 -08:00
CreateVMWithDisksUsingTier.json Update CreateVMWithDisksUsingTier.json 2021-03-22 13:38:30 -07:00
LICENSE Initial LICENSE commit 2020-08-11 10:59:39 -07:00
LICENSE-CODE Initial LICENSE-CODE commit 2020-08-11 10:59:40 -07:00
README.md Update README.md 2020-08-12 23:07:30 -07:00
SECURITY.md Initial SECURITY.md commit 2020-08-11 10:59:41 -07:00

README.md

Performance Tier of Managed Disks in preview

Azure Disks Storage currently offers built-in bursting capabilities to achieve higher performance for handling short-term unexpected traffic. For an event like Black Friday, performance testing, running a training environment, you need to achieve consistently higher performance for a few days or hours and then return to the normal performance levels. On Premium SSDs, you now have the flexibility to increase the disk performance without increasing the disk size and come back to baseline performance, allowing you to match workload performance needs and reduce costs.

A baseline performance tier is set based on your provisioned disk size. You can set a higher performance tier when your application requires this to meet higher demand and return to the initial baseline performance tier once this period is complete. For example, if you provision a P10 disk (128 GiB), your baseline performance tier is set as P10 (500 IOPS and 100 MB/s). You can update the tier to match the performance of P50 (7500 IOPS and 250 MB/s) without increasing the disk size and return to P10 when higher performance is no longer needed.

Disk Size Baseline Performance Tier Can be upgraded to
4 GiB P1 P1, P2, P3, P4, P6, P10, P15, P20, P30, P40, P50
8 GiB P2 P2, P3, P4, P6, P10, P15, P20, P30, P40, P50
16 GiB P3 P3, P4, P6, P10, P15, P20, P30, P40, P50
32 GiB P4 P4, P6, P10, P15, P20, P30, P40, P50
64 GiB P6 P6, P10, P15, P20, P30, P40, P50
128 GiB P10 P10, P15, P20, P30, P40, P50
256 GiB P15 P15, P20, P30, P40, P50
512 GiB P20 P20, P30, P40, P50
1 TiB P30 P30, P40, P50
2 TiB P40 P40, P50
4 TiB P50 P50
8 TiB P60 P60, P70, P80
16 TiB P70 P70, P80
32 TiB P80 P80

Prerequisite

You must get the feature enabled for your subscriptions before you can use performance tier. Please sign up for access to our private preview.

Regions supported

  1. West Central US
  2. East 2 US
  3. Europe West
  4. East Australia
  5. South East Australia
  6. South India

Restrictions

  1. Disks should not be attached to running VMs while changing tier.
  2. You have to resize a disk to size greater than 4096 GiB to use P60, P70, P80 tiers.

Create/update a data disk with a tier higher than the baseline tier

  1. Create an empty data disk with a tier higher than the baseline tier or update the tier of a disk higher than the baseline tier using the sample template CreateUpdateDataDiskWithTier.json
subscriptionId=dd80b94e-0463-4a65-8d04-c94f403879dc
resourceGroupName=perftiertesting
diskName=myDataDiskwithperftier1
diskSize=128
performanceTier=P50
region=EastUS2EUAP

az login

az account set --subscription $subscriptionId

az group deployment create -g $resourceGroupName \
--template-uri "https://raw.githubusercontent.com/Azure/azure-managed-disks-performance-tiers/main/CreateUpdateDataDiskWithTier.json" \
--parameters "region=$region" "diskName=$diskName" "performanceTier=$performanceTier" "dataDiskSizeInGb=$diskSize"
  1. Confirm the tier of the disk
az resource show -n $diskName -g $resourceGroupName --namespace Microsoft.Compute --resource-type disks --api-version 2020-06-30 --query [properties.tier] -o tsv

Create/update a OS disk with a tier higher than the baseline tier

  1. Create an OS disk from a marketplace image or update the tier of a OS disk higher than the baseline tier using the sample template CreateUpdateOSDiskWithTier.json
resourceGroupName=perftiertesting
diskName=myOSdiskwithperftier1
performanceTier=P30
region=EastUS2EUAP

az group deployment create -g $resourceGroupName \
--template-uri "https://raw.githubusercontent.com/Azure/azure-managed-disks-performance-tiers/main/CreateUpdateOSDiskWithTier.json" \
--parameters "region=$region" "diskName=$diskName" "performanceTier=$performanceTier"
  1. Confirm the tier of the disk
az resource show -n $diskName -g $resourceGroupName --namespace Microsoft.Compute --resource-type disks --api-version 2020-06-30 --query [properties.tier] -o tsv

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Microsoft and any contributors grant you a license to the Microsoft documentation and other content in this repository under the Creative Commons Attribution 4.0 International Public License, see the LICENSE file, and grant you a license to any code in the repository under the MIT License, see the LICENSE-CODE file.

Microsoft, Windows, Microsoft Azure and/or other Microsoft products and services referenced in the documentation may be either trademarks or registered trademarks of Microsoft in the United States and/or other countries. The licenses for this project do not grant you rights to use any Microsoft names, logos, or trademarks. Microsoft's general trademark guidelines can be found at http://go.microsoft.com/fwlink/?LinkID=254653.

Privacy information can be found at https://privacy.microsoft.com/en-us/

Microsoft and any contributors reserve all other rights, whether under their respective copyrights, patents, or trademarks, whether by implication, estoppel or otherwise.