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.
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