Share via


Get-PartnerProductAvailability

Gets the availability for a specified product.

Syntax

BySku (Default)

Get-PartnerProductAvailability
    -ProductId <String>
    -SkuId <String>
    [-CountryCode <String>]
    [-Segment <String>]
    [<CommonParameters>]

ByAvailabilityId

Get-PartnerProductAvailability
    -ProductId <String>
    -SkuId <String>
    -AvailabilityId <String>
    [-CountryCode <String>]
    [<CommonParameters>]

Description

Gets the availability for a specified product.

Examples

Example 1

PS C:\> Get-PartnerProductAvailability -Product DZH318Z0BQ3Q -SkuId 0001

Gets the availability for a specified product.

Parameters

-AvailabilityId

A string that identifies the availability.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByAvailabilityId
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-CountryCode

The country ISO2 code.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ProductId

A string that identifies the product.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Segment

A string that identifies the product segment.

Parameter properties

Type:String
Default value:None
Accepted values:commercial, education, government, nonprofit
Supports wildcards:False
DontShow:False

Parameter sets

BySku
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-SkuId

A string that identifies the product Sku.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
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

None

Outputs

Microsoft.Store.PartnerCenter.PowerShell.Models.Products.PSProductAvailability