Questions tagged [azure-powershell]

Use when the issue is related to Powershell modules Az, AzureRM, or when using powershell against Azure API.

Use when the issue is related to Powershell modules Az, AzureRM, or when using powershell against Azure API.

12 questions
3
votes
1 answer

Unable to connect to the correct Azure's subscription with Powershell

I have many tenant on Azure and I use Powershell to manage them. I'm connect with my account: Login-AzureRmConnect Account SubscriptionName TenantId Environment ------- …
Goems
  • 45
  • 1
  • 4
2
votes
1 answer

Automate disabling of Azure Web App Backup

I have about 1000 azure web apps that I've recently enabled backup for via Edit-AzureRmWebAppBackupConfiguration. I've taken the backups and now I wish to disable the backups (analogous to the reset button pictured here) I'm struggling to find a…
Ronnie Overby
  • 681
  • 2
  • 12
  • 24
1
vote
1 answer

How to query for AutoMapping on 0365 Mailbox using PowerShell

I can enable and remove AutoMapping on a user/mailbox, but how can I query for it using powershell? I've looked for the properties in Get-MailboxPermission, Get-Mailbox or Get-AzureADUser but couldn't find it. Nor any luck on Google. It seems to be…
1
vote
1 answer

Download OpenVPN client using Azure Powershell?

I am learning Azure Powershell and I want to download the VPN client files for the gateway using Powershell. As per Microsoft this can be done with New-AzureRmVpnClientConfiguration but I could not find much detail on how to download the client. Can…
shikran
  • 31
  • 1
  • 4
1
vote
1 answer

How to list all function apps and it's storage account

Is there anyway to combine both commands below where it lists all the function app together with the storage account used for it? This command gets all the function app in the subscription az functionapp list This command gets the storage account…
Fabian Raj
  • 11
  • 3
1
vote
1 answer

Unable to create custom activity log alert rule via ARM template, Powershell or automation account runbook

I am trying to create a custom activity log alert rule, but no matter which method I try, it results in errors as below or the ARM template does not create the conditions specified even though its successful and cannot figure out what I need to…
i2D
  • 21
  • 3
0
votes
1 answer

Resumable Powershell Workflow, Run On the Machine That Resumes It

Longish version: There are a hand full of stack exchange questions about writing a Powershell script that can tolerate a reboot mid script as well as Microsoft official blogs that are either missing information, wrong, or a thwarted by a bug. I need…
Elomis
  • 313
  • 1
  • 2
  • 12
0
votes
0 answers

How to filter and save only userName and password from publishMethod:msDeploy as variable for powershell

I have run the following command and it returned the following as output. I need to only select the userName and userPWD to be used in a ps script. Command used: Get-AzureRMWebAppPublishingProfile -ResourceGroupName -Name Output:
Fabian Raj
  • 11
  • 3
0
votes
0 answers

Unable to resolve Shared Gallery images shared with me by publisher despite their visibility in the UI

I am unable to find images shared with me via a Shared Image gallery. The issue is present with both the Az cmdlets and the Az CLI, though for consistency I will stick with PowerShell examples here. Note that referencing publicly available images,…
codewario
  • 548
  • 3
  • 16
  • 33
0
votes
1 answer

Attaching iso file to Azure VM

I have a Powershell script that creates a Win 10 VM, and want to mount an ISO file to install software on it. I can make the ISO available through blob store. How can i attach the ISO to the desktop in powershell?
VLCboy
  • 5
  • 2
0
votes
0 answers

Enter Azure SQL Connection String in App Settings w/ PowerShell

I've deployed an Azure Web App and Azure SQL Database using PowerShell. At the moment I have the following code with a dummy value that sets a sql connection string for my web app: $connectionStrings = @{ "sqlConnection"= @{ …
0
votes
1 answer

enablevmaccess Provisioning Failed > Re-Install the VMAccessAgent

I'm a bit of a newb with Azure VM extensions. In a VM that I've inherited the management of, there is an extension that is not properly provisioned. The VM is running Windows Server 2016 and I just installed Azure-Powershell, but most of their…