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

Add Get-Command to fix missing Install-Module in AzurePowerShell #20621

Merged
merged 4 commits into from
Nov 6, 2024

Conversation

onetocny
Copy link
Contributor

@onetocny onetocny commented Nov 5, 2024

Task name: AzurePowerShellV5

Description: Clear-AzContext intermittently removes the Install-Module command from the PowerShell session. As a hot fix we are adding additional call to Get-Command command which recovers the Install-Module command. For more details see attached related issues. The feature might be disabled by setting DISABLE_INSTALL_MODULE_FIX environment variable to true.

Documentation changes required: N

Added unit tests: N

Attached related issues:

Checklist:

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

@onetocny onetocny requested review from manolerazvan and a team as code owners November 5, 2024 14:25
@onetocny onetocny changed the title Add dummy command to fix missing Install-Module in AzurePowerShell Add Get-Command to fix missing Install-Module in AzurePowerShell Nov 6, 2024
@onetocny onetocny merged commit 599eca1 into master Nov 6, 2024
11 checks passed
@onetocny onetocny deleted the users/onetocny/azpwsh_missing_install_module branch November 7, 2024 08:31
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.

2 participants