Set-AzsUserSubscriptionSet-AzsUserSubscription
SinopseSYNOPSIS
Cria ou atualiza a assinatura especificada.Creates or updates the specified subscription.
SYNTAXSYNTAX
UpdateExpanded (padrão)UpdateExpanded (Default)
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>]
AtualizaçãoUpdate
Set-AzsUserSubscription -SubscriptionDefinition <ISubscriptionDefinition> [-SubscriptionId <String>]
[-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRITIVODESCRIPTION
Cria ou atualiza a assinatura especificada.Creates or updates the specified subscription.
EXEMPLOSEXAMPLES
Exemplo 1Example 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
Atualiza uma assinaturaUpdates a subscription
OSPARAMETERS
-DefaultProfile-DefaultProfile
As credenciais, a conta, o locatário e a assinatura usados para comunicação com o Azure.The credentials, account, tenant, and subscription used for communication with Azure.
Type: System.Management.Automation.PSObject
Parameter Sets: (All)
Aliases: AzureRMContext, AzureCredential
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-DelegatedProviderSubscriptionId-DelegatedProviderSubscriptionId
Identificador de assinatura do DelegatedProvider pai.Parent DelegatedProvider subscription identifier.
Type: System.String
Parameter Sets: UpdateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-DisplayName-DisplayName
Nome da assinatura.Subscription name.
Type: System.String
Parameter Sets: UpdateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ExternalReferenceId-ExternalReferenceId
Identificador de referência externa.External reference identifier.
Type: System.String
Parameter Sets: UpdateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ID-Id
Identificador totalmente qualificado.Fully qualified identifier.
Type: System.String
Parameter Sets: UpdateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-OfferId-OfferId
Identificador da oferta sob o escopo de um provedor delegado.Identifier of the offer under the scope of a delegated provider.
Type: System.String
Parameter Sets: UpdateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Proprietário-Owner
Proprietário da assinatura.Subscription owner.
Type: System.String
Parameter Sets: UpdateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-RoutingResourceManagerType-RoutingResourceManagerType
Tipo de Gerenciador de recursos de roteamento.Routing resource manager type.
Type: Microsoft.Azure.PowerShell.Cmdlets.SubscriptionsAdmin.Support.ResourceManagerType
Parameter Sets: UpdateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Estado-State
Estado da assinatura.Subscription state.
Type: Microsoft.Azure.PowerShell.Cmdlets.SubscriptionsAdmin.Support.SubscriptionState
Parameter Sets: UpdateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-SubscriptionDefinition-SubscriptionDefinition
Propriedades do objeto de assinatura.Subscription object properties. Para construir, consulte a seção notas para propriedades SUBSCRIPTIONDEFINITION e crie uma tabela de hash.To construct, see NOTES section for SUBSCRIPTIONDEFINITION properties and create a hash table.
Type: Microsoft.Azure.PowerShell.Cmdlets.SubscriptionsAdmin.Models.Api20151101.ISubscriptionDefinition
Parameter Sets: Update
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-SubscriptionId-SubscriptionId
Credenciais de assinatura que identificam exclusivamente a assinatura do Microsoft Azure. A ID da assinatura forma a parte do URI para cada chamada de serviço.Subscription credentials which uniquely identify Microsoft Azure subscription.The subscription ID forms part of the URI for every service call.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: (Get-AzContext).Subscription.Id
Accept pipeline input: False
Accept wildcard characters: False
-SubscriptionId1-SubscriptionId1
Identificador de assinatura.Subscription identifier.
Type: System.String
Parameter Sets: UpdateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-TargetSubscriptionId-TargetSubscriptionId
A ID da assinatura de destino.The target subscription ID.
Type: System.String
Parameter Sets: UpdateExpanded
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Tenantid-TenantId
Identificador de locatário de diretório.Directory tenant identifier.
Type: System.String
Parameter Sets: UpdateExpanded
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Confirme-Confirm
Solicita confirmação antes de executar o cmdlet.Prompts you for confirmation before running the cmdlet.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-WhatIf-WhatIf
Mostra o que aconteceria se o cmdlet fosse executado.Shows what would happen if the cmdlet runs. O cmdlet não é executado.The cmdlet is not run.
Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParametersCommonParameters
Esse cmdlet dá suporte a parâmetros comuns:-debug,-ErrorAction,-ErrorVariable,-Informationaction,-InformationVariable,-OutVariable,-OutBuffer,-PipelineVariable,-Verbose-WarningAction e-WarningVariable.This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. Para obter mais informações, consulte about_CommonParameters.For more information, see about_CommonParameters.
SENSORESINPUTS
Microsoft. Azure. PowerShell. cmdlets. SubscriptionsAdmin. Models. Api20151101. ISubscriptionDefinitionMicrosoft.Azure.PowerShell.Cmdlets.SubscriptionsAdmin.Models.Api20151101.ISubscriptionDefinition
EXIBEOUTPUTS
Microsoft. Azure. PowerShell. cmdlets. SubscriptionsAdmin. Models. Api20151101. ISubscriptionDefinitionMicrosoft.Azure.PowerShell.Cmdlets.SubscriptionsAdmin.Models.Api20151101.ISubscriptionDefinition
ALIASESALIASES
INFORMANOTES
Propriedades de parâmetros complexas para criar os parâmetros descritos abaixo, construa uma tabela de hash contendo as propriedades adequadas.COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. Para obter informações sobre tabelas de hash, execute Get-Help about_Hash_Tables.For information on hash tables, run Get-Help about_Hash_Tables.
SUBSCRIPTIONDEFINITION
[DelegatedProviderSubscriptionId <String>]
: Identificador de assinatura do DelegatedProvider pai.[DelegatedProviderSubscriptionId <String>]
: Parent DelegatedProvider subscription identifier.[DisplayName <String>]
: Nome da assinatura.[DisplayName <String>]
: Subscription name.[ExternalReferenceId <String>]
: Identificador de referência externa.[ExternalReferenceId <String>]
: External reference identifier.[Id <String>]
: Identificador totalmente qualificado.[Id <String>]
: Fully qualified identifier.[OfferId <String>]
: Identificador da oferta sob o escopo de um provedor delegado.[OfferId <String>]
: Identifier of the offer under the scope of a delegated provider.[Owner <String>]
: Proprietário da assinatura.[Owner <String>]
: Subscription owner.[RoutingResourceManagerType <ResourceManagerType?>]
: Tipo de Gerenciador de recursos de roteamento.[RoutingResourceManagerType <ResourceManagerType?>]
: Routing resource manager type.[State <SubscriptionState?>]
: Estado da assinatura.[State <SubscriptionState?>]
: Subscription state.[SubscriptionId <String>]
: Identificador de assinatura.[SubscriptionId <String>]
: Subscription identifier.[TenantId <String>]
: Identificador de locatário de diretório.[TenantId <String>]
: Directory tenant identifier.