共用方式為


Remove-AzApiManagementProductFromGroup

從群組中移除產品。

語法

Remove-AzApiManagementProductFromGroup
      -Context <PsApiManagementContext>
      -GroupId <String>
      -ProductId <String>
      [-PassThru]
      [-DefaultProfile <IAzureContextContainer>]
      [<CommonParameters>]

Description

Remove-AzApiManagementProductFromGroup Cmdlet 會從現有群組中移除產品。 換句話說,此 Cmdlet 會從產品中移除群組指派。

範例

範例 1:從群組中移除產品

$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
Remove-AzApiManagementProductFromGroup -Context $apimContext -GroupId "0001" -ProductId "0123456789"

此命令會從現有的群組中移除產品。

參數

-Context

指定 PsApiManagementContext 物件。 這是必要參數。

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

-DefaultProfile

用於與 azure 通訊的認證、帳戶、租用戶和訂用帳戶。

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

-GroupId

指定群組識別碼。 這是必要參數。

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

-PassThru

指出這個 Cmdlet 如果成功或$False,則傳回 $True 值,否則傳回 。

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

-ProductId

指定產品識別碼。 這是必要參數。

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

輸入

PsApiManagementContext

String

SwitchParameter

輸出

Boolean