Home > Blockchain >  How to add policy to Product in Azure API Management
How to add policy to Product in Azure API Management

Time:12-02

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?

CodePudding user response:

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
  • Related