< Back

Update-AzureRmAvailabilitySet

Tue Jan 29, 2019 9:40 pm

NAME Update-AzureRmAvailabilitySet



SYNOPSIS

Updates an availability set.





SYNTAX

Update-AzureRmAvailabilitySet [-AvailabilitySet] <PSAvailabilitySet> [-AsJob] [-DefaultProfile <IAzureContextContainer>] -Managed [-Confirm]

[-WhatIf] [<CommonParameters>]



Update-AzureRmAvailabilitySet [-AvailabilitySet] <PSAvailabilitySet> [-Sku] <String> [-AsJob] [-DefaultProfile <IAzureContextContainer>]

[-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

The Update-AzureRmAvailabilitySet cmdlet updates an availability set.





PARAMETERS

-AsJob [<SwitchParameter>]

Run cmdlet in the background and return a Job to track progress.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-AvailabilitySet <PSAvailabilitySet>

Specifies the availability set object to be updated.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName, ByValue)

Accept wildcard characters? false



-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Managed [<SwitchParameter>]

Managed Availability Set



Required? true

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Sku <String>

The Name of Sku



Required? true

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.



Required? false

Position? named

Default value False

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 (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

Microsoft.Azure.Commands.Compute.Models.PSAvailabilitySet







OUTPUTS

Microsoft.Azure.Commands.Compute.Models.PSAvailabilitySet







NOTES









Example 1



PS C:\\> Get-AzureRmAvailabilitySet -ResourceGroupName 'ResourceGroup01' -Name 'AvSet01' | Update-AzureRmAvailabilitySet -Managed;



This command updates the availability set named 'AvSet01' in the resource group named 'ResourceGroup01' to a managed availability set.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... abilityset