共用方式為


Enable-AzMarketplacePrivateStoreCollectionAllItem

從集合中刪除所有現有的供應專案,並啟用核准所有專案。

語法

Enable-AzMarketplacePrivateStoreCollectionAllItem
      -CollectionId <String>
      -PrivateStoreId <String>
      [-DefaultProfile <PSObject>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Enable-AzMarketplacePrivateStoreCollectionAllItem
      -CollectionId <String>
      -PrivateStoreInputObject <IMarketplaceIdentity>
      [-DefaultProfile <PSObject>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Enable-AzMarketplacePrivateStoreCollectionAllItem
      -InputObject <IMarketplaceIdentity>
      [-DefaultProfile <PSObject>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

從集合中刪除所有現有的供應專案,並啟用核准所有專案。

範例

範例 1:啟用集合的核准全部專案

Enable-AzMarketplacePrivateStoreCollectionAllItem -PrivateStoreId a260d38c-96cf-492d-a340-404d0c4b3ad6 -CollectionId fdb889a1-cf3e-49f0-95b8-2bb012fa0188

從集合中刪除所有現有的供應專案,並啟用核准所有專案。

參數

-CollectionId

集合標識碼

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

-Confirm

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

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

-DefaultProfile

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

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

-InputObject

Identity 參數

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

-PrivateStoreId

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

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

-PrivateStoreInputObject

Identity 參數

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

-WhatIf

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

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

輸入

IMarketplaceIdentity

輸出

ICollection