question

RahulSukumar-3862 avatar image
0 Votes"
RahulSukumar-3862 asked Ivegotaproblem-8503 published

AzureOfflineBackupDiskPrep fails with Unable to import Azure module

I am attempting to do an offline backup to create a seed drive to ship to MS. I am following this guide:
https://docs.microsoft.com/en-us/azure/backup/backup-azure-backup-import-export

I get all the way to Prepare SATA drives and ship to Azure. I have a SATA drive installed on my PC (7TB). I have installed the Azure powershell module. When running azureofflinebackupdiskprep.exe s:\\share it fails right after it asks me if I want to format the specified drive with this:

Unable to import azure module .Exception :Desired module is not installed
Unable to access the azure resources of the customer subscriptionDesired module is not installed

Desired module is not installed

Warning : Disk preparation completed with errors. Please refer to the AzureOfflineBackupDiskPrep logs at location [C:\AzureOfflineBackupDiskPrep] for details

Any ideas? Thanks.

azure-backup
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I’m seeing exactly the same issue, but the 2 answers here do not work for me. The only difference is that I am trying to write to a staging disk on the same server that MABS is installed on.

AzureOfflineBackupDiskPrep.exe s:"E:\MABS Staging"

Error message:

Unable to import azure module .Exception :Desired module is not installed
Unable to access the azure resources of the customer subscriptionDesired module is not installed
Desired module is not installed

Any help would be greatly appreciated as I can’t find any other articles on this issue. Thanks.


0 Votes 0 ·
FISCHERPeter-9721 avatar image
0 Votes"
FISCHERPeter-9721 answered RahulSukumar-3862 commented

Had the same issue today.
Changing the Execution Policy as mentioned didn't solved the problem for me.

What solved the problem for me was to install the required (https://docs.microsoft.com/en-us/azure/backup/backup-azure-backup-server-import-export#prepare-sata-drives-and-ship-to-azure) Azure PowerShell in version 3.7.0, although this should not be necessary on a DPM or MABS server:
Install-Module -Name AzureRM -RequiredVersion 3.7.0 -Scope AllUsers -AllowClobber

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Success! This did it. Thank you for helping me avoid a call to MS.

0 Votes 0 ·
SadiqhAhmed-MSFT avatar image
0 Votes"
SadiqhAhmed-MSFT answered

@RahulSukumar-3862 Sorry for the inconvenience this must have caused.

Please follow the steps below:

From PowerShell as admin, run Get-ExecutionPolicy -List if Local Machine has undefined execution policy granted
Change the execution Policy for local machine to “Unrestricted” to allow script running, by running : Set-ExecutionPolicy Unrestricted

For further details about Execution Policy: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-6#short-description

Please feel free to get back to us if need further assistance in this matter.


Please do not forget to "Accept the answer" and "Up-Vote" wherever the information provided helps you to help others in the community.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.