Skip to content

[App Config] Update CLI to use Audience#33393

Open
mrm9084 wants to merge 1 commit into
Azure:devfrom
mrm9084:audincefix
Open

[App Config] Update CLI to use Audience#33393
mrm9084 wants to merge 1 commit into
Azure:devfrom
mrm9084:audincefix

Conversation

@mrm9084
Copy link
Copy Markdown
Member

@mrm9084 mrm9084 commented May 18, 2026

Related command
az appconfig

Description
When updating to the 1.8.0 version of the python sdk it will result in us breaking in all non hardcoded regions, such as Bleu.

This PR adds a check that will attempt to get the audience from the endpoint if an audience isn't provided.

Testing Guide
Get a config store in Bleu, you'll see that you can connect without providing the audience manually like you can in 1.7.2.

History Notes
Make is so the 1.8.0 release of the python sdk will not break all of our existing customers in non-public/ff/mc clouds.


This checklist is used to make sure that common guidelines for a pull request are followed.

Copilot AI review requested due to automatic review settings May 18, 2026 23:33
@azure-client-tools-bot-prd
Copy link
Copy Markdown

Validation for Azure CLI Full Test Starting...

Thanks for your contribution!

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

Hi @mrm9084,
Since the current milestone time is less than 7 days, this pr will be reviewed in the next milestone.

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

Validation for Breaking Change Starting...

Thanks for your contribution!

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented May 18, 2026

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

@github-actions
Copy link
Copy Markdown

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR prepares az appconfig for azure-appconfiguration 1.8.0 by changing AAD login auth to provide an audience when the active cloud does not define one.

Changes:

  • Bumps azure-appconfiguration dependency in setup metadata to ~=1.8.0.
  • Falls back to using the App Configuration endpoint as the token audience.
  • Updates an AAD auth live test assertion for the new audience behavior.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 3 comments.

File Description
src/azure-cli/setup.py Updates the App Configuration SDK dependency version.
src/azure-cli/azure/cli/command_modules/appconfig/_utils.py Adds endpoint fallback for App Configuration token audience selection.
src/azure-cli/azure/cli/command_modules/appconfig/tests/latest/test_appconfig_aad_auth.py Updates the expected credential audience in the live AAD auth scenario.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/azure-cli/setup.py
DEPENDENCIES = [
"antlr4-python3-runtime~=4.13.1",
'azure-appconfiguration~=1.7.2',
'azure-appconfiguration~=1.8.0',
Comment on lines +215 to +216
else:
token_audience = endpoint

# Assert that the ClientCredential was instantiated with no custom scope
cred_mock.assert_called_with(mock.ANY, None)
# Assert that the ClientCredential was instantiated with the endpoint as the token audience
@yonzhan yonzhan assigned yanzhudd and unassigned zhoxing-ms May 18, 2026
@jimmyca15
Copy link
Copy Markdown
Member

The PR title should probably also mention the sdk version update

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants