Skip to main content

All Questions

0 votes
0 answers
405 views

Detection script for local admin computer

I'm newbie here and would like to ask for your help writing a powershell script and if possible to create a detection/remediation Powershell script for local admin computer. I have created a local ...
Carol Ceguerra's user avatar
0 votes
2 answers
460 views

Azure PowerShell Function fails to run when deployed but works locally

Azure PowerShell function works locally in VS Code successfully. However, when deployed to a function and run in Azure portal, it fails with the following error: 2023-12-14T21:05:44Z [Verbose] ...
NaveenKM's user avatar
0 votes
0 answers
80 views

Azure VM Restore in Parallel

When I try to run Parallel VM restore in PowerShell. I receive the following error message. We have functions for restoring VM, but the Parallel one does not work. Could someone please assist me with ...
Kalai 's user avatar
2 votes
2 answers
8k views

Get-AzAccessToken is failing with error "SharedTokenCacheCredential authentication unavailable"

I'm attempting to gain an access token in PowerShell, to access my Funciton App which requires Azure AD authentication. I am running the following commands: Connect-AzAccount -Subscription <...
Mike's user avatar
  • 586
1 vote
1 answer
106 views

Powershell Function App- Invoking Azure VM from Visual Studio installed in Azure VM

I have a function app written in PowerShell and when I am trying to run the function app from Visual Studio Code I am getting below error: OpenError: [VMName] Connecting to remote server VMName failed ...
SANDEEP KUMAR's user avatar
0 votes
1 answer
1k views

how to get azure durable Functions activity status inside the Orchestrator function?

I have below code For Orchestrator Function run.ps1 param($Context) $output = @() $input="test" $output1 = Invoke-DurableActivity -FunctionName 'storage_account' -Input $input -nowait Wait-...
microset's user avatar
  • 418
0 votes
1 answer
539 views

Pass Parameter to Azure Powershell Function

I'm new to the Azure environment. I want to execute an .exe file by passing blob storage as an input and output parameter below is my Json Function and PowerShell code I am not sure how to pass the ...
user3557922's user avatar
0 votes
1 answer
1k views

Powershell script won't list expired key vault certificates

I have a powershell script that is attempting to list all the expired secrets of my Azure Key Vault. Unfortunately I'm struggling to do this. This is how I retrieve sercrets. But what do I need to add ...
A.Bux's user avatar
  • 109
0 votes
1 answer
424 views

Publishing Code to Function App using Azure Powershell is failing with error

I have an Azure Function App and I am trying to publish the C# code which is a zip file to the newly created function app using the Azure Powershell Command. Here is the command I am using Publish-...
MathGeek's user avatar
  • 531
0 votes
2 answers
2k views

How to save a Azure Function output as csv file to Blob storage

I'm running a PowerShell script in Azure function (Timer Trigger) which will fetch PowerBI workspace data from Azure and it will store to Blob storage. I want the output data of the Azure function to ...
Jishnu G S's user avatar
1 vote
1 answer
1k views

Connect to Azure with an authenticated account using an accessToken in a PowerShell Azure function

Before I describe my problem, I want to clarify that I am not an Azure expert. So please excuse me if I say something wrong. I have a PowerShell Azure Function that is secured with AAD. In my script (...
Meelamri's user avatar
0 votes
2 answers
2k views

Powershell - Azure AD Application Registration - how to set ID tokens?

Background Information I have two separate PowerShell scripts. One uses an ARM template to deploy a function app, along with storage accounts etc. It runs under the context of a security principle we ...
dot's user avatar
  • 15.7k
0 votes
1 answer
564 views

Update-AzADApplication: A positional parameter cannot be found that accepts argument $True - Azure Az Powershell Module

I'm trying to update a property on my AD Application Registration in Azure. Per the documentation, I can either use Update-AzADApplication or Set-AzADApplication. I've tried both. But all the combos ...
dot's user avatar
  • 15.7k
1 vote
2 answers
3k views

Azure Functions: Powershell Push-OutputBinding format JSON

I have used below code in my azure PowerShell HTTP function. On triggering this function, I receive JSON body but not as in the same order I have provided in code. Please let me know how can I receive ...
alex devassy's user avatar
0 votes
1 answer
966 views

How to stop replay activity in azure durable functions?

I created 1 activity function and calling it from orchestrator function using powershell commandlet Invoke-DurableActivity. But when I executed the orchestrator function I'm seeing that the code ...
Krushna Kumar's user avatar

15 30 50 per page