다음을 통해 공유


Get-AzsSubscription

Gets details about particular subscription.

Syntax

Get-AzsSubscription
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzsSubscription
   -SubscriptionId <String[]>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzsSubscription
   -INPUTOBJECT \<ISubscriptionIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Description

Gets details about particular subscription.

Examples

Example 1

PS C:\> Get-AzsSubscription | fl *

DisplayName    : Test User
Id             : /subscriptions/97d84f7a-bef7-4f2d-b651-c553be472311
OfferId        : /delegatedProviders/default/offers/TestOffer-590376ac-c8dd-4b3d-9674-b5b8fcde095b
State          : Enabled
SubscriptionId : 97d84f7a-bef7-4f2d-b651-c553be472311
TenantId       : 6ca57aaf-0074-498a-9c96-2b097515e8cb

DisplayName    : cnur
Id             : /subscriptions/ed3e275b-87d1-4e94-9962-b3700287bdbc
OfferId        : /delegatedProviders/default/offers/cnur4866tenantsubsvcoffer843
State          : Enabled
SubscriptionId : ed3e275b-87d1-4e94-9962-b3700287bdbc
TenantId       : 6ca57aaf-0074-498a-9c96-2b097515e8cb

Get the list of subscriptions.

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

-InputObject

Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

Type:Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionIdentity
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-SubscriptionId

Id of the subscription.

Type:System.String[]
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.ISubscriptionIdentity

Outputs

Microsoft.Azure.PowerShell.Cmdlets.Subscription.Models.Api20151101.ISubscription

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 <ISubscriptionIdentity>: Identity Parameter

  • [DelegatedProviderId <String>]: Id of the delegated provider.
  • [Id <String>]: Resource identity path
  • [OfferName <String>]: Name of the offer.
  • [SubscriptionId <String>]: Id of the subscription.