Hi Diksha,
By checking your Azure subscription bill, you can identify if your Azure VM is Pay-as-you-go (PAYG).
Here are the steps to do that:
- Sign in to the Azure portal.
- Type
subscriptions
in the search box and then selectSubscriptions
. - In the list of subscriptions, select the subscription you want to check.
- Under
Billing
, selectInvoices
. - In the list of invoices, look for the one you want to download, then select the download symbol. This action opens the
Download Usage + Charges
window, where you can selectDownload CSV
andDownload invoice
. - The detailed usage CSV file shows your charges by billing period and daily usage. If you see charges for your VM usage, your VM is likely on a PAYG.
You might want to look into the Azure Billing APIs for billing information.
https://learn.microsoft.com/en-us/rest/api/compute/virtual-machines/get?view=rest-compute-2024-03-01
If this answers your question, please click Accept Answer and Yes if this answer was helpful. Doing so would help other community members with similar issues identify the solution. I highly appreciate your contribution to the community.