【问题标题】:How to add policy to Product in Azure API Management如何在 Azure API 管理中向产品添加策略
【发布时间】:2022-01-07 15:52:19
【问题描述】:

我在向 Azure APIM 中的 PRODUCT 添加策略方面需要帮助。 您能否告诉我如何使用 PowerShell/Azure Cli/Azure DevOps 实现?

【问题讨论】:

标签: azure azure-api-management apim


【解决方案1】:

我想你正在寻找Set a product-scope policy

PS C:\>$apimContext = New-AzApiManagementContext -ResourceGroupName "Api-Default-WestUS" -ServiceName "contoso"
PS C:\>Set-AzApiManagementPolicy -Context $apimContext -ProductId "0123456789" -Policy $PolicyString

【讨论】:

  • 太好了,如果这有帮助,你能投票吗
最近更新 更多