Skip to content

Update _profile.py to allow azure-devops plugins to use user assigned managed identities#26776

Open
JayDoubleu wants to merge 1 commit intoAzure:devfrom
JayDoubleu:patch-1
Open

Update _profile.py to allow azure-devops plugins to use user assigned managed identities#26776
JayDoubleu wants to merge 1 commit intoAzure:devfrom
JayDoubleu:patch-1

Conversation

@JayDoubleu
Copy link
Copy Markdown

resolves #26775

@azure-client-tools-bot-prd
Copy link
Copy Markdown

Hi @JayDoubleu,
Usually we only allow pull requests to be submitted to the dev branch, please double check your pull request target branch main.

@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd bot commented Jun 28, 2023

❌AzureCLI-FullTest
️✔️acr
️✔️2020-09-01-hybrid
️✔️3.10
️✔️3.9
️✔️latest
️✔️3.10
️✔️3.9
️✔️acs
️✔️2020-09-01-hybrid
️✔️3.10
️✔️3.9
️✔️latest
️✔️3.10
️✔️3.9
️✔️advisor
️✔️latest
️✔️3.10
️✔️3.9
️✔️ams
️✔️latest
️✔️3.10
️✔️3.9
️✔️apim
️✔️latest
️✔️3.10
️✔️3.9
️✔️appconfig
️✔️latest
️✔️3.10
️✔️3.9
️✔️appservice
️✔️latest
️✔️3.10
️✔️3.9
️✔️aro
️✔️latest
️✔️3.10
️✔️3.9
️✔️backup
️✔️latest
️✔️3.10
️✔️3.9
️✔️batch
️✔️latest
️✔️3.10
️✔️3.9
️✔️batchai
️✔️latest
️✔️3.10
️✔️3.9
️✔️billing
️✔️latest
️✔️3.10
️✔️3.9
️✔️botservice
️✔️latest
️✔️3.10
️✔️3.9
️✔️cdn
️✔️latest
️✔️3.10
️✔️3.9
️✔️cloud
️✔️latest
️✔️3.10
️✔️3.9
️✔️cognitiveservices
️✔️latest
️✔️3.10
️✔️3.9
️✔️config
️✔️latest
️✔️3.10
️✔️3.9
️✔️configure
️✔️latest
️✔️3.10
️✔️3.9
️✔️consumption
️✔️latest
️✔️3.10
️✔️3.9
️✔️container
️✔️latest
️✔️3.10
️✔️3.9
❌core
❌2018-03-01-hybrid
❌3.10
Type Test Case Error Message Line
Failed test_get_raw_token_msi_system_assigned E AssertionError: CLIError not raised src/azure-cli-core/azure/cli/core/tests/test_profile.py:1121
❌3.9
Type Test Case Error Message Line
Failed test_get_raw_token_msi_system_assigned E AssertionError: CLIError not raised src/azure-cli-core/azure/cli/core/tests/test_profile.py:1121
❌2019-03-01-hybrid
❌3.10
Type Test Case Error Message Line
Failed test_get_raw_token_msi_system_assigned E AssertionError: CLIError not raised src/azure-cli-core/azure/cli/core/tests/test_profile.py:1121
❌3.9
Type Test Case Error Message Line
Failed test_get_raw_token_msi_system_assigned E AssertionError: CLIError not raised src/azure-cli-core/azure/cli/core/tests/test_profile.py:1121
❌2020-09-01-hybrid
❌3.10
Type Test Case Error Message Line
Failed test_get_raw_token_msi_system_assigned E AssertionError: CLIError not raised src/azure-cli-core/azure/cli/core/tests/test_profile.py:1121
❌3.9
Type Test Case Error Message Line
Failed test_get_raw_token_msi_system_assigned E AssertionError: CLIError not raised src/azure-cli-core/azure/cli/core/tests/test_profile.py:1121
❌latest
❌3.10
Type Test Case Error Message Line
Failed test_get_raw_token_msi_system_assigned E AssertionError: CLIError not raised src/azure-cli-core/azure/cli/core/tests/test_profile.py:1121
❌3.9
Type Test Case Error Message Line
Failed test_get_raw_token_msi_system_assigned E AssertionError: CLIError not raised src/azure-cli-core/azure/cli/core/tests/test_profile.py:1121
️✔️cosmosdb
️✔️latest
️✔️3.10
️✔️3.9
️✔️databoxedge
️✔️2019-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.10
️✔️3.9
️✔️latest
️✔️3.10
️✔️3.9
️✔️dla
️✔️latest
️✔️3.10
️✔️3.9
️✔️dls
️✔️latest
️✔️3.10
️✔️3.9
️✔️dms
️✔️latest
️✔️3.10
️✔️3.9
️✔️eventgrid
️✔️latest
️✔️3.10
️✔️3.9
️✔️eventhubs
️✔️latest
️✔️3.10
️✔️3.9
️✔️feedback
️✔️latest
️✔️3.10
️✔️3.9
️✔️find
️✔️latest
️✔️3.10
️✔️3.9
️✔️hdinsight
️✔️latest
️✔️3.10
️✔️3.9
️✔️identity
️✔️latest
️✔️3.10
️✔️3.9
️✔️iot
️✔️2019-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.10
️✔️3.9
️✔️latest
️✔️3.10
️✔️3.9
️✔️keyvault
️✔️2018-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.10
️✔️3.9
️✔️latest
️✔️3.10
️✔️3.9
️✔️kusto
️✔️latest
️✔️3.10
️✔️3.9
️✔️lab
️✔️latest
️✔️3.10
️✔️3.9
️✔️managedservices
️✔️latest
️✔️3.10
️✔️3.9
️✔️maps
️✔️latest
️✔️3.10
️✔️3.9
️✔️marketplaceordering
️✔️latest
️✔️3.10
️✔️3.9
️✔️monitor
️✔️latest
️✔️3.10
️✔️3.9
️✔️mysql
️✔️latest
️✔️3.10
️✔️3.9
️✔️netappfiles
️✔️latest
️✔️3.10
️✔️3.9
️✔️network
️✔️2018-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️latest
️✔️3.10
️✔️3.9
️✔️policyinsights
️✔️latest
️✔️3.10
️✔️3.9
️✔️privatedns
️✔️latest
️✔️3.10
️✔️3.9
️✔️profile
️✔️latest
️✔️3.10
️✔️3.9
️✔️rdbms
️✔️latest
️✔️3.10
️✔️3.9
️✔️redis
️✔️latest
️✔️3.10
️✔️3.9
️✔️relay
️✔️latest
️✔️3.10
️✔️3.9
️✔️resource
️✔️2018-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️latest
️✔️3.10
️✔️3.9
️✔️role
️✔️latest
️✔️3.10
️✔️3.9
️✔️search
️✔️latest
️✔️3.10
️✔️3.9
️✔️security
️✔️latest
️✔️3.10
️✔️3.9
️✔️servicebus
️✔️latest
️✔️3.10
️✔️3.9
️✔️serviceconnector
️✔️latest
️✔️3.10
️✔️3.9
️✔️servicefabric
️✔️latest
️✔️3.10
️✔️3.9
️✔️signalr
️✔️latest
️✔️3.10
️✔️3.9
️✔️sql
️✔️latest
️✔️3.10
️✔️3.9
️✔️sqlvm
️✔️latest
️✔️3.10
️✔️3.9
️✔️storage
️✔️2018-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.10
️✔️3.9
️✔️latest
️✔️3.10
️✔️3.9
️✔️synapse
️✔️latest
️✔️3.10
️✔️3.9
️✔️telemetry
️✔️2018-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.10
️✔️3.9
️✔️latest
️✔️3.10
️✔️3.9
️✔️util
️✔️latest
️✔️3.10
️✔️3.9
️✔️vm
️✔️2018-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.10
️✔️3.9
️✔️latest
️✔️3.10
️✔️3.9

@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd bot commented Jun 28, 2023

️✔️AzureCLI-BreakingChangeTest
️✔️Non Breaking Changes

@ghost ghost added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Jun 28, 2023
@ghost
Copy link
Copy Markdown

ghost commented Jun 28, 2023

Thank you for your contribution JayDoubleu! We will review the pull request and get back to you soon.

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Jun 28, 2023

Thank you for your contribution! We will review the pull request and get back to you soon.

@JayDoubleu JayDoubleu changed the base branch from main to dev June 28, 2023 21:46
@JayDoubleu JayDoubleu changed the title Update _profile.py Update _profile.py to allow azure-devops plugins to use user assigned managed identities Jun 28, 2023
# managed identity
if tenant:
raise CLIError("Tenant shouldn't be specified for managed identity account")
tenant = False
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #26775 (comment)

Silently discarding tenant for managed identity may lead to unexpected and misleading behaviors.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great feedback, I don't have time to look into strategic solution for this but the fundamental functionality of managed identities for artifacts is broken because of this so I'm not sure who/if there's someone to look at it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

customer-reported Issues that are reported by GitHub users external to the Azure organization.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

az artifacts universal download doesn't work with user assigned managed identities

3 participants