New-AzsSubscription
Erstellen oder Aktualisieren eines Abonnements.
Syntax
New-AzsSubscription
-OfferId <String>
[-SubscriptionId <String>]
[-DisplayName <String>]
[-Id <String>]
[-State <SubscriptionState>]
[-TenantId <String>]
[-DefaultProfile <PSObject>]
[-Confirm]
[-WhatIf]
[<CommonParameters>]
Beschreibung
Erstellen oder Aktualisieren eines Abonnements.
Beispiele
Beispiel 1
PS C:\> New-AzsSubscription -OfferId '/delegatedProviders/default/offers/testoffer' -DisplayName 'testsubscription' | fl *
DisplayName : testsubscription
Id : /subscriptions/7b9d25c5-52ea-4940-8c6a-fe6749ab2e97
OfferId : /delegatedProviders/default/offers/testoffer
State : Enabled
SubscriptionId : 7b9d25c5-52ea-4940-8c6a-fe6749ab2e97
TenantId : 6ca57aaf-0074-498a-9c96-2b097515e8cb
Erstellen eines Abonnements
Parameter
Hiermit werden Sie vor der Ausführung des Cmdlets zur Bestätigung aufgefordert.
| Type: | SwitchParameter |
| Aliases: | cf |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Anmeldeinformationen, Konto, Mandant und Abonnement für die Kommunikation mit Azure
| Type: | PSObject |
| Aliases: | AzureRMContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Abonnementname.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Vollqualifizierter Bezeichner.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Bezeichner des Angebots unter dem Umfang eines delegierten Anbieters.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Abonnementstatus.
| Type: | Microsoft.Azure.PowerShell.Cmdlets.Subscription.Support.SubscriptionState |
| Position: | Named |
| Default value: | Write-Output "Enabled" |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
ID des Abonnements.
| Type: | String |
| Position: | Named |
| Default value: | $([Guid]::NewGuid().ToString()) |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Verzeichnismandantenbezeichner.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Zeigt, was geschieht, wenn das Cmdlet ausgeführt wird. Das Cmdlet wird nicht ausgeführt.
| Type: | SwitchParameter |
| Aliases: | wi |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Ausgaben
Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.Api20151101.ISubscription