-
Notifications
You must be signed in to change notification settings - Fork 183
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
[BUG] Remove-TestResources.ps1 script fails to run #2299
Comments
//cc: @heaths |
Please update your Az cmdlets: I can add a requirement, but it will only report an error earlier and should at least be more informative. /cc @weshaggard @benbp |
The version requirement will at least give folks an idea of what needs to happen. |
The more I think about this, I believe there was a reason why I might not have. @mikeharder didn't we have some conversation about this a while back before you made changes to try to load newer Az modules from outside the Whatever the case, I wonder if we actually just want to take a dependency on an |
For DevOps we have some helpers for using the cached Az modules or installing as needed, see https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/scripts/Import-AzModules.ps1. If we need a newer version we should update the version in that script. |
This runs as a separate task earlier in the pipeline, right? As long as modules can still be resolved via But updating only that script isn't enough. Humans don't run that script. So the |
Currently we load Az 5.7.0, which depends on Az.KeyVault 3.4.1 which includes get-module -list Az.KeyVault |
Pretty sure this was addressed with this PR: #2306 Please reactivate if the issue continues. |
Describe the bug
Remove-TestResources.ps1 script fails to run and cleanup test resources.
Expected behavior
The script runs successfully
Actual behavior (include Exception or Stack Trace)
The script fails to run because it calls the function
Get-PurgeableGroupResources
which calls the missing functionGet-AzKeyVaultManagedHsm
To Reproduce
Get-PurgeableGroupResources: C:\azure-sdk-for-net\eng\common\TestResources\Remove-TestResources.ps1:220
Line |
220 | $purgeableResources = Get-PurgeableGroupResources $ResourceGroupName
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| The term 'Get-AzKeyVaultManagedHsm' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name,
| or if a path was included, verify that the path is correct and try again.
The text was updated successfully, but these errors were encountered: