Thanks for posting your question in the Microsoft Q&A forum.
You need to create a SQL Credential on All Instances
# Load the sqlps module
import-module sqlps
# Set parameters
$sqlPath = "sqlserver:\sql\$($env:COMPUTERNAME)"
$storageAccount = "<myStorageAccount>"
$storageKey = "<myStorageAccessKey>"
$secureString = ConvertTo-SecureString $storageKey -AsPlainText -Force
$credentialName = "myCredential-$(Get-Random)"
Write-Host "Generate credential: " $credentialName
# CD to SQL Server and get instances
Set-Location $sqlPath
Get-ChildItem | ForEach-Object {
$instance = $_.Name
$credential = New-Object System.Management.Automation.PSCredential ("<storageAccountName>", $secureString)
New-SqlCredential -Name $credentialName -Identity $credential -Instance $instance
}
And next Restore Databases
Restore-SqlDatabase -ServerInstance Server/InstanceName -Database Database1 -BackupFile "PathToFile1.bak" -ReplaceDatabase
Restore-SqlDatabase -ServerInstance Server/InstanceName -Database Database2 -BackupFile "PathToFile2.bak" -ReplaceDatabase
# Repeat for other databases
You can use following article for more options
** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful **