Set-Step is not recognised in Powershell script i am using - powershell

Set-Step : The term 'Set-Step' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again.
The above is the error i am facing while running PowerShell script to generate report from grabbing data from source.
Please help me to solve this issue .

Related

The term 'The term 'C:\Users\JHest\AppData\Local\Temp\_MEI70882\Scripts\conda.exe' is not recognized as the name of a cmdlet, function, script

Everytime I open the terminal in VSCode or conda powershell I am met with the same error:
"The term 'C:\Users\JHest\AppData\Local\Temp_MEI70882\Scripts\conda.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that
the path is correct and try again."
Added all directories to PATH, unistalled Anaconda and installed again using the option "Add anaconda to path"

I'm getting error after installation of mongoDB when I go to windows powershell

The term 'mongo' is not recognized as the name of cmdlet, function, script file, or operable program. Check the spelling of the name or if the path was included, verify that the path is correct and try again

TerraformApply.jsonOutputVariablesPath : The term 'TerraformApply.jsonOutputVariablesPath' is not recognized as the name of a cmdlet, function

TerraformApply.jsonOutputVariablesPath : The term
'TerraformApply.jsonOutputVariablesPath' is not recognized as the name of a
cmdlet, function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the path is correct and try again.
I'm trying to output varaibles via terraform In azure devops but everytime i run pipeline
this happens . P.S i'm using self hosted agent
It's a problem with the version on the task.
I assume you are using V1.
Try using V3 for the apply.
I've opened an issue at
https://github.com/microsoft/azure-pipelines-terraform/issues/83
Edit: I messed up the versions .

powershell build-in function not recognized as the name of a cmdlet

The term 'Write-Host' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
The term 'New-Object' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again
aka:Write-Host is build-in function in powershell. how to find root cause of that issue?
Update
The same script works while executed in other dev machine.
update
I have tried to set max memory of powershell for single instance to 1GB, and set max memory of powershell for single user to 100M. It still not work.
Looks like there is a limit on number shell instances that can be run by a single user. Are you hitting that limit?
Ref: https://msdn.microsoft.com/en-us/library/ee309367(VS.85).aspx
MaxShellsPerUser: The maximum number of shells per user. The default is 30.

Powershell Webjob fails to run

I have created a Powershell Webjob for use in the Azure Logic App. The code is trying to generate a signed URI so the end user can download the file when its available. To do that I created a simple Powershell Webjob.
New-AzureStorageContext : The term 'New-AzureStorageContext' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
CommandNotFoundException New-AzureStorageBlobSASToken : The term 'New-AzureStorageBlobSASToken' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
I know these are part of the Azure Powershell. But is there an alternative for them to run? Or would I need to resolve to a separate console application?
After a lot of google searching, I found that Azure Powershell jobs do not support Azure commands. They have a plan to allow for that, but currently you cannot run Azure PowerShell Jobs on WebApps Webjob.