Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
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 ...
sjanisz's user avatar
  • 97
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 &...
Alberto Serrano's user avatar
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-...
learner's user avatar
  • 835
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 ...
Marab's user avatar
  • 39
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 ...
WorkingProgrammer's user avatar
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 ...
Bradley's user avatar
  • 13
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 ...
Saburi's user avatar
  • 1
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 = &...
Mudit Balooja's user avatar
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 ...
Qwenton's user avatar
  • 23
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-...
trentR's user avatar
  • 13
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 ...
Mudit Balooja's user avatar
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-...
sudhir karamchand's user avatar
-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 ...
RICHARD 's user avatar
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 ...
Ross's user avatar
  • 21
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 ...
SRP's user avatar
  • 1,103

15 30 50 per page
1
2 3 4 5
413