Get-AzsAcquiredPlan
Gets the specified plan acquired by a subscription consuming the offer.
Syntax
List (Default)
Get-AzsAcquiredPlan
-TargetSubscriptionId <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get
Get-AzsAcquiredPlan
-PlanAcquisitionId <String>
-TargetSubscriptionId <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
GetViaIdentity
Get-AzsAcquiredPlan
-INPUTOBJECT
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
Gets the specified plan acquired by a subscription consuming the offer.
Examples
Example 1
PS C:\> Get-AzsAcquiredPlan -TargetSubscriptionId "aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e"
AcquisitionId : 718c7f7c-4868-479a-98ce-5caaa8f158c1
AcquisitionTime : 3/12/2020 11:16:08 PM
ExternalReferenceId :
Id : /subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/providers/Microsoft.Subscriptions.Admin/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/acquiredPlan
s/718c7f7c-4868-479a-98ce-5caaa8f158c1
PlanId : /subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/providers/Microsoft.Subscriptions.Admin/plans/testplan
ProvisioningState : Succeeded
Get a collection of all acquired plans that subscription has access to.
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Parameter properties
| Type: | System.Management.Automation.PSObject |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | AzureRMContext, AzureCredential |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-InputObject
Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
Parameter properties
| Type: | Microsoft.Azure.PowerShell.Cmdlets.SubscriptionsAdmin.Models.ISubscriptionsAdminIdentity |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
GetViaIdentity
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | True |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-PlanAcquisitionId
The plan acquisition Identifier
Parameter properties
| Type: | System.String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
Get
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-SubscriptionId
Subscription credentials which uniquely identify Microsoft Azure subscription.The subscription ID forms part of the URI for every service call.
Parameter properties
| Type: | System.String[] |
| Default value: | (Get-AzContext).Subscription.Id |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
Get
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
List
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-TargetSubscriptionId
The target subscription ID.
Parameter properties
| Type: | System.String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
Get
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
List
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
Microsoft.Azure.PowerShell.Cmdlets.SubscriptionsAdmin.Models.ISubscriptionsAdminIdentity
Outputs
Microsoft.Azure.PowerShell.Cmdlets.SubscriptionsAdmin.Models.Api20151101.IPlanAcquisition
ALIASES
Get-AzsSubscriptionPlan
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.