Set-​Azure​RM​Tenant​Subscription

Updates the current logged-in user's tenant subscription.

Syntax

Set-AzureRMTenantSubscription
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   [-PipelineVariable <String>]
   -Subscription <SubscriptionDefinition>
   [<CommonParameters>]

Description

The Set-AzureRMTenantSubscription cmdlet updates the current logged-in user's tenant subscription.

Examples

EXAMPLE 1: Change a property of the current logged-in user's tenant subscription

$subscriptionToUpdate = Get-AzureRmTenantSubscription
$subscriptionToUpdate.OfferId = "Abc123"
Set-AzureRMTenantSubscription -Subscription $subscriptionToUpdate

This example modifies the OfferId property of the current logged-in user's tenant subscription. 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-AzureRMTenantSubscription cmdlet.

Required Parameters

-Subscription

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

Type:SubscriptionDefinition
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

None

Outputs

Microsoft.AzureStack.Management.Models.SubscriptionDefinition