共用方式為


New-AzMarketplacePrivateStoreCollectionOfferMultiContext

使用多個內容詳細數據來向上插入供應專案。

語法

New-AzMarketplacePrivateStoreCollectionOfferMultiContext
   -OfferId <String>
   -CollectionId <String>
   -PrivateStoreId <String>
   [-ETag <String>]
   [-PlansContext <IContextAndPlansDetails[]>]
   [-PropertiesOfferId <String>]
   [-DefaultProfile <PSObject>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-AzMarketplacePrivateStoreCollectionOfferMultiContext
   -OfferId <String>
   -CollectionId <String>
   -PrivateStoreInputObject <IMarketplaceIdentity>
   [-ETag <String>]
   [-PlansContext <IContextAndPlansDetails[]>]
   [-PropertiesOfferId <String>]
   [-DefaultProfile <PSObject>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-AzMarketplacePrivateStoreCollectionOfferMultiContext
   -OfferId <String>
   -CollectionInputObject <IMarketplaceIdentity>
   [-ETag <String>]
   [-PlansContext <IContextAndPlansDetails[]>]
   [-PropertiesOfferId <String>]
   [-DefaultProfile <PSObject>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-AzMarketplacePrivateStoreCollectionOfferMultiContext
   -OfferId <String>
   -InputObject <IMarketplaceIdentity>
   [-ETag <String>]
   [-PlansContext <IContextAndPlansDetails[]>]
   [-DefaultProfile <PSObject>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

使用多個內容詳細數據來向上插入供應專案。

範例

範例 1:使用多個內容向上插入供應專案

$plan1 = @{
    context = "1f58b5dd-313c-42ed-84fc-f1e351bba7fb"
    planId = "plan1"
}

$plan2 = @{
    context = "ab3de7bc-7a6e-4e9f-a34a-f6922df453e4"
    planId = "plan2"
}

$plans = @($plan1,$plan2)

New-AzMarketplacePrivateStoreCollectionOfferMultiContext -CollectionId fdb889a1-cf3e-49f0-95b8-2bb012fa01f1 -PrivateStoreId a260d38c-96cf-492d-a340-404d0c4b3ad6  -OfferId test_pmc2pc1.vm_4plans -PlansContext $plans

使用多個內容詳細數據來向上插入供應專案。

參數

-CollectionId

集合標識碼

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-CollectionInputObject

Identity 參數

類型:IMarketplaceIdentity
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-Confirm

在執行 Cmdlet 之前,提示您進行確認。

類型:SwitchParameter
別名:cf
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-DefaultProfile

DefaultProfile 參數無法運作。 如果針對不同的訂用帳戶執行 Cmdlet,請使用 SubscriptionId 參數。

類型:PSObject
別名:AzureRMContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-ETag

供應專案的 eTag。

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-InputObject

Identity 參數

類型:IMarketplaceIdentity
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-OfferId

要更新或刪除的供應項目標識碼

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-PlansContext

.

類型:IContextAndPlansDetails[]
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-PrivateStoreId

存放區標識碼 - 必須使用租用戶標識碼

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-PrivateStoreInputObject

Identity 參數

類型:IMarketplaceIdentity
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-PropertiesOfferId

包含方案的供應項目標識碼。

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-WhatIf

顯示 Cmdlet 執行時會發生什麼事。 Cmdlet 未執行。

類型:SwitchParameter
別名:wi
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

輸入

IMarketplaceIdentity

輸出

IOffer