Skip to main content

All Questions

1 vote
1 answer
76 views

Bad Request on using New-AzSqlSyncMember powershell command

I am trying to set up a Sql Sync Member to a database in another tenant using the New-AzSqlSyncMember however whenever i run it get the error message New-AzSqlSyncMember: Long running operation ...
user22067338's user avatar
0 votes
1 answer
129 views

Using update-mguser to add / update user's authentication email methods in powershell unattended script

I am attempting to use update-mguser in an unattended powershell script. I can't use New-MgUserAuthenticationEmail or update-MgUserAuthenticationEmail because they don't support application ...
dmw_code's user avatar
1 vote
1 answer
68 views

Azure PowerShell script Add-Type "Kusto.Data.dll" give load exception for System.Runtime.dll

I have to load types defined in kusto.data.dll for making Kusto query to get data from Azure Data Explorer cluster. When I use Add-Type -LiteralPath $packagesRoot, it fails with Unable to load one or ...
user9297554's user avatar
0 votes
0 answers
45 views

Invoke-SqlCmd "Login failed for user"

I am trying to run a Powershell script off of a VM using Azure to automate a report coming from a SQL DB. I am running it via a job in Logic Apps but when testing the current script I am getting a &...
Cole Mertz's user avatar
0 votes
1 answer
97 views

How to fix error 403 Forbidden when accessing partner center API to retrieve customers and users

Am currently battling error 403 forbidden in my partner center API requests and am unable to know what i might be missing or doing wrong. I have followed Microsoft documentation but still same issue. ...
Bernietechy's user avatar
0 votes
1 answer
67 views

Restore a database in Azure SQL Managed Instance to a previous point in time

I created a powershell script below and I scheduled every day with SQL Agent Job SSMS to restore database from automatic backup azure managed instance , but I have this error: The term 'Get-...
Djamel's user avatar
  • 1
0 votes
1 answer
87 views

Invoke-RestMethod : The remote server returned an error: (403) Forbidden. enable Audit for disabled mailbox from exchange online - powershell

I need to check for disabled audit mailbox in exchange online and enable it. I have registered app in azure with all the required permissions granted. I need to use powershell to perform this. This is ...
Abivanth's user avatar
0 votes
1 answer
167 views

Azure PowerShell: New-AzRoleAssignment doesn't work with ApplicationId instead of ObjectId

despite azure documentation I don;t think you can use New-AzRoleAssignment with ApplicationId inplace of of ObjectId docs: https://learn.microsoft.com/en-us/powershell/module/az.resources/new-...
lbpoundz's user avatar
0 votes
1 answer
129 views

Retrieving the azure latest IP ranges using PowerShell Script

I am trying to retrieve the latest Microsoft Azure IP ranges from the official page:https://www.microsoft.com/en-us/download/details.aspx?id=56519 using Power. My goal is to create a new JSON file ...
sg09's user avatar
  • 1
0 votes
1 answer
54 views

Atomic Red Team over Azure Pipeline

I have an elastic environment with two agents enrolled on the fleet server. One Agent is my local machine, the other agent is a windows client from azure pipeline. The goal is to run the azure ...
MaxWasHere's user avatar
0 votes
1 answer
115 views

Azure Policy Definition using Powershell

I am trying to create az azure policy definition using powershell and I am receiving the following error. New-AzPolicyDefinition_CreateExpanded : Failed to parse policy rule: 'Error converting value &...
Selvam Subramani's user avatar
0 votes
1 answer
125 views

Generating SAS account token in powershell

"I generated a token using Azure and it’s working, but I need to create a correct script in PowerShell using the key. The stringToSign I generated is different from the one provided by Azure, and ...
piter22g's user avatar
1 vote
0 answers
29 views

PowerShell "Assembly with same name is already loaded" on different Module Versions [duplicate]

I have a script that requires using two versions of the same module with conflicting assemblies: #Requires -PSEdition Core # main logic Install-Module -Name MyModule -RequiredVersion 2 -Scope ...
Daniel M.'s user avatar
  • 165
0 votes
2 answers
39 views

Powershell how to use azure vault secret value using yaml

I am new to yaml file, I am facing issues. error : "The term 'devkey' is not recognized as a name of a cmdlet, function, script file, or operable program." I have variable group called ...
JasonM's user avatar
  • 15
0 votes
2 answers
77 views

Better way to deal with multiple foreach loops in Powershell?

Is there a better way in Powershell to handle multiple levels of returned values than nested foreach loops? I need to get a list of each of our Azure Virtual Desktop session hosts for further ...
theillien's user avatar
  • 1,397

15 30 50 per page
1
2 3 4 5
94