Share via


Get-PartnerProductInventory

Checks the inventory for the specified product.

Syntax

Get-PartnerProductInventory
   [-CountryCode <String>]
   -ProductId <String>
   [-SkuId <String>]
   [-Variables <Hashtable>]
   [<CommonParameters>]

Description

Checks the inventory for the specified product.

Examples

Example 1

PS C:\> $variables = @{ customerId='46a62ece-10ad-42e5-b3f1-b2ed53e6fc08'; azureSubscriptionId='f5edca90-8799-44bd-ac59-64bd93285ed1'; armRegionName='uswest' }
PS C:\> Get-PartnerProductInventory -ProductId 'DZH318Z0BQ3P' -Variables $variables

Checks the inventory for the specified product.

Parameters

-CountryCode

The country ISO2 code.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ProductId

A string that identifies the product.

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

-SkuId

A string that identifies the sku.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Variables

A hashtable of inventory variables for the product.

Type:Hashtable
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

Microsoft.Store.PartnerCenter.PowerShell.Models.Products.PSInventoryItem