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?
Asked
Active
Viewed 352 times
0
-
For DevOps - https://learn.microsoft.com/en-us/azure/api-management/devops-api-development-templates – Baked Inhalf Dec 01 '21 at 09:34
1 Answers
2
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

Sajeetharan
- 216,225
- 63
- 350
- 396