All Questions
Tagged with powershell azure
6,192
questions
0
votes
0
answers
29
views
az cosmosdb update --ip-range-filter parameter either from file or powershell pipe
The az cosmosdb update command that I am using has exceeded length of 8192 characters so I am receiving "The command line is too long." error, the command itself looks following:
az cosmosdb ...
0
votes
1
answer
50
views
Powershell if function calling another function
I have 2 functions when I call the second function from the first one, always returns true doesn't matter if the second function has false return:
function IsPodRunning($podName) {
Write-Output &...
0
votes
0
answers
22
views
Login-DataGatewayServiceAccount gets stuck within a script to query powerbi connections
I have got a powershell script that i will need to run as a service principal because that is how our automation scripts run.
Currently when testing the script, I can run Login-...
0
votes
0
answers
22
views
How to retrieve the output of CustomScriptExtension in Github
I'm trying to retrieve the output logs from a CustomScriptExtension in GitHub. The CustomScriptExtension executes a PowerShell script, and I want to make the output of this script visible directly in ...
0
votes
1
answer
61
views
I cannot extract .sql CREATE TABLEs for each table in my Azure SQL Database in my Azure Repo
Like the question says, how can I do that? This is the script I am currently using through the generation of a .dacpac file, but I've seen that this can be done with a PowerShell script instead of ...
0
votes
1
answer
48
views
How to report on a users sign in activity and manager using Get-MgUser
I need to write a PowerShell script to report on a users sign in activity both interactive and non-interactive and include who their line manager is as well. The end goal is to use my app registration ...
0
votes
0
answers
56
views
When trying to publish linux function app packages using Publish-AzWebApp powershell command it is not uploading
I tried publishing app multiple times using bellow command on both windows and linux, it was working fine. However, from last few days after migrating function app from dotnet 6 isolated to dotnet 8 ...
0
votes
3
answers
73
views
Getting error while trying to disable Azure DevOps pipeline using Powershell
I am trying to disable a build pipeline on Azure DevOps using Powershell but getting an error
Script:
$project = "<Project-Name>"
$organization = "<Org-Name>"
$pat = &...
2
votes
1
answer
87
views
Get-MgGroupMember by display name instead of userID
I am currently in the process of replacing an old script that used Exchange Online Powershell.
The old script was very simple and only performed 2 tasks.
Downloaded user photos that had custom ...
1
vote
1
answer
57
views
Azure DevOps REST API parent relation link to existing work item error
I am attempting to utilize the Azure DevOps REST API to create and/or update a work item in Boards to allow adding a Parent link.
So far this is unsuccessful. and its creating an error...
Invoke-...
1
vote
1
answer
81
views
How to use secrets in Azure DevOps Powershell script task
I have a secret in a Azure keyvault which basically stores 1 command az login --service-principal -u ...
I am trying to call this secret in a simple Powershell Task but when I run the pipeline every ...
0
votes
1
answer
47
views
Running PowerShell script in all Azure subscriptions
I have a reference script below from (stackoverflow) which will fetch the storage account container details. it will output the subscription, storageaccount, container name and RG name.
Connect-...
-1
votes
1
answer
56
views
Azure DevOps server audit logs [closed]
I am trying to retrieve audit logs for specific group membership changes between May 2023 and May 2024 from our Azure DevOps Server. From my research, it seems that the auditing feature available in ...
1
vote
1
answer
49
views
Using Azure System Assigned Managed Identity with Exchange Online
I have an Azure VM with the Exchange.ManageAsApp Permission, and also Entra ID Security Administrator and Compliance Administrator permissions. However, when I attempt to connect to Exchange online ...
1
vote
1
answer
47
views
How to get list of users from CSV file whose LastSignInDate column has a date that is before 90 days from current date or is empty?
I have the below PowerShell Code which returns the list of my active users along with their LastSignInDate and some of them as blank value in LastSignInDate column.
Like shown below, I want to further ...