Madhu
Madhu

Reputation: 439

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?

Upvotes: 0

Views: 581

Answers (1)

Sajeetharan
Sajeetharan

Reputation: 222582

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

Upvotes: 2

Related Questions