Remove-​Azure​RM​Managed​Subscription

Removes the specified subscription.

Syntax

Remove-AzureRMManagedSubscription
      [-InformationAction <ActionPreference>]
      [-InformationVariable <String>]
      [-PipelineVariable <String>]
      -TargetSubscriptionId <Guid>
      [<CommonParameters>]

Description

The Remove-AzureRMManagedSubscription cmdlet removes the specified subscription. The user must be logged in as a service administrator before issuing this cmdlet.

Examples

Example 1: Remove the specified Azure resource manager subscription

Remove-AzureRmManagedSubscription -TargetSubscriptionId "83a3cff6-b856-4db1-8d1b-86386ff9d515"

This example deletes the subscription that has the ID of 83a3cff6-b856-4db1-8d1b-86386ff9d515. The Remove-AzureRMManagedSubscription cmdlet is executed after the user logs in to the azure stack environment as a service administrator.

Required Parameters

-TargetSubscriptionId

Specifies the ID of the subscription that is to be removed.

Type:Guid
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-InformationAction

Specifies how this cmdlet responds to an information event.

Type:ActionPreference
Aliases:infa
Parameter Sets:SilentlyContinue, Stop, Continue, Inquire
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationVariable

Specifies a variable that is used for storing an informational message.

Type:String
Aliases:iv
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PipelineVariable

Specifies a variable that stores the value of the current pipeline element.

Type:String
Aliases:pv
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

Microsoft.Azure.AzureOperationResponse