Quantcast
Channel: Azure Management Portal forum
Viewing all articles
Browse latest Browse all 4189

Calling Azure Resource Management REST API through Powerhsell commnad

$
0
0
Hi,

We have "Invoke-RestMethod" command for invoking  REST API of azure.
It has a parameter  "-certificate" for authentication.
I followed the following link for calling "Azure Resource Management REST API".
http://blogs.technet.com/b/heyscriptingguy/archive/2014/03/17/using-the-windows-azure-rest-apis-with-powershell.aspx

But, It failed to authenticate for "Resource management REST API" and worked fine for "Azure Service Management REST API".

I figured that,
Azure Resource Management API call can only be authenticated by Registering the native client application, which will make the REST API call, in "Default" AD of Azure.
https://msdn.microsoft.com/en-us/library/azure/dn790557

I have to make call of Azure Resource Management REST API through PowerShell.
Kindly, suggest me the right command.


rahul mohan


Viewing all articles
Browse latest Browse all 4189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>