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.

16 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
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…
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…
2
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…
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…
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…
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…
1
vote
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
  • 15
  • 1
  • 4
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
  • 343
0
votes
0 answers

Azure Key Vault - Cannot get the access policies information by Azure PowerShell

I’m working on enabling Azure Key Vault backup. I need to gather secrets, keys, certificates, and access policies, then save them to a storage account. However, I’ve encountered an issue where the Azure Key Vault cannot retrieve the access policies…
0
votes
1 answer

Creating a computer account in AD using PowerShell

I want to create a new computer object in an AD domain. Below is the script I am using. Can someone tell where should create credential object for SRV1? In domain controller or in computer? If credential object for SRV1 is created in domain…
0
votes
1 answer

Is it possible to change the routing preference on an existing Azure public IP address?

When creating a public IP in Azure, you can set the Routing Preference to "Microsoft Network" or "Internet Routing". But looking at an existing public IP in the Azure Portal, that property doesn't appear editable. Is there any way to edit it?…
tloflin
  • 105
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…
1
2