Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Remove-AzureAffinityGroup

Remove-AzureAffinityGroup

microsoft.windowsazure.commands.servicemanagement.dll

Synopsis

Deletes an affinity group in the specified subscription.

Syntax

Remove-AzureAffinityGroup [-Name] [<CommonParameters>]

Detailed Description

The Remove-AzureAffinityGroup cmdlet deletes an affinity group in the subscription. You can't delete an affinity group that has any members. You must first delete all the members of an affinity group and then use Remove-AzureAffinityGroup to delete the affinity group.

Parameters

-Name <String>

Specifies the name of the affinity group to delete.

Aliases

None

Required?

true

Position

0

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

-------------------------- Example 1 --------------------------

This command deletes the 'South1' affinity group in the current subscription.

PS C:\> C:\PS>Remove-AzureAffinityGroup -name "South1"

Get-AzureAffinityGroup
New-AzureAffinityGroup
Set-AzureAffinityGroup