access to azure invoices from API - api

Is there any way (API) to access my azure invoce information from an application that is not running in azure?
I would like to get this information and add it to my ERP automatically every month.
Thank you
Bye

As mentioned by Andrew, you can use the ratecard and the usage API. If you just want to access the invoice as PDF, you can use the new (since April 2017) invoice API. This API does currently not work for enterprise agreements (but it's planned)
The invoice API can be easily accessed via Powershell (just ensure that your AzureRM module is up to date):
Login-AzureRmAccount
Get-AzureRmSubscription
Set-AzureRmContext -SubscriptionId 'YOURSUBSCRIPTIONID'
$invoice = Get-AzureRmBillingInvoice -Latest
Invoke-WebRequest -Uri $invoice.DownloadUrl -OutFile 'c:\data\LatestInvoice.pdf'
More useful resources about this:
Microsoft Azure: Billing Reader role and preview of Invoice API
CodeHollow: Azure Invoice API – download all invoices

As of today, there's no API (Billing API) to do so for regular Azure subscriptions. I believe there's one if you have an Enterprise Agreement for Azure.

Since June 25 2015 there are two billing API's available for Azure. Though in preview.
Azure Usage API – A REST API that customers and partners can use to get their usage data for an Azure subscription. As part of this new Billing API we now correlate the usage/costs by the resource tags you can now set set on your Azure resources (for example: you could assign a tag “Department abc” or “Project X” to a VM or Database in order to better track spend on a resource and charge it back to an internal group within your company). To get more details, please read the MSDN page on the Usage API. Enterprise Agreement (EA) customers can also use this API to get a more granular view into their consumption data, and to complement what they get from the EA Billing CSV.
Azure RateCard API – A REST API that customers and partners can use to get the list of the available resources they can use, along with metadata and price information about them. To get more details, please read the MSDN page on the RateCard API.
More useful resources on this:
Code samples on Github
Gain insights into your Microsoft Azure resource consumption
Scott Gu's Blog

Related

Can i get lead gen data at linked in using webhooks URL and C# likd facebook?

i have an application in linked in and have page on it and Campaign manager, i want to send leads data automatically to Microsoft Dynamics CRM without downloading the leads,i want to make this cycle dynamics.
i do not know where can i add My Webhooks URL to can send leads information to it.
If I understand your req, you have an external system (non crm) and from this system you wish to get information from crm and perform some operation in crm.
I would suggest you go with Dynamics 365 webpi.
Create Application user in Azure AD and give proper rights, Then create this user in CRM and you are good to go.
You have an user dedicated to perform Interface tasks. You do not need unnecessary webhooks or other technologies.
https://www.dynamicsforcrm.com/using-postman-with-dyanmics-365-web-api/
https://community.dynamics.com/crm/b/crminthefield/posts/setup-postman-to-use-web-api-for-dynamics-365-ce-online-#:~:text=Postman%20is%20a%20popular%20tool,to%20be%20permitted%20by%20AAD.
https://carldesouza.com/calling-the-power-apps-and-dynamics-365-web-api-from-the-postman-windows-client/
https://medium.com/capgemini-microsoft-team/dynamics-365-application-users-no-additional-license-required-and-no-limit-on-quantity-4bdc49f8ce2d

How to purchase more licences for a Microsoft Subscription via the API

I am attempting to automatically add a Power BI Pro Licence to Office account in the domain that i manage and i am getting stuck when i Don't have enough Licences to assign another
I can do the 'Assigning' part using https://graph.microsoft.com/v1.0/users/{id}/assignLicense which works until there aren't any spare licences, where it returns: "Subscription with SKU {id} does not have any available licenses."
To make this a fully automated process, i need to:
Automatically purchase a new Power BI Licence.
Assign that Licence to a user.
I cannot identity an API endpoint which allows me to do step 1.
Microsoft Graph, nor any other Microsoft API, supports purchasing O365 licenses. That is done through their Microsoft rep (if they have one) or through the Admin Portal directly.

Permissions over an App

I'm new to Xero API's and I'm trying to understand a thing.
In my Company we currently have various different “organisations” within Xero, and this number will be growing in the near future.
We also have a 3rd party web application we use for technical and management data – to which we now would like to add financial data, mostly in the form of exported Xero reports.
We had been looking at the API functionality – however as I understand it Xero is unable to grant a subset of permissions to API calls – i.e. anyone with API access would have the same level of access a standard user – so aside from being able to pull the reports we require, they would also have access to all other data, such as transactional data, account numbers, creation and deletion of invoices etc. etc. Please can you confirm whether this would be the case?
In short terms: we need to restrict the API calls to the reports only, is this possible?
If not, does Xero have a functionality where reports can be automatically exported to an external location – such as a cloud service or an FTP site or similar?
Many thanks in advance
You're correct. Once you connect an app to the API it has access to all the accounting endpoints. Payroll endpoints are the only ones that require additional scopes.
And no, unfortunately there's no way to schedule report exports either. Sorry!

Creating a survey via the API with a Basic or Select account

Under "Scopes" the API documentation says "...the Create/Modify Surveys scope is available to Free (Basic) plans", but later contradicts that in the table showing "Platinum/Enterprise" as the minimum plan for the Create/Modify Surveys scope.
I am developing an application for a client that I believe has a Platinum account. However, I myself only have a Basic account and am reluctant to invest in a Platinum account for this small development project.
The client requires the creation a tool that generates surveys via the API, which seems pretty straightforward, except that I am unable to do so with my account. Is there some way my client can allow my account to access a development app on their account so I can test survey creation? Or could I do so myself with a Basic or Select account?
The Create/Modify Surveys scope will be moved down to the SELECT plan. Also, we will be providing developers time-limited full access to all the endpoints (except feature endpoints like benchmarks which requires the user to have bought the benchmark) when accessing their own account.
This should be available within a week or two. Check back at your app and the docs at https://developer.surveymonkey.com/ soon to see when the changes have been released.
Let us know if you have any more questions!

https://bigquery.cloud.google.com/ not connected. retrying

I am trying to work out query access to the Google Analytics API. I am not a developer and so progressing via the developer route is currently not an option (notes - https://developers.google.com/analytics/devguides/reporting/core/v3/coreDevguide).
I have been looking at setting up with BigQuery, but am struggling to check that I can query in the web interface because it will not load for me.
I am logged in with the account that I am using to access our company URL (I can access this perfectly well using the GA interface).
I can also query the http://ga-dev-tools.appspot.com/explorer/ interface successfully.
What am I doing wrong? Do I need to go the whole hog and set up the bigquery billing (I am hesitant to do this since I want to prove the concept first).
Regards
Tristan
If you cannot access https://bigquery.cloud.google.com/, then I would work with your system administrator to verify that you have network connectivity to that web site.
If you can access the BigQuery UI, then you can follow the Sign Up for BigQuery instructions to enable the UI for you. You do not need to sign up for billing to run a few queries over the public sample tables, but you do need to sign up for billing if you want to load your own data into the system and to significantly increase your query quota limits.
As to BigQuery integration with Google Analytics Premium (see the blog post for background on this feature), you need to request this integration through Google Analytics Premium. Please contact your Google Analytics Premium customer support.