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

-Level Parameter Is Not Always Available When Using -SecurePersonalAccessToken Parameter with Set-VSTeamAccount #562

Open
bmkaiser opened this issue Feb 8, 2024 · 0 comments
Labels
bug when a bug has been identified or filed

Comments

@bmkaiser
Copy link

bmkaiser commented Feb 8, 2024

Steps to reproduce

When using Set-VSTeamAccount with tab completion for parameters, the -Level parameter does not auto-complete if it's not declared before the -SecurePersonalAccessToken parameter. You can still successfully execute the command regardless of order, but it seems like the -Level parameter is not part of the Secure parameter set.

Scenario 1 - Tab Completion Works as Expected
Set-VSTeamAccount -Level User -SecurePersonalAccessToken $spat -Account abc -Version AzD

Scenario 2 - Tab Completion Does Not Work as Expected
Set-VSTeamAccount -SecurePersonalAccessToken $spat -Account abc -Version AzD -Level User

Expected behavior

Tab completion works for the -Level parameter regardless of parameter order or parameter set for all Windows devices.

Actual behavior?

When using Set-VSTeamAccount with the -SecurePersonalAccessToken parameter, the -Level parameter does not auto-complete if declared after -SecurePersonalAccessToken.

On Which OS have you tried it?

Windows

What was your server version?

Azure DevOps Services

Other server version

No response

Log output of used API

Billing                     : 5.1-preview.1
Build                       : 5.1
Core                        : 5.1
DistributedTask             : 6.0-preview
DistributedTaskReleased     : 5.1
ExtensionsManagement        : 6.0-preview
Git                         : 5.1
Graph                       : 6.0-preview
HierarchyQuery              : 5.1-preview
MemberEntitlementManagement : 6.0-preview
Packaging                   : 6.0-preview
Pipelines                   : 5.1-preview
Policy                      : 5.1
Processes                   : 6.0-preview
Release                     : 5.1
ServiceEndpoints            : 5.0-preview
TaskGroups                  : 6.0-preview
Tfvc                        : 5.1
VariableGroups              : 5.1-preview.1
Version                     : AzD
Wiki                        : 6.0
WorkItemTracking            : 6.0-preview.1

Log output of $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.3.11
PSEdition                      Core
GitCommitId                    7.3.11
OS                             Microsoft Windows 10.0.22631
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
@bmkaiser bmkaiser added the bug when a bug has been identified or filed label Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug when a bug has been identified or filed
Projects
None yet
Development

No branches or pull requests

1 participant