简体   繁体   中英

How to add policy to Product in Azure API Management

I need help with adding policy to PRODUCT in Azure APIM. Could you please let me know how we can achieve using PowerShell/Azure Cli/ Azure DevOps?

I think you are looking to 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM