Questions tagged [azure-managed-disk]

45 questions
0
votes
0 answers

Azure 'list_resources' Method Lists Deleted Managed Disk

Even after a managed disk is deleted from the resource group in Azure, if you call the list_resources to list the remaining resources in that resource group, the managed disk still shows up even if you have deletion confirmation notification visible…
0
votes
1 answer

Create a snapshot of a vm through azure powershell (arm)

The VM with unmanaged disks. The following cmndlet can be used to take snapshot of a managed disk (ARM) $snapshot = New-AzureRmSnapshotConfig -SourceUri $vm.StorageProfile.OsDisk.ManagedDisk.Id -Location $location ` …
0
votes
1 answer

Azure - Create disk from a VHD blob that is larger than 4TB

I know I can create a managed disk from a Blob VHD. However, my blob VHD is 4TB large (4095GB). And then the console says: The source blob's size must be 20 MiB - 4095 GiB. Now my question is, is there a workaround that I can create the disk from…
Tony
  • 425
  • 1
  • 5
  • 12
0
votes
2 answers

Copy managed disk between subscriptions

I'm looking into how to copy VMs from one subscriptions to another. After doing some research I found a lot of great articles describing the process on how to perform a…
0
votes
1 answer

What should be azurerm_image.source_virtual_machine_id to spun linux vm on azure using terraform script?

We have created custom OS image -- managed disk and need to spun a VM using terraform script to use the custom created images we need to either specifiy the publisher,owner,version,sku or the image id if we go and check in the Azure Portal -> Image…
ksw
  • 53
  • 1
  • 3
0
votes
1 answer

Is there an ARM template which will allow us to setup a MongoDB replica set instance using Azure Managed Disk instead of regular data disks

Is there an ARM template which will allow us to setup a MongoDB replica set instance using Azure Managed Disk instead of regular data disks? Note: The following reference provides a way to setup MongoDB replica set using regular data…
Rpj
  • 5,348
  • 16
  • 62
  • 122
0
votes
1 answer

Terraform Backend in azure with managed disks

We are migrating from unmanaged to managed disks in Azure. Currently our backend.tf definition is as follows terraform { backend "azure" { storage_account_name = "foo" container_name = "foo-container" key = "foo.tfstate" } } With…
0
votes
2 answers

Creating a managed disk from snapshot in different region (Azure)

I seem to have a problem creating a managed disk from a snapshot. It appears that I can only create a disk in one region which is West US. Here is the PowerShell script I use: Get-AzureRmSubscription –SubscriptionName 'MySubscription' |…
Alex
  • 937
  • 3
  • 20
  • 44
0
votes
1 answer

Managed Disks - Delete source blob?

I have a Windows VM that was built on the old "classic" model which I would like to change to the ARM model. I have used the automated methods however this doesn't give me the control I desire (the names of all the components are messy). I have…
0
votes
1 answer

Create Azure VM using PowerShell with Managed Disks using Market Place Image

I have been scratching my head for ages and cannot find any information about this. So can someone please tell me how to create a VM using PowerShell so that the VM has managed disks without using ConvertTo-AzureRmVMManagedDisk and is based on a…
John E
  • 71
  • 1
  • 2
  • 8
0
votes
2 answers

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…
Boaz Harel
  • 71
  • 1
  • 2
0
votes
1 answer

How to create azure linux vm with managed disk using nodejs cli?

As title suggest, I want to use azure vm create ... to create a virtual machine using managed disk, however I can't see good example on how to achieve that. Ignoring the --storage-account-name parameter will random a storage account for me, which…
William Yeung
  • 10,368
  • 9
  • 36
  • 42
-1
votes
1 answer

Copy Azure Managed Image from Azure Comercial to Azure China

We have a custom Managed Image that we built from Windows VM in Azure. We need to copy that Managed Image to China and create VMs from it. Unfortunately, we are unable to connect to VMs created from copied .vhd. The steps we did: 1. Created VM in…
-2
votes
1 answer

How to get the Cost of Azure Managed Disk based on the VM Size using powershell or API?

I am looking for a PowerShell cmdlet or API, which can give me the cost of the Managed Disk as we can see from the Azure Portal
-2
votes
1 answer

How to delete Azure Managed Disk snapshots older than 7 days using Powershell?

How to delete Azure Managed Disk snapshots older than 7 days using Powershell? We take daily automated snapshots of the Managed Disks. The snapshots are named as: ['AppDisk_snapshot_AM' + "_" + (Get-Date -Format "yyyy-MM-dd")] Snaphoshots are stored…
Gabi
  • 21
  • 1
  • 6
1 2
3