Skip to content

Fix DefaultAzureCredential import issues in Communication Services Python quickstarts - #128761

Open
SpiliosDmk (SpiliosDimakopoulos) wants to merge 1 commit into
MicrosoftDocs:mainfrom
SpiliosDimakopoulos:fix/communication-services-defaultazurecredential-import
Open

Fix DefaultAzureCredential import issues in Communication Services Python quickstarts#128761
SpiliosDmk (SpiliosDimakopoulos) wants to merge 1 commit into
MicrosoftDocs:mainfrom
SpiliosDimakopoulos:fix/communication-services-defaultazurecredential-import

Conversation

@SpiliosDimakopoulos

Copy link
Copy Markdown

Both quickstarts raise a NameError when followed as written:

  • access-tokens/access-token-python.md: the Microsoft Entra ID
    authentication alternative calls DefaultAzureCredential() but never
    imports it anywhere on the page.
  • email/add-multiple-senders-python.md: the code imports
    AzureCliCredential but instantiates DefaultAzureCredential(), so the
    imported name is never the one actually used.

Fixed both to import DefaultAzureCredential from azure.identity,
matching the pattern used in 100+ other Python examples across this repo.

…thon quickstarts

Both quickstarts raise a NameError when followed as written:

- access-tokens/access-token-python.md: the Microsoft Entra ID
  authentication alternative calls DefaultAzureCredential() but never
  imports it anywhere on the page.
- email/add-multiple-senders-python.md: the code imports
  AzureCliCredential but instantiates DefaultAzureCredential(), so the
  imported name is never the one actually used.

Fixed both to import DefaultAzureCredential from azure.identity,
matching the pattern used in 100+ other Python examples across this
repo.
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 65ef304:

✅ Validation status: passed

File Status Preview URL Details
articles/communication-services/quickstarts/email/includes/add-multiple-senders-python.md ✅Succeeded
articles/communication-services/quickstarts/identity/includes/access-tokens/access-token-python.md ✅Succeeded

For more details, please refer to the build report.

@SpiliosDimakopoulos

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

@prmerger-automator

Copy link
Copy Markdown
Contributor

SpiliosDmk (@SpiliosDimakopoulos) : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change. yogeshmo

@prmerger-automator

Copy link
Copy Markdown
Contributor

SpiliosDmk (@SpiliosDimakopoulos) : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change. yogeshmo

@v-regandowner

Copy link
Copy Markdown
Contributor

tomaschladek

Can you review the proposed changes?

IMPORTANT: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@prmerger-automator prmerger-automator Bot added the aq-pr-triaged tracking label for the PR review team label Sep 7, 2026
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.

3 participants