3,060 questions
3 votes
2 answers
96 views
In Powershell, error when calling Azure Log Analytics query containing 'extend'
With the below KQL query, I'm extracting accesses to Azure Key Vault secrets and keys in log analytics, by extracting name of the Key Vault resource (kv) and its accessed keys and secrets (sec) from '...
0 votes
1 answer
36 views
WebJob deployment failing "The term 'Publish-AzWebJob' is not recognized as the name of a cmdlet, function, script file, or operable program"
I have app service which hold > 10 web jobs. So far using Invoke-RestMethod -Uri $kuduApiUrl -Headers $zipHeaders -Method PUT -InFile $zipPackageFile Apparently it is deprecated. So now we tried: ...
0 votes
1 answer
62 views
Unable to fetch private endpoint's customer visible fqdn using the powershell script
I have the resoruces in the resource group with the virtual network integrated, public network access disabled and having private endpoints connectivity. I'm trying to fetch the customer visible DNS (...
0 votes
1 answer
284 views
How to check Microsoft API version for Powershell related codes?
My organisation got an email from Microsoft recently: Azure SQL Database 2014-04-01 APIs will be retired on 31 October 2025 You’re receiving this email because you use Azure SQL Database APIs. To ...
0 votes
1 answer
131 views
Azure ApplicationAccessPolicy not blocking access for certain users in Microsoft Graph API (application permission)
I am using an ApplicationAccessPolicy in Exchange Online to restrict an Azure AD application’s access to only one specific mailbox (my personal account). The goal is for the application to only access ...
0 votes
0 answers
93 views
Azure DevOps: $(MyTask.Succeeded) returns false even when task is skipped — how to reliably detect task status?
I’m using Azure DevOps pipelines and trying to determine if certain steps like Docker push, Helm push, or GitHub tagging were successful. I'm using the .Succeeded property of previous tasks to ...
1 vote
2 answers
366 views
Has there been a recent change to Invoke-Sqlcmd that break it, and if so what's the fix?
I have a script that runs in an Azure DevOps pipeline that was working up until this morning (18/6/2025). I previous had to upgrade a MS Graph Access token breaking change here The Azure DevOps ...
0 votes
2 answers
65 views
Bug with Azure Powershell command New-AzActivityLogAlert
I have the following code # Variables $task3storageAccountName = "testRG" $actionGroupName = "Storage Admins" $actionGroupShortName = "SA Admins" $notificationName = &...
1 vote
1 answer
114 views
How can I more simply update an AzActivityLogAlert ActionGroup?
I'm using a PaaS system that comes preconfigured on Azure with a large number of alerts. I want to update these alerts with an Azure Az Powershell v14 script by adding an Action Group to them, to get ...
-1 votes
1 answer
128 views
Azure container instance : why can't I create an ACI using PowerShell?
I would like to create ACI using the following command in PowerShell: New-AzContainerGroup -ResourceGroupName acr -Name benighilmohamed ` -Image alpine -OsType Linux ` -Command "echo 'Hello ...
3 votes
1 answer
3k views
Azure Devops Service Connection Access blocked to AAD Graph API for this application
I am creating an app registration and adding app roles to the app registration via AzurePowershell task via Azure Devops YAML file. This worked for months and the last time I did a successfull ...
1 vote
1 answer
88 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 ...
0 votes
1 answer
500 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 ...
1 vote
1 answer
126 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 ...
0 votes
1 answer
79 views
Azure automation runbook powershell to run Azure Data Explorer cluster data query
I have to run kusto query for my ADX cluster to get some data from Database from my Runbook. currently rest of the commands/scripts in my runbook are in Powershell, but I am not able to find ...