-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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]: AzurePowerShell@5 is failing to install Az modules #19890
Comments
@RickKra Could you please install Az and Az.Accounts module externally and check if task works fine or not? |
@v-schhabra it's a complex pipeline building a production app, so I can't change it quickly and easily. Can you not fix the task? |
@RickKra I observed that now the task is working fine for you without any issues. |
@v-schhabra it only happened 4 times for us. I created the bug in case it happened more. Any way you can look into why it happened and either add retries or something to prevent future occurrences? |
@v-schhabra This issue has been happening for us. Please take a look at this - https://msdata.visualstudio.com/Database%20Systems/_build/results?buildId=127932808&view=logs&j=8515a029-22a6-5510-9e17-f5665af94c87&t=224a833e-b5fd-5143-4f10-7152cc46d42f Can this be fixed please? |
@dimpatel-MSFT Could you pls enable debug logs for the pipeline? |
Hi @dimpatel-MSFT |
The above error may be caused by the PowerShell NuGet package provider not being installed in 1ES agents. |
Closing this out as issue is mitigated. Please raise the new request incase you face any new issues. |
New issue checklist
Task name
AzurePowerShell
Task version
5.239.11
Issue Description
For these 3 builds:
We got this, before our script even had a chance to run:
##[error]Package 'Az.Resources' failed to be installed because: End of Central Directory record could not be found.
For this build:
We got this, also before our script could run:
##[error]No match was found for the specified search criteria and module name 'Az.Accounts'. Try Get-PSRepository to see all available registered module repositories.
This problem is intermittent.
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Windows Server 2019
Relevant log output
Full task logs with system.debug enabled
We don't have full task logs with system.debug enabled.
Repro steps
The text was updated successfully, but these errors were encountered: