Skip to content

Instantly share code, notes, and snippets.

View dipolimene's full-sized avatar
🎯
Focusing

Olimene Oladipupo dipolimene

🎯
Focusing
View GitHub Profile
$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"