Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CoreAz.ps1 to use the latest Resolve-AzError #20955

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

arkoppan
Copy link

The script is using Resolve-Error old commandlet from 12.4.0 but this commandlet is deprecated in newer Azure Powershell versions and is failing for Self-hosted agents with newer version of Azure Powershell. So customers are having to downgrade Azure Powershell version to make this task work.

##[error]Process 'openssl.exe' exited with code '-1073741515'. An error occurred in Initialize-AzModule
##[error]The term 'Resolve-Error' 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. ##[error]PowerShell exited with code '1'.;
..
..
System.Management.Automation.CommandNotFoundException: The term 'Resolve-Error' 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.

Task name:

Description:

Risk Assesment(Low/Medium/High):

Added unit tests: (Y/N)

Tests Performed:

Documentation changes required: (Y/N)

Attached related issue: (Y/N)

Note: For adding link to ADO WI see here.

Checklist:

  • Task version was bumped - please check instruction how to do it
  • Checked that applied changes work as expected

The script is using Resolve-Error old commandlet from 12.4.0 but this commandlet is deprecated in newer Azure Powershell versions and is failing for Self-hosted agents with newer version of Azure Powershell. So customers are having to downgrade Azure Powershell version to make this task work.


##[error]Process 'openssl.exe' exited with code '-1073741515'.
An error occurred in Initialize-AzModule
##[error]The term 'Resolve-Error' 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.
##[error]PowerShell exited with code '1'.;
..
..
System.Management.Automation.CommandNotFoundException: The term 'Resolve-Error' 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.
@arkoppan arkoppan requested review from manolerazvan and a team as code owners March 27, 2025 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant