As we are stopping azure service, we have stopped and deleted the VM's and attached disks last month, which now displays no instances in cloud services, which in turn have deleted the blobs inside the storage. Do we get billed for subscription this month.Any idea?
For Azure storage account, your total cost depends on how much you store, the volume and type of storage transactions and outbound data transfers, and which data redundancy option you choose.
If you delete all your blobs in your storage account, you don't pay for storage account.
More information about Azure Storage Pricing please refer to this link.
Related
Screenshot of Settings
I have configured my azure app service app service logs settings as above image attached.
As expected the logs are stored in Azure Blob storage but it is not deleting the log files even after retention period is completed.
Any solution will be helpful
APPROACH-1:
Based on this MS Doc. It is possible with Azure blob storage lifecycle policy
Transition blobs from cool to hot immediately when they are accessed, to optimize for performance.
Transition blobs, blob versions, and blob snapshots to a cooler storage tier if these objects have not been accessed or modified for a
period of time, to optimize for cost. In this scenario, the lifecycle
management policy can move objects from hot to cool, from hot to
archive, or from cool to archive.
Delete blobs, blob versions, and blob snapshots at the end of their lifecycles.
Define rules to be run once per day at the storage account level.
Apply rules to containers or to a subset of blobs, using name prefixes or blob index
tags
as filters.
APPROACH-2: We can use Azure logic app to delete files older than X number of days from Azure Blob Storage .
For more information please refer this Microsoft Documentation: Blob rehydration from the archive tier
For Azure storage accounts the SLA for write requests is 99.9% regardless if I'm using LRS, ZRS, GRS or RA-GRS. Is there a way to increase the SLA for write requests on the storage account?
E.g is there a good way to fail over to another storage account in another region?
The accounts don't have to contain the same data. I just want to always be able to store the blobs.
Is there a good way to fail over to another storage account in another region?
Of course, Azure storage itself provides this feature, you can refer to the document Initiate a storage account failover.
Before you can perform an account failover on your storage account, make sure that your storage account is configured for geo-replication. Your storage account can use any of the following redundancy options:
Geo-redundant storage (GRS) or read-access geo-redundant storage (RA-GRS)
Geo-zone-redundant storage (GZRS) or read-access geo-zone-redundant storage (RA-GZRS)
You will see an interface like this:
Is there a way to increase the SLA for write requests on the storage account?
My suggestion is to increase the number of retries for write requests, maybe the example here can help you, you can use BlobClientOptions.
I have a query regarding my Azure instance. According to the Azure billing calculator.
For premium storage of 2 disk it costs around 39.42 USD where as for the standard storage it costs around 3.04 USD.
So currently i have azure premium storage and want to migrate to standard disk storage in order to reduce the cost. Can someone suggest me a workaround for this given the condition i don't want data loss to happen on migrating.
Add another answer to #Gaurav Mantri's. If your Disk is managed, you can take following steps.
Now, Azure can let you change your Managed Disk type easily.
Steps:Go to Azure Portal> Stop (deallocate) your VM> Go to Your Disk> Account type > Choose standard (HDD)> Click Save
Then your disk will be successfully updated!
If your Disk is unmanaged, you can take #Gaurav Mantri's answer to migrate your Disk.
You can't convert a Premium storage account to a Standard storage account.
What you will need to do is create a new storage account (or use an existing storage account) and copy the blobs holding the disks from Premium account to Standard account. You could use AzCopy or PowerShell Cmdlets to copy blobs from one storage account to another. If you're using AzCopy, you can use following command:
AzCopy /Source:https://sourceaccount.blob.core.windows.net/mycontainer1
/Dest:https://destaccount.blob.core.windows.net/mycontainer2 /SourceKey:key1 /DestKey:key2 /S
Also, please note that copying blobs across storage accounts is an asynchronous operation so please ensure that you don't delete the blobs from your Premium account until they are copied completely in target storage account.
I have create more than 3 storage account and 3 VM and 3 Clusters.
Storage Accounts:
Storage Account 1
Storage Account 2
Storage Account 3
I want to know Storage Account 1 is associated with how many VM and Clusters. How can I find it via Azure Portal ?
A storage account isn't an "owned" or "dedicated" resource. That is, even if you use a storage account for a given app or service, there's no tight coupling between the two. Any service / app that has your account credentials (or a SAS link to a specific container/queue/table within your storage account) will be able to use that storage account.
However, if you look at the settings for a given app or service (in your case, your VM or HDInsight), you can see which storage accounts it's using, with a bit of digging. For example, your VM might have both OS and Data disks, with each disk using potentially a different storage account - you'd need to enumerate the OS+attached disks to see which storage accounts are in use for each.
Further, if you create all resources at once (again, imagine creating a new VM with new storage), all of your resources will be bundled together within the same Resource Group.
You can via the new Azure portal to find the Azure Storage Account, in the storage account, you will find the Container. The vhds container used for Azure VM by default, select the vhds, you will find the VMs' VHD files there. About the HDInsight, the default Container name is the HDInsight name, so we can find the result manually.
I have azure account - I have question is that if I create two storage account then do I need to pay for both this account or If I have Azure account then I can create as many as storage account I want with single price?
Azure pricing is mainly based on the consumption. So you can create as many storage accounts as you like (up to the limit per subscription which is currently 100) but only pay for the consumption in those storage accounts.
For a storage account, you pay for 3 things:
Amount of data stored.
Number of storage transactions performed against your storage account (this basically boils down to the number of REST API calls you make against a storage account).
Outbound bandwidth consumption. This is essentially the amount of data that flows from your storage account. However you're charged only when the data flows outside of the region where your storage account is hosted.
In Azure you're billed for your Subscription. So you will get one bill but will include charges for all the resources you consumed in that subscription.
To learn about Azure Pricing in general: https://azure.microsoft.com/en-us/pricing/.
To learn about Azure Storage Pricing in general: https://azure.microsoft.com/en-us/pricing/details/storage/
To learn how storage pricing is calculated: https://blogs.msdn.microsoft.com/windowsazurestorage/2010/07/08/understanding-windows-azure-storage-billing-bandwidth-transactions-and-capacity/