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.

13 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
2
votes
2 answers

Connect-IPPSSession with CertificateThumbPrint cmdlet showing sign in popup

I've set an application to be used by a script, to login on exchange online on an unattended way, following this tutorial. But when I try to login with it, I got the following outcome, there is a login sign in popup that its not supposed to…
marafado88
  • 412
  • 2
  • 9
  • 31
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
0 answers

Compliance search initialization for "task search1" failed with exception: Object reference not set to an instance of an object

I've a script to start a Search task on Content Search, of Compliance. If I use my own user account to login, I am able to run it, but if I use an unattended login through an App, like the one of App-only authentication in Exchange Online PowerShell…
marafado88
  • 412
  • 2
  • 9
  • 31
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
1
vote
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…
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
  • 13
0
votes
0 answers

Access multple tenants as Global Administrator with principal from single tenant (PowerShell 7)

My goal here is to be able to use the service principal of an Enterprise Application in source tenant to authenticate towards/connect to destination tenants as Global Administrator. In source tenant I have added an Enterprise Application. I am able…
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
  • 1
  • 3
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"= @{ …