-
Notifications
You must be signed in to change notification settings - Fork 4k
Fixes Docker image being out-of-date #7459
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
Conversation
Tested. It fixes the issue with the container being wrong. However, there is another issue where the module seems to be missing our ADAL dll. That can be addressed in a separate issue. Here's what I ran: docker pull azuresdk/azure-powershell-core:dockerimage-fix
docker run -it azuresdk/azure-powershell-core:dockerimage-fix pwsh
PS /usr/local/share/powershell/Modules/Az.Profile> ls
Az.Profile.psd1 Microsoft.Azure.Commands.Profile.types.ps1xml Microsoft.Azure.PowerShell.Common.dll Microsoft.Azure.PowerShell.Storage.Management.dll Microsoft.WindowsAzure.Storage.dll
Az.Profile.psm1 Microsoft.Azure.Common.dll Microsoft.Azure.PowerShell.Compute.dll Microsoft.Azure.PowerShell.Strategies.dll NetCoreAssemblies
Hyak.Common.dll Microsoft.Azure.PowerShell.Aks.dll Microsoft.Azure.PowerShell.Graph.Rbac.dll Microsoft.Azure.PowerShell.Websites.dll PreloadAssemblies
Microsoft.ApplicationInsights.dll Microsoft.Azure.PowerShell.Authentication.Abstractions.dll Microsoft.Azure.PowerShell.KeyVault.dll Microsoft.Rest.ClientRuntime.Azure.Authentication.dll
Microsoft.Azure.Commands.Profile.deps.json Microsoft.Azure.PowerShell.Authentication.dll Microsoft.Azure.PowerShell.Network.dll Microsoft.Rest.ClientRuntime.Azure.dll
Microsoft.Azure.Commands.Profile.dll Microsoft.Azure.PowerShell.Authentication.ResourceManager.dll Microsoft.Azure.PowerShell.ResourceManager.dll Microsoft.Rest.ClientRuntime.dll
Microsoft.Azure.Commands.Profile.format.ps1xml Microsoft.Azure.PowerShell.Authorization.dll Microsoft.Azure.PowerShell.Storage.dll Microsoft.WindowsAzure.Storage.DataMovement.dll
PS /usr/local/share/powershell/Modules/Az.Profile> Import-Module Az.Profile
Import-Module : Could not load file or assembly 'Microsoft.IdentityModel.Clients.ActiveDirectory, Version=3.14.0.8, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.
At line:1 char:1
+ Import-Module Az.Profile
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Import-Module], FileNotFoundException
+ FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.PowerShell.Commands.ImportModuleCommand Edit: Created #7460 for the issue. |
@MiYanni |
@alexandair |
I just know that I've just pulled the newer image with the "latest" tag and that image doesn't work by default. It wants to run "pwsh-preview" because this is what we did with the RC version of PowerShell Core. Now, that image uses the stable version, but somewhere in the Dockerfile used to build the image, CMD line still says pwsh-preview. I don't have another explanation why it behaves like that. |
@alexandair Lines 1 to 6 in 7336b43
I could try updating it to |
@alexandair |
Description
Fixes: #7286
I believe the Docker image name used to be
microsoft/powershell
. But, according to their docker page, it is nowmcr.microsoft.com/powershell
. Hopefully, this fixes our Docker image.Checklist
CONTRIBUTING.md
platyPS
module