< Back

Update-AzureDisk

Wed Jan 30, 2019 5:56 pm

NAME Update-AzureDisk



SYNOPSIS

Changes the label of a disk in the Azure disk repository.





SYNTAX

Update-AzureDisk [-DiskName] <String> [[-Label] <String>] [-ResizedSizeInGB] <Int32> [-Profile <AzureSMProfile>] [-InformationAction <ActionPreference>]

[-InformationVariable <String>] [<CommonParameters>]





DESCRIPTION

The Update-AzureDisk cmdlet changes the label that is associated with a disk in the disk repository of the current Azure subscription.





PARAMETERS

-DiskName <String>

Specifies the name of the disk that this cmdlet modifies.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Label <String>

Specifies the new label for the disk.



Required? false

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResizedSizeInGB <Int32>

Specifies the new size, in gigabytes, for the disk.



Required? true

Position? 2

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Profile <AzureSMProfile>

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-InformationAction <ActionPreference>





Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-InformationVariable <String>





Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

DiskContext







NOTES









-------------------------- Example 1: Change the label of a disk --------------------------



PS C:\\>Update-AzureDisk ?DiskName "ContosoOSDisk" -Label "DoNotUse"



This command changes the label of the disk named ContosoOSDisk to DoNotUse.



RELATED LINKS

Add-AzureDisk

Get-AzureDisk

Remove-AzureDisk