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

All Questions

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
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
0 votes
1 answer
36 views

PATCH appRoles to existing Entra Application using PowerShell Invoke-RestMethod

I am creating BICEP resources for an automated DevOps Pipeline which automates the creation of App Registrations within Microsofts EntraID. The BICEP is using a Microsoft.Resources/deploymentScripts@...
RichioRobo's user avatar
0 votes
1 answer
93 views

Using Try/Catch for PowerShell to switch between the two cmdlet gro group member?

Using PowerShell script If Else or Try catch, how can I modify the below script, if the Group member type = Computer, then use Get-MGDevice to display the display name. $GROUP_LIST = Get-MgGroup -...
Senior Systems Engineer's user avatar
0 votes
0 answers
66 views

AzureAD module not importing/loading binaries

I recently cloned the following repo from github which has a bunch of really useful API calls and functions that allow managing devices via Intune much easier. I'm have very little experience with ...
James Clarke's user avatar
0 votes
1 answer
97 views

Add-AzStorageAccountNetworkRule "Windows PowerShell is in NonInteractive mode" error

I'm trying to run Add-AzStorageAccountNetworkRule in an ADO pipeline, and it's consistently giving me this error and nothing more even with -Debug logging: DEBUG: 9:10:14 PM - [ConfigManager] Got ...
Mark Wiemer's user avatar
0 votes
1 answer
79 views

Get-Az role assignment

help me modify this script to get all the resource groups and resources inside the subscription and there role assignment details I'm getting error doing that $tenantId = "xxxxxxx" $...
Meghana 's user avatar
1 vote
2 answers
79 views

get-policy state not returning correct display name instead returning guid

' subscriptionId = 'abc' $nonCompliantPolicies = Get-AzPolicyState -SubscriptionId $subscriptionId # Define a custom object for each non-compliant resource $customObjects = $nonCompliantPolicies | ...
Meghana 's user avatar
0 votes
1 answer
85 views

Azure Devops pipeline throwing error while running powershell script - The string is missing the terminator: "

I'm trying to register schedule for Azure automation runbook by using below PS command Register-AzureRmAutomationScheduledRunbook -AutomationAccountName $automationAccount -ResourceGroupName $...
Madhu's user avatar
  • 437
0 votes
1 answer
88 views

Powershell script never stops running

I have a PS script that runs a script in a list of VMs within some subscription and gets a state of some agents and exports them on a CSV file. The problem is that the script keeps iterating in loop ...
woodyboow's user avatar
0 votes
0 answers
55 views

Script with MSOL, AzureADPreview, and ExchangeOnlineManagement suddenly not working in EXE

I made a PowerShell script to process terminations for my company. It uses different modules such as MSOLOnline AzureADPreview and ExchangeOnlineManagement. I would then use ps2exe to convert it to an ...
Matt Dyck's user avatar
0 votes
3 answers
147 views

Convert text File to CSV Format using powershell

I want to convert the Text File to CSV File and below is the Format using Powershell and need some assistance Text File Structure: This is how the data looks in output or text file Content for ...
Venkatesh's user avatar
0 votes
2 answers
81 views

Powershell : Format output from database table to CSV File

When I try to run the powershell command below which is not giving the CSV table format instead its just a string (attached results Screenshot), I need help in table format with these results. ...
Venkatesh's user avatar
0 votes
1 answer
106 views

Get-AzureADUser with multiple pipes

Today I'm retrieving our Entra ID users using this code snippet: Get-AzureADUser -All $true -Filter "UserType eq 'Member'"| Select-Object -Property $args[0] | Where-Object {($_....
Makke_'s user avatar
  • 49
1 vote
1 answer
83 views

Response status code does not indicate success: 415 (Unsupported Media Type)

I am trying to a refresh on a single table in Azure Analysis services using PowerShell and Automation Runbook. I am passing a bearer token to the header body but while testing it I am getting below ...
user2851806's user avatar

15 30 50 per page
1
2 3 4 5
92