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/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e
OfferId        : /delegatedProviders/default/offers/TestOffer-590376ac-c8dd-4b3d-9674-b5b8fcde095b
State          : Enabled
SubscriptionId : aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e
TenantId       : aaaabbbb-0000-cccc-1111-dddd2222eeee

DisplayName    : cnur
Id             : /subscriptions/bbbb1b1b-cc2c-dd3d-ee4e-ffffff5f5f5f
OfferId        : /delegatedProviders/default/offers/cnur4866tenantsubsvcoffer843
State          : Enabled
SubscriptionId : bbbb1b1b-cc2c-dd3d-ee4e-ffffff5f5f5f
TenantId       : aaaabbbb-0000-cccc-1111-dddd2222eeee

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.