PowerShell script exchange
Post Reply
robvh
Novice
Posts: 4
Liked: never
Joined: Apr 12, 2022 11:15 am
Full Name: R. van Halteren
Contact:

How to specify the type of managed disks with Start-VBRVMRestoreToAzure

Post by robvh »

We try to restore our environment to Azure as part of the disaster recovery procedure.
We created a script to restore the systems according to our specs (different disk types, vmsize, etc.)

However I can't find how to specify the type of managed disks to create when using Start-VBRVMRestoreToAzure
When using the gui I can select (per disk) between Standard HDD, Standard SSD and Premium SSD.
When using Start-VBRVMRestoreToAzure -StorageType Managed I can't find a way on how to do this.
oleg.feoktistov
Veeam Software
Posts: 2015
Liked: 671 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: How to specify the type of managed disks with Start-VBRVMRestoreToAzure

Post by oleg.feoktistov »

Hi,

The feature to specify disk types for individual disks comes in v12 in a separate parameter.

Best regards,
Oleg
philipp.artmann
Lurker
Posts: 2
Liked: never
Joined: Sep 03, 2013 2:47 pm
Full Name: part
Contact:

Re: How to specify the type of managed disks with Start-VBRVMRestoreToAzure

Post by philipp.artmann »

Hello,

happy to see that it is implemented in V12, but I have some trouble using this while restoring our VMware VMs to Azure. Is there an easy way to restore all attached disks as "Standard SSD" as parameter in the Start-VBRVMRestoreToAzure-Command? Otherwise I need a little bit help to do this with the VBRAzureDiskConfiguration-Option. I have tried it as follows with no luck:

$AzureDisk = New-VBRAzureDiskConfiguration -DiskName VMName-Disk1 -DiskType StandardSSD -Include
Start-VBRVMRestoreToAzure ... -DiskConfigurations $AzureDisk

Kind regards,
Philipp
david.domask
Veeam Software
Posts: 2317
Liked: 554 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: How to specify the type of managed disks with Start-VBRVMRestoreToAzure

Post by david.domask »

Hi Philipp, welcome to the forums.

Can you share a bit more on the difficulties you had with the cmdlet? What did not work out for you? Was there some error or the restored VM didn't have the desired disk types?

If you can share a little more information, we can better advise.
David Domask | Product Management: Principal Analyst
philipp.artmann
Lurker
Posts: 2
Liked: never
Joined: Sep 03, 2013 2:47 pm
Full Name: part
Contact:

Re: How to specify the type of managed disks with Start-VBRVMRestoreToAzure

Post by philipp.artmann »

Hi David,

I probably didn't understand the documentation correctly and used the cmdlet incorrectly, but I don't know what I am doing wrong. There was no error and the restored VM didn't have the desired disk type.

Best regards,
Philipp
david.domask
Veeam Software
Posts: 2317
Liked: 554 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: How to specify the type of managed disks with Start-VBRVMRestoreToAzure

Post by david.domask »

Thanks for the clarification -- I recommend open a Support Case and include logs from the VBR server and let Support review the situation. Please include an example of the commands you ran which resulted in the unexpected disk types after restore.

I am not aware of any nuances with the cmdlet immediately that would cause this, but I would review the Considerations and Limitations here as depending on what you set, we may be facing some limitations with what can be done with Azure restores, and that might explain what you're seeing.
David Domask | Product Management: Principal Analyst
Post Reply

Who is online

Users browsing this forum: No registered users and 41 guests