Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
103 lines (73 sloc) 2.51 KB

external help file: Microsoft.Azure.PowerShell.Cmdlets.HDInsight.dll-Help.xml Module Name: Az.HDInsight ms.assetid: 87B3C102-0A8C-4FFA-8429-594D2360AC32 online version: https://docs.microsoft.com/en-us/powershell/module/az.hdinsight/remove-azhdinsightcluster schema: 2.0.0

Remove-AzHDInsightCluster

SYNOPSIS

Removes the specified HDInsight cluster from the current subscription.

SYNTAX

Remove-AzHDInsightCluster [-ClusterName] <String> [-ResourceGroupName <String>]
 [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]

DESCRIPTION

The Remove-AzHDInsightCluster cmdlet removes the specified HDInsight service cluster from a subscription. This operation also deletes any data stored in the Hadoop Distributed File System (HDFS) on the cluster. Data stored in the associated Azure Storage account is not deleted. Data stored in external metastores is not deleted.

EXAMPLES

Example 1: Delete an Azure HDInsight cluster

PS C:\>Remove-AzHDInsightCluster -ClusterName "your-hadoop-001"

This command removes the cluster named your-hadoop-001.

PARAMETERS

-ClusterName

Specifies the name of the cluster.

Type: System.String
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DefaultProfile

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

Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer
Parameter Sets: (All)
Aliases: AzContext, AzureRmContext, AzureCredential

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ResourceGroupName

Specifies the name of the resource group.

Type: System.String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

None

OUTPUTS

Microsoft.Azure.Management.HDInsight.Models.ClusterGetResponse

NOTES

RELATED LINKS

Get-AzHDInsightCluster

Use-AzHDInsightCluster

You can’t perform that action at this time.