Calling Azure Resource Management REST API through Powerhsell commnad RRS feed

  • Question

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

    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.

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

    rahul mohan

    Friday, August 14, 2015 9:47 AM