Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-AzVmSize deprecation #27109

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Compute/Compute/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

-->
## Upcoming Release
* Updated Get-AzVMSize to redirect usage to Get-AzComputeResourceSku.

## Version 9.1.0
* Added new parameter `EncryptionIdentity` to cmdlet `Set-AzVmssDiskEncryptionExtension`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ public class GetAzureVMSizeCommand : VirtualMachineSizeBaseCmdlet

public override void ExecuteCmdlet()
{
WriteInformation("For more accurate output, use \"Get-AzComputeResourceSku\" instead. The REST API call used by Get-AzVMSize: \"Virtual Machine Sizes - List\" is deprecated. \n");

base.ExecuteCmdlet();

ExecuteClientAction(() =>
Expand Down
4 changes: 2 additions & 2 deletions src/Compute/Compute/help/Get-AzVMSize.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ schema: 2.0.0
# Get-AzVMSize

## SYNOPSIS
Gets available virtual machine sizes.
Deprecated. Use [Get-AzComputeResourceSku](https://learn.microsoft.com/en-us/powershell/module/az.compute/get-azcomputeresourcesku) instead. Gets available virtual machine sizes.

## SYNTAX

Expand All @@ -32,7 +32,7 @@ Get-AzVMSize [-ResourceGroupName] <String> [-VMName] <String> [-DefaultProfile <
```

## DESCRIPTION
The **Get-AzVMSize** cmdlet gets available virtual machine sizes.
Deprecated. Use [Get-AzComputeResourceSku](https://learn.microsoft.com/en-us/powershell/module/az.compute/get-azcomputeresourcesku) instead. The **Get-AzVMSize** cmdlet gets available virtual machine sizes.

## EXAMPLES

Expand Down