Set-​Azure​RM​Managed​Subscription

Modifies the subscription of any tenant user.

Syntax

Set-AzureRMManagedSubscription
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   [-PipelineVariable <String>]
   -Subscription <AdminSubscriptionDefinition>
   [<CommonParameters>]

Description

The Set-AzureRMManagedSubscription cmdlet modifies the subscription of any tenant user. The user must be logged in as a service administrator before issuing this cmdlet.

Examples

EXAMPLE 1: Change a property of a target subscription

$subscriptionToUpdate = Get-AzureRMManagedSubscription -TargetSubscriptionId "2fff214f-8589-4d25-b468-dc99320724bc"
$subscriptionToUpdate.OfferId = "Abc123"
Set-AzureRMManagedSubscription -Subscription $subscriptionToUpdate

This example modifies the OfferId property of the target subscription that has the subscription ID "2fff214f-8589-4d25-b468-dc99320724bc". The first statement gets the subscription and stores the object in the $subscriptionToUpdate variable. After the OfferId property is changed, the updated object is passed in the Subscription parameter of the Set-AzureRMManagedSubscription cmdlet.

Required Parameters

-Subscription

Specifies an updated AdminSubscriptionDefinition object to be used for updating the existing subscription data.

Type:AdminSubscriptionDefinition
Position:Named
Default value:None
Accept pipeline input:False
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

Microsoft.AzureStack.Management.Models.SubscriptionDefinition

Outputs

Microsoft.AzureStack.Management.Models.SubscriptionDefinition