Questions tagged [powershell-az-module]
35 questions
0
votes
0 answers
Getting 'get_SerializationSettings' related error on trying to run powershell Az script through .NET
I am trying to run a powershell script through ASP.NET C# code. This is the code -
Runspace runspace = RunspaceFactory.CreateRunspace();
runspace.Open();
Command cmd = new Command(filePath); //filePath is the ps1 script file
parameters.ForEach(p =>…

Abhishek Anand
- 101
- 1
- 8
0
votes
1 answer
PowerShell - Azure Site Recovery - Failover
If we want to failover Replicated VM in Azure using Azure Site Recovery.
Can we replicate VMs to a different subscription ?
Eg. When configuring ASR - Disaster recovery I gave subscription name 'ABC' for replication to happen.
At the time of…

Manvendra Bele
- 23
- 2
- 7
0
votes
1 answer
How to install AzureRM and AZ module using PowerShell 5.1?
I am trying to install Az module on my windows server 2016 via PowerShell but it is giving me the error shown in the screenshot below.
It gives same error when tried on Windows 10 server as well.
If I try to install Azure RM command still the same…

SRP
- 999
- 4
- 21
- 39
0
votes
0 answers
Publish-AzWebApp throws errors
Publish-AzWebApp throws an error when uploading the Source Code for the aplication. The code is the following:
$job = Publish-AzWebApp `
-WebApp $webApp `
-ArchivePath (Join-Path -Path $rootPath -ChildPath $archiveRelativePath)…

Garbem
- 149
- 1
- 13
0
votes
1 answer
ServerName for Get-AzSqlDatabaseLongTermRetentionPolicy and Set-AzSqlDatabaseLongTermRetentionPolicy with Azure Managed Instance
I am trying to set LTR on databases in our Managed Instances via the above listed Az commandlets. The problem I am having is determining what the ServerName parameter should be. If I try to use the ManagedInstanceName or…

Timothy Murphy
- 46
- 1
- 12