Set-AzsUserSubscription
Hiermee maakt of werkt u het opgegeven abonnement bij.
Syntax
Set-AzsUserSubscription
-TargetSubscriptionId <String>
[-SubscriptionId <String>]
[-DelegatedProviderSubscriptionId <String>]
[-DisplayName <String>]
[-ExternalReferenceId <String>]
[-Id <String>]
[-OfferId <String>]
[-Owner <String>]
[-RoutingResourceManagerType <ResourceManagerType>]
[-State <SubscriptionState>]
[-SubscriptionId1 <String>]
[-TenantId <String>]
[-DefaultProfile <PSObject>]
[-Confirm]
[-WhatIf]
[<CommonParameters>]
Set-AzsUserSubscription
-SubscriptionDefinition \<ISubscriptionDefinition>
[-SubscriptionId <String>]
[-DefaultProfile <PSObject>]
[-Confirm]
[-WhatIf]
[<CommonParameters>]
Description
Hiermee maakt of werkt u het opgegeven abonnement bij.
Voorbeelden
Voorbeeld 1
PS C:\> $Subscription = Get-AzsUserSubscription | Select-Object -First 1
$Subscription.DisplayName = 'Update User Subscription'
$Subscription | Set-AzsUserSubscription | fl *
DelegatedProviderSubscriptionId : d77ed1d7-cb62-4658-a777-386a8ae523dd
DisplayName : Update User Subscription
ExternalReferenceId :
Id : /subscriptions/d77ed1d7-cb62-4658-a777-386a8ae523dd/providers/Microsoft.Subscriptions.Admin/subscriptions/ffbffbe5-8905-4f51-b2ed-4717049de782
OfferId : /subscriptions/d77ed1d7-cb62-4658-a777-386a8ae523dd/resourceGroups/DRPTestResourceGroup5056/providers/Microsoft.Subscriptions.Admin/offers/DRPTestOffer5056
Owner : user@microsoft.com
RoutingResourceManagerType : Default
State : Enabled
SubscriptionId : ffbffbe5-8905-4f51-b2ed-4717049de782
TenantId : 76440dfb-c97c-4fee-8f6c-dff8ddbe816f
een abonnement Updates
Parameters
Hiermee wordt u gevraagd om bevestiging voordat u de cmdlet uitvoert.
| Type: | SwitchParameter |
| Aliases: | cf |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
De referenties, het account, de tenant en het abonnement dat wordt gebruikt voor communicatie met Azure.
| Type: | PSObject |
| Aliases: | AzureRMContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Bovenliggende delegatedProvider-abonnements-id.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Abonnementsnaam.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Externe referentie-id.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Volledig gekwalificeerde id.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Id van de aanbieding onder het bereik van een gedelegeerde provider.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Abonnementseigenaar.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Type routering van Resource Manager.
| Type: | Microsoft.Azure.PowerShell.Cmdlets.SubscriptionsAdmin.Support.ResourceManagerType |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Abonnementsstatus.
| Type: | Microsoft.Azure.PowerShell.Cmdlets.SubscriptionsAdmin.Support.SubscriptionState |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Eigenschappen van abonnementsobject. Zie de sectie NOTES voor de eigenschappen SUBSCRIPTIONDEFINITION en maak een hash-tabel om deze samen te stellen.
| Type: | Microsoft.Azure.PowerShell.Cmdlets.SubscriptionsAdmin.Models.Api20151101.ISubscriptionDefinition |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Abonnementsreferenties die het Microsoft Azure-abonnement uniek identificeren. De abonnements-id maakt deel uit van de URI voor elke serviceoproep.
| Type: | String |
| Position: | Named |
| Default value: | (Get-AzContext).Subscription.Id |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Abonnements-id.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
De id van het doelabonnement.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Maptenant-id.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Hiermee wordt weergegeven wat er zou gebeuren als u de cmdlet uitvoert. De cmdlet wordt niet uitgevoerd.
| Type: | SwitchParameter |
| Aliases: | wi |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Invoerwaarden
Microsoft.Azure.PowerShell.Cmdlets.SubscriptionsAdmin.Models.Api20151101.ISubscriptionDefinition
Uitvoerwaarden
Microsoft.Azure.PowerShell.Cmdlets.SubscriptionsAdmin.Models.Api20151101.ISubscriptionDefinition
ALIASSEN
Notities
COMPLEXE PARAMETEREIGENSCHAPPEN Om de hieronder beschreven parameters te maken, maakt u een hash-tabel met de juiste eigenschappen. Voer Get-Help about_Hash_Tables uit voor informatie over hashtabellen.
SUBSCRIPTIONDEFINITION <ISubscriptionDefinition>: Eigenschappen van abonnementsobject.
[DelegatedProviderSubscriptionId <String>]: Parent DelegatedProvider subscription identifier.[DisplayName <String>]: Abonnementsnaam.[ExternalReferenceId <String>]: Externe referentie-id.[Id <String>]: Volledig gekwalificeerde id.[OfferId <String>]: Id van de aanbieding onder het bereik van een gedelegeerde provider.[Owner <String>]: Abonnementseigenaar.[RoutingResourceManagerType <ResourceManagerType?>]: Type resourcebeheer routeren.[State <SubscriptionState?>]: Abonnementsstatus.[SubscriptionId <String>]: Abonnements-id.[TenantId <String>]: Maptenant-id.