azure billing rate card api returns noting - azure

I am trying to call the Azure billing rate card api. The call is happening successfully after the authentication because the status code is OK. But though I have a vm in the corresponding resource group and subscription, always getting response as:
{"value":[]}
Same is happening in case of azure billing usage api. I had seen one question asked for billing usage api but I have tried all the options mentioned like keep the duration for 3 months, don’t keep future date etc, yet there is no response”:
{"value":[],
nextLink:”https://….”}
Please let me know the issue could be abd because of which both rate card and usage api are not returning right data.
Thanks

You were right, I had the same problem and i resolved it on giving 'reader' persmission on my servie account in my subscription .
Thx a lot !

Related

Google Directions API billing

I am implementing an Android app and I want to use the Directions API but I get this error when I try the HTTP GET Request:
{
"error_message" : "You must enable Billing on the Google Cloud Project at https://console.cloud.google.com/project/_/billing/enable Learn more at https://developers.google.com/maps/gmp-get-started",
"routes" : [],
"status" : "REQUEST_DENIED"
}
I know I have to enable billing, what I want to know is the limits. I am doing this app for student purposes so this app won't be used by any users but me. I wanna know If it's safe to put my credit card if there is a limit that you can use it for free. I know there is a free trial but after that any request, even one will cost me money??
Thank you.
If you are using the free GCP tier, the free trial ends when you use all of your credit, or after 3 months, whichever happens first.
At that time, the following conditions apply:
You must upgrade to a paid account to continue using Google Cloud.
All resources you created during the trial are stopped.
Any data you stored in Compute Engine is lost.
Your account enters a 30-day grace period, during which you can recover resources and data you stored in any Google Cloud services during the trial period.
You might receive a message stating that your account has been canceled, which only indicates that your account has been suspended to prevent charges.
If you want to manage your expenses you may set up budget alerts https://cloud.google.com/billing/docs/how-to/budgets#create-budget also you can set up capping usage for it https://cloud.google.com/apis/docs/capping-api-usage

Not able to get Azure Billing Account Id

I need to get Usage Details at Billing Account Scope for that firstly I used this API but It returns an empty value. I used the Bearer Access token for hitting this API.Is anything other than this am I missed?
Postman Request attached as screenshot
I believe you're using the wrong API. To get Billing info you must provide billing account name:
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}?api-version=2019-10-01-preview
https://learn.microsoft.com/en-us/rest/api/billing/2019-10-01-preview/billingaccounts/get
PS: you can use the "try it" and test if it will return the information you need.
You can also query usage API and use one of the available dimensions to get cost related info:
POST https://management.azure.com/{scope}/providers/Microsoft.CostManagement/query?api-version=2019-11-01
https://learn.microsoft.com/en-us/rest/api/cost-management/query/usage
This api will return a value if account belongs to Modern billing

How updates in Azure AD Graph API or Microsoft Graph API are released

I am using Azure AD Graph API and Microsoft Graph API to communicate the Azure Active Directory . My code parses response received from API and compares error message in some specific error scenarios . Recently I observed one my scenario was failing due to change in response message from the API. I am just curios how these changes are pushed by Microsoft . Are customers notified for these changes ? Are changes released region wise or customer wise ? My code is being used by mates in other geographic reason also , they have not reported any failure till now.
For Example. Previously Error message for expired password was "Forced Password Change" now message is "Password is expired"
Are customers notified for changes ?
Once the service update is applied by Microsoft you will receive a notification if the update was successful or if it was not able to be applied. When any maintenance plan to happen all the partners and user receives notification about that. You could find here
Are changes released region wise or customer wise ?
Usually changes made on regionally. But sometimes data center wise also. But its very rare pointing to specific customer. Some small enhancement take place (Like yours) that's impact less on application and partner as well. In that case you may not receive any notification for that. Other then you would definitely receive mail concerning the issue. For more details you could take look on service life cycle policy

Set trial date on stripe dashboard only refer to plans not create them in my app using stripe

Not sure if the title makes sense, I will say this question is very similar to the one I posted yesterday but no response on seen here. I have a user sign up and select a plan, once they are set to said plan there is a trial day limit set using the stripe dashboard. I am not creating the subscriptions via the API. Once the day 30 days are up, how can I tell? Only way I can think of telling is checking if their account is older than 30 days and doesn't have a stripe token/last 4 numbers of their CC. There has to be a better way that is more secure and prevents them from canceling their card and still being able to use the service. I know there is no code in this post and should be, but the only code I think is relevant is in the linked post you should check out.
I should add, where should I put this code in my routes? And I am using node.js, express, swig, and stripe.
What you are looking for is Stripe Events. When an action happens on your account, Stripe issues an "event". You should set up a webhook in your dashboard, and an endpoint on your site or app to capture Stripe Events and process the data that is sent.
Stripe issues two perfect events for what you need: customer.subscription.trial_will_end which fires three days before the trial ends , and customer.subscription.updated which fires in multiple cases, including when the status is changed from trialing to active.
Read through the Stripe docs here to learn more.

Braintree how do I change the subscription lifecycle period?

I am new to braintree and I am implementing a braintree payment gateway for my nodeJs app. I have few concerns when it come to application testing.
How can I change the period of one billing cycle. Currently its limited to minimum of 1 month. If it is not changeable what is the workaround for testing multiple billing cycle transactions ??
PS: I did refer to this how-can-i-change-subscription-period-on-braintree but a valid answer can not be found.
My next question is related to the webhooks in Braintree. When a webhook is triggered for successful charge for subscription it returns a Subscription object which a transaction array which includes all the transactions for that subscription. Is there a way to filter out the data for the transaction which the webhook was triggered for ? It says the array is sorted. Does that mean that 0th position of the transaction array is the last transaction made ??
Braintree Subscription object reference
Since the test environment does not let us change the billing cycle time I have to wait a month to test this. And if there is a better way to do handle this please advice me on it.
Full disclosure: I work at Braintree. If you have any further questions, feel free to contact support.
It’s not possible to create a subscription billing period shorter than a month in sandbox or production. The previous answer linked in your question — creating a subscription with a 1-day trial period — is a good way to test subscription billing transactions.
The array of transactions inside a subscription object is sorted by creation date with most recent first, so the first transaction within a subscription returned in a webhook notification will be the transaction that triggered the webhook.
You can also take a look at our webhooks testing page for examples of how to generate sample webhook notifications.

Resources