Powershell – How to get the MSOnlineBackup Cmdlets

azurepowershell

I am trying to manage the Azure Online Backup from PowerShell.

There is a set of Cmdlets called MSOnlineBackup. See technet.microsoft.com/en-us/library/dn249523.aspx.

When I try to run:

Import-Module MSOnlineBackup

I get:

The specified module 'MSOnlineBackup' was not loaded because no valid module file was found in any module directory.

On the technet page it states that it is included in 4.0.4.0, If I run:

$PSVersionTable.PSVersion

It returns:

Major: 4
Minor: 0
Build: -1
Revision: -1

I am running Windows 8.1.

As you can probably tell I am no Powershell expert.

I have also tried installed the Azure Backup Agent, but it says it needs a Server operating system.

Can anyone tell me how I can get the MSOnlineBackup module on my machine so I can start automating Windows Azure Backup?

Best Answer

I managed to get this to work using remoting.

I have the full script I used here:

http://www.gregpakes.co.uk/2013/11/how-to-setup-email-alerts-for-when-windows-azure-backup-fails/