I'm trying to display the backend base-url info of an operation's API in my apim instance, i can achieve my goal with the Azure Powershell Module command:
Get-AzApiManagementPolicy -Context $mycontextvar -ApiId "myapiid" -OperationId "myoperationid" -Subscription "mysub" | Select-Xml -XPath '/policies/inbound/set-backend-service' | ForEach-Object { $_.Node."base-url" }
However, i want to display it with an azure cli command. I tried with
az apim api operation list --api-id myapiid --resource-group myrg --service-name myservname --subscription mysub
and
az apim api list --resource-group myrg --service-name myservname --subscription mysub
without results.
I should take into consideration the az policy
or the az network
commands but i don't know how to start to use them to retrieve this info and, once i saw the documentation, i don’t even know if they can help me.
'
Which Azure CLI command should i use to gather the backend base-url?