Quantcast
Channel: Azure Backup forum
Viewing all articles
Browse latest Browse all 2741

Cannot schedule initial offline backup due to error message about missing Azure PowerShell - even though I've installed it.

$
0
0

Opened MARS Agent to do an initial offline seeding backup.

After entering:

- folders to backup,
- schedule,
- retention (defaults),
- and then staging location, storage account, etc
tried to go to next page, and saw error message that MARS Agent could not find Azure Powershell.

Error message gave a MS website to obtain this from but it redirected to a MS page with nothing relevant.

Googled this one:

  https://docs.microsoft.com/en-au/powershell/azure/install-az-ps?view=azps-2.6.0

which instructed to:

  1. Open Windows Powershell (subsequently found it was necessary to do this as Administrator)

  2. Run: Install-Module -Name Az -AllowClobber -Scope CurrentUser (note that this is just for current user).

Website warned about "untrusted repository" messages; to which the answer should be Y to proceed.

Ran the above, but this resulted in error demanding that NuGet provider be installed first.

Did this via:

  Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force

which I assume worked (after accepting source not trusted) because returned to command prompt.

Then ran the Azure Powershell install command again, and answer Y to "untrusted repository" again.

Seemed to work but, on retry of setting up scheduling, it failed with same error. So restarted computer.

Tried to install Azure Powershell again, but this time got error about missing part of path

C:\Users\myusername\OneDrive\Documents\WindowsPowerShell\Modules\Az.Accounts\1.6.1'

(and in File Explorer, there is no WindowsPowerShell folder under OneDrive\Documents).

Thinking that the issue might be due to installing only as current user, tried:

  Install-Module -Name Az -AllowClobber -Scope AllUsers

which seemed to be running fine (flashing text in green panel at top of Windows PowerShell window).

Execution seemed to complete normally. (Just returned to command prompt with no error message).

MARS Agent was already open so tried to complete the config but got same error, so reboot.

Tried to use MARS Agent again to schedule the initial offline backup, with the same error message result, and with immense frustration at over 2 hours spent doing what probably should have taken only 15min.

Please help! :)


Viewing all articles
Browse latest Browse all 2741

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>