Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Olimene Oladipupo dipolimene

🎯
Focusing
View GitHub Profile
View deployPolicy.ps1
$ServiceName= $env:apimInstanceName
$ResourceGroupName = $env:resourceGroupName
$policyFile = "$PSScriptRoot\myPolicy.xml"
$apimContext = New-AzureRmApiManagementContext -ResourceGroupName $resourceGroupName -ServiceName $ServiceName
Set-AzureRmApiManagementPolicy -Context $apimContext -PolicyFilePath $policyFile -ProductId "testpolicy"