< Back
Remove-AzureAffinityGroup
Post
NAME Remove-AzureAffinityGroup
SYNOPSIS
Deletes an affinity group in a subscription.
SYNTAX
Remove-AzureAffinityGroup [-Name] <String> [-Profile <AzureSMProfile>] [-InformationAction <ActionPreference>] [-InformationVariable <String>]
[<CommonParameters>]
DESCRIPTION
The Remove-AzureAffinityGroup cmdlet deletes an Azure affinity group in the current subscription. You cannot delete an affinity group that has any
members. You must first delete all the members of an affinity group.
PARAMETERS
-Name <String>
Specifies the name of the affinity group that this cmdlet deletes.
Required? true
Position? 0
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
NOTES
-------------------------- Example 1: Remove an affinity group --------------------------
PS C:\\>Remove-AzureAffinityGroup -Name "South01"
This command deletes the South01 affinity group in the current subscription.
RELATED LINKS
Get-AzureAffinityGroup
New-AzureAffinityGroup
Set-AzureAffinityGroup
SYNOPSIS
Deletes an affinity group in a subscription.
SYNTAX
Remove-AzureAffinityGroup [-Name] <String> [-Profile <AzureSMProfile>] [-InformationAction <ActionPreference>] [-InformationVariable <String>]
[<CommonParameters>]
DESCRIPTION
The Remove-AzureAffinityGroup cmdlet deletes an Azure affinity group in the current subscription. You cannot delete an affinity group that has any
members. You must first delete all the members of an affinity group.
PARAMETERS
-Name <String>
Specifies the name of the affinity group that this cmdlet deletes.
Required? true
Position? 0
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
NOTES
-------------------------- Example 1: Remove an affinity group --------------------------
PS C:\\>Remove-AzureAffinityGroup -Name "South01"
This command deletes the South01 affinity group in the current subscription.
RELATED LINKS
Get-AzureAffinityGroup
New-AzureAffinityGroup
Set-AzureAffinityGroup