No Storage account for VM Disks in Azure - azure

According to Microsoft documentation. there are managed disks and unmanaged disks. Managed disks are something managed by microsoft. All the VHDs are stored as page blob in storage account.
Question: When I create a linux VM with additional disk I don't see storage account created in resources list. I dont see storage account created when VMs are created for both OS disk and Data disk. I really appreciate if some one answer this.
Storage account and VM Disks are 2 separate things ?

There's a Storage Account and Page Blob behind the scenes but they are kind of hidden from you. When the disks are managed, the necessary infrastructure is created and managed by Microsoft so that you don't have to worry about them.
This is the reason you don't see any Storage Account and Page Blobs in your Azure Subscription for managed disks. You will see them only when your disks are unmanaged as then you are responsible for the management of these resources.
Please see this link for a nice comparison between managed and unmanaged disks: https://learn.microsoft.com/en-us/answers/questions/3619/what-is-the-difference-between-managed-disk-and-un.html.

Related

Managed disks in Azure

I want to know restrictions in Azure Managed disks. Which is asked in Interview.
what are the restrictions for customers using managed disks in Azure
Azure Managed Disks are managed by Microsoft Azure and you don't need any storage account while created new disk. Since the storage account is managed by Azure you do not have full control of the disks that are being created that is one limitation that we have with managed disks. There are no other specific restrictions as such with managed disks. They are widely used in Azure and is highly recommended.
Adding more..
Managed disks brought new experience and features to Azure VM storage that permits better controlling the VM storage. Azure recommends using managed disks, even if the ‘Pay as you consume’ model is not adopted there. But the features and the simplicity is worth the ‘little’ difference we can see with pricing.
There is also nice practical differences summary here between managed and unmanaged disks that might come handy as you will be able to understand what is useful in various configuration needs.
Happy Learning!

Does Azure Backup include attached Disks

I am new to Azure and setting up the backup of multiple Azure VM's, all on the Location. 2 of the 3 VM's have additional data disks attached to them.
Will the Recovery Services Backup policy also back up the data on these disks or do I need to setup a separate backup policy to manage these? Thanks
Azure Backup for VMs include automatically all disks attached to the VM.
Note, there is some limitations to how quickly it can do the backup if there are multiple disks attached. See e.g. Plan your VM backup infrastructure in Azure for more infromation.
All attached data disks will be included in any VM which is enrolled into backups. Few limitations to take note of below.
There's also a private preview currently running for data disks which are 1TB+ in size, link below.
For Azure VM backup, each VM can have up to 16 data disks with each data disk being of size 1024GB or less.
Azure Backup (Private Preview) Support Disks up to 4TB
Azure Backup FAQ

Azure Managed Disks and deleting Storage Accounts

I have some questions regarding Azure Managed Disks.
To my understanding, when a VM with managed disks is created the disks are in a Storage Account found suitable by Azure. The chosen Storage Account might not even be inside the same resource group as the VM.
What happens when I try to delete a Storage Account which has VHDs of managed disks inside it?
What happens when I try to delete a Resources Group with Storage Accounts which has VHDs of managed disks?
Our flow, of dev/test, requires many Resource Groups and many Storage accounts. We need a way to both work with Managed Disks and be able to delete old Resource Groups with their Storage Account. Is this possible?
I'm posting the the response I've got from Azure support, in case this helps someone in the future:
Managed disks are a managed service provided by Azure so that customers do not have to concern themselves with certain performance considerations, such as the amount of IOPS coming into a standard storage account or how many VHDs are being stored in one. When a managed disk is created, it is stored in an Azure storage account on the backend that is not accessible by the customer. The customer never receives the name of the storage account or the disk URI of where the underlying VHD is housed. A managed disk should be created into a resource group of your choosing, however, and can be deleted just like any other resource in it. To answer your questions, I will list them out:
What happens when I try to delete a Storage Account which has VHDs of managed disks inside it?
Managed disks are not stored in storage accounts managed by customers, so this will not be a scenario a customer must consider. This is only for unmanaged disks. All of your storage accounts will only house unmanaged disks.
What happens when I try to delete a Resources Group with Storage Accounts which has VHDs of managed disks?
Managed disks will delete just as any other resource would in a resource group. When they are deleted, the underlying VHD is simply removed from the backend storage account in Azure.
Our flow, of dev/test, requires many Resource Groups and many Storage accounts. We need a way to both work with Managed Disks and be able to delete old Resource Groups with their Storage Account. Is this possible?
You can definitely make this work with managed disks, I believe. Just treat the managed disks as their own entity and don’t worry about the underlying storage accounts on the backend. No storage accounts are needed on your end to have managed disks. Managed disks were created to simplify the management of the VHDs and storage accounts for virtual machines. If the managed disk exists, know it is being housed and managed on the backend appropriately. Delete managed disks as needed with resource groups, just like any other resource.
What happens when I try to delete a Storage Account which has VHDs of
managed disks inside it?
The storage account that Azure uses to place VHDs for the managed disks is transparent to you. In fact, you can't even see it using the portal or Storage Explorer, so you would not be able to delete a storage account that has your VHDs for managed disks.
What happens when I try to delete a Resources Group with Storage
Accounts which has VHDs of managed disks?
They are removed.
We need a way to both work with Managed Disks and be able to delete
old Resource Groups with their Storage Account
Yes.

How to know Storage Account is associated with Azure VM or HDInsight Cluster

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.

Azure VM two storages

I'm using Azure VM (Ubuntu 16.04) as web server. For some reason at my resource group for VM there are two storages.
First - GRS Standart and second LRS Premium.
How to determine which storage is necessary for my web server and which I can safely delete?
You can check the storage account holding the disks (OS and Data disks) by clicking on Disks option and then clicking on individual disks. You will see the URL of the page blob holding the disk and that should tell you about the storage account.
However before deleting the other storage account, please check if it is not used for collecting diagnostics data for the VM.
Making an assumption, I believe your LRS Premium account is holding the disks and the other one is for storing diagnostics data.

Resources