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

Connect-AzAccount breaking change between 6.1-ubuntu.22.04 and 6.2.1-ubuntu.22.04 #95

Open
bugged84 opened this issue Jul 30, 2024 · 1 comment

Comments

@bugged84
Copy link

Using the Run an Azure Script step template with a powershell script works with octopusdeploy/worker-tools:6.1-ubuntu.22.04 container image, but not with octopusdeploy/worker-tools:6.2.1-ubuntu.22.04 container image.

image

@kengibous
Copy link

This occurs when using OIDC

Setting Proxy Environment Variables 
Name                           Value 
----                           ----- 
PSVersion                      7.4.1 
PSEdition                      Core 
GitCommitId                    7.4.1 
OS                             Ubuntu 22.04.4 LTS 
Platform                       Unix 
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…} 
PSRemotingProtocolVersion      2.3 
SerializationVersion           1.1.0.1 
WSManStackVersion              3.0 
PowerShell Environment Information: 
  OperatingSystem: Unix 5.15.0.10[60](<redacted>) 
  OsBitVersion: x64 
  Is64BitProcess: True 
  CurrentDirectory: /etc/octopus/Work/h0svyZvkRUS5CZu5akQSyg 
  CurrentLocation: /etc/octopus/Work/h0svyZvkRUS5CZu5akQSyg 
  TempDirectory: /tmp/ 
  HostProcess: pwsh (15) 
Initializing ConditionalAssemblyContext. PSEdition is [Core]. PSVersion is [7.4.1]. 
Initializing ConditionalAssemblyProvider. AssemblyRootPath is [/usr/local/share/powershell/Modules/Az.Accounts/2.16.0/StartupScripts/../lib]. 
Registering Az shared AssemblyLoadContext. 
AssemblyLoadContext registered. 
Enabling AzureRM aliasing 
�[32;1mMode             : �[0mProcess 
�[32;1mContextDirectory : �[0mNone 
�[32;1mContextFile      : �[0mNone 
�[32;1mCacheDirectory   : �[0mNone 
�[32;1mCacheFile        : �[0mNone 
�[32;1mKeyStoreFile     : �[0mNone 
�[32;1mSettings         : �[0m{[InstallationId, [63](<redacted>)e835d5-6a01-4f9c-b424-9af5c38176f8]} 
Az Modules: Authenticating with OpenID Connect Federated Token 
Attempt 1 of 5 failed: ClientAssertionCredential authentication failed: Persistence check failed. Inspect inner exception for details 
Could not find tenant id for provided tenant domain '<redacted>'.  
Waiting for 5 seconds before retrying... 
Retrying... 
�[32;1mMode             : �[0mProcess 
�[32;1mContextDirectory : �[0mNone 
�[32;1mContextFile      : �[0mNone 
�[32;1mCacheDirectory   : �[0mNone 
�[32;1mCacheFile        : �[0mNone 
�[32;1mKeyStoreFile     : �[0mNone 
�[32;1mSettings         : �[0m{[InstallationId, 63e835d5-6a01-4f9c-b424-9af5c38176f8]} 
�[33;1mWARNING: You're using Az version 11.3.0. The latest version of Az is 12.1.0. Upgrade your Az modules using the following commands: 
  Update-PSResource Az -WhatIf    -- Simulate updating your Az modules. 
  Update-PSResource Az            -- Update your Az modules. 
There will be breaking changes from 11.3.0 to 12.1.0. Open https://go.microsoft.com/fwlink/?(<redacted>) and check the details.�[0m 
Az Modules: Authenticating with OpenID Connect Federated Token

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

No branches or pull requests

2 participants