Firstly Thanks for looking into this.
I've a requirement to update the inbound policy of an API managed by Azuremanagementservice from powershell. For this I have tried accessing the API from powershell unfortunately ended up at no progress.
What I am looking for via powershell a) Access API under AzuremanagementService b) Update the inbound operation policy
Thanks
If you want to set policies by Azure PowerShell, try the code below(adding a root level inbound IP block policy for demo):
Result:
For more about
Set-AzApiManagementPolicyoperations, please see this reference doc.UPDATE
If you want to modify the policy at API level, you need to use command below to get all
ApiId:I specify the ApiID as "echo-api":
Result:
For more about set policy using PowerShell, please see here.