Get-AzsUserSubscription
Get a specified subscription.
Syntax
Get-AzsUserSubscription
[-SubscriptionId <String[]>]
[-Filter <String>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzsUserSubscription
-TargetSubscriptionId <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzsUserSubscription
-INPUTOBJECT \<ISubscriptionsAdminIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
Get a specified subscription.
Examples
Example 1
PS C:\> Get-AzsUserSubscription | Select-Object -First 1 | fl *
DelegatedProviderSubscriptionId : d77ed1d7-cb62-4658-a777-386a8ae523dd
DisplayName : DRPTestffbffbe5-test-test-test-test-test-test
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
Get the list of user subscriptions as operator.
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Type: | System.Management.Automation.PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Filter
OData filter parameter.
Type: | System.String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
Type: | Microsoft.Azure.PowerShell.Cmdlets.SubscriptionsAdmin.Models.ISubscriptionsAdminIdentity |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-SubscriptionId
Subscription credentials which uniquely identify Microsoft Azure subscription.The subscription ID forms part of the URI for every service call.
Type: | System.String[] |
Position: | Named |
Default value: | (Get-AzContext).Subscription.Id |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TargetSubscriptionId
The target subscription ID.
Type: | System.String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
Microsoft.Azure.PowerShell.Cmdlets.SubscriptionsAdmin.Models.ISubscriptionsAdminIdentity
Outputs
Microsoft.Azure.PowerShell.Cmdlets.SubscriptionsAdmin.Models.Api20151101.ISubscriptionDefinition
ALIASES
Notes
COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
INPUTOBJECT <ISubscriptionsAdminIdentity>: Identity Parameter
[DelegatedProvider <String>]
: DelegatedProvider identifier.[DelegatedProviderSubscriptionId <String>]
: Delegated provider subscription identifier.[Id <String>]
: Resource identity path[Location <String>]
: The AzureStack location.[ManifestName <String>]
: The manifest name.[Offer <String>]
: Name of an offer.[OfferDelegationName <String>]
: Name of a offer delegation.[OperationsStatusName <String>]
: The operation status name.[Plan <String>]
: Name of the plan.[PlanAcquisitionId <String>]
: The plan acquisition Identifier[Quota <String>]
: Name of the quota.[ResourceGroupName <String>]
: The resource group the resource is located under.[SubscriptionId <String>]
: Subscription credentials which uniquely identify Microsoft Azure subscription.The subscription ID forms part of the URI for every service call.[TargetSubscriptionId <String>]
: The target subscription ID.[Tenant <String>]
: Directory tenant name.