I am trying to use the new Ratecard API using Powershell and am running into some major issues trying to get it up. I have found success in using the Usage API in Powershell using the method described in the following link, but was unable to find success using similar methods for the RateCard API:
http://blogs.technet.com/b/keithmayer/archive/2015/06/28/export-azure-subscription-usage-with-new-billing-api-and-powershell.aspx
From the documentation provided in the link below, it seems like it wouldn't take many changes to get RateCard to work: https://msdn.microsoft.com/en-us/library/azure/mt219004.aspx
The exact error I get is as follows and seems to point directly at the syntax of the query not being correct (not authentication issues, etc). I can post my code if needed...: Invoke-RestMethod : { "Message": "Invalid query expression provided. Please provide a valid query expression for the filter." } At C:\Users\eshen\Desktop\BillRate.ps1:46 char:18 + ... usageData = Invoke-RestMethod -Uri $Uri -Method Get -Headers $request ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand [Time frame] N/A [Resource] N/A