-
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
Add experimental feature to AzureCLIV2 which keeps the session running in the background in the case of ARM service connections with workload identity federation scheme #19989
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add new input keepAzSessionActive
manolerazvan
approved these changes
Jun 12, 2024
…soft/azure-pipelines-tasks into users/ggurgul/azclisession
onetocny
reviewed
Jun 12, 2024
onetocny
reviewed
Jun 12, 2024
onetocny
reviewed
Jun 12, 2024
onetocny
approved these changes
Jun 12, 2024
starkmsu
approved these changes
Jun 12, 2024
/azp run |
Azure Pipelines failed to run 3 pipeline(s). |
/azp run |
Azure Pipelines failed to run 3 pipeline(s). |
Does a similar option exist for AzurePowerShell@5, or is it planned? |
@tobimax This is AzureCLI@2 and experimental only. We hope address this in a different way but have no timelime. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Task name: AzureCLIV2
Description: Today, any attempts made to get the access token for a different resource than originally will fail with the Entra error
AADSTS700024
after the IdToken expires, which is after 10 minutes. The same happens 60 minutes after the issuance date of the original access token, when it expires, and we cannot refresh. This change is a tactical solution to this problem that is to be used untilaz-cli
supports this internally. This is an EXPERIMENTAL feature which means we provide no guarantees and no support for it. That said, it should work well for 99.9% of the cases. Please note that this feature can be removed at any point in time, particularly whenaz-cli
delivers the long-term solution to this problem.To activate the feature, provide a new input called
keepAzSessionActive
and set it totrue
. This change is no-op if you don't provide this input.Documentation changes required: Y
Added unit tests: N
Attached related issue: N
Checklist:
Before
After