Skip to content

Update quickstart sample app to use EntraID authentication - #1117

Merged
Maryanne Gichohi (MaryanneNjeri) merged 5 commits into
mainfrom
user/maryanne/update_quick_start_apps_auth
Jan 19, 2026
Merged

Update quickstart sample app to use EntraID authentication#1117
Maryanne Gichohi (MaryanneNjeri) merged 5 commits into
mainfrom
user/maryanne/update_quick_start_apps_auth

Conversation

@MaryanneNjeri

Copy link
Copy Markdown
Contributor

This PR

Updates our quick start sample apps to use EntraID auth instead of connection string

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates quickstart sample applications across multiple languages to use EntraID (Entra ID) authentication instead of connection string-based authentication for Azure App Configuration.

Key Changes:

  • Replaced connection string authentication with DefaultAzureCredential for EntraID authentication
  • Updated environment variable from AZURE_APPCONFIG_CONNECTION_STRING to AZURE_APPCONFIGURATION_ENDPOINT
  • Added required identity/authentication libraries across all language examples

Reviewed changes

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

Show a summary per file
File Description
examples/QuickStart/Python/QuickStartApp/QuickStartApp.py Updated to use DefaultAzureCredential with endpoint-based authentication, added azure.identity import
examples/QuickStart/JavaScript/QuickStartApp/QuickStartApp.js Updated to use DefaultAzureCredential with endpoint-based authentication, added @azure/identity import
examples/QuickStart/JavaScript/QuickStartApp/package.json Added @azure/identity dependency for authentication support
examples/QuickStart/JavaSpring/QuickStart/src/main/resources/bootstrap.properties Changed from connection-string to endpoint property for EntraID authentication
examples/QuickStart/JavaSpring/QuickStart/pom.xml Added azure-identity-spring dependency for authentication support
examples/QuickStart/DotNet/QuickStartApp/Program.cs Updated to use DefaultAzureCredential with endpoint-based authentication, includes proper error handling
examples/QuickStart/DotNet/QuickStartApp/QuickStartApp.csproj Added Azure.Identity package reference with version 1.14.0

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

Comment thread examples/QuickStart/JavaScript/QuickStartApp/package.json
import os

connection_string = os.environ.get("AZURE_APPCONFIG_CONNECTION_STRING")
endpoint = os.environ.get("AZURE_APPCONFIGURATION_ENDPOINT")

Copilot AI Dec 12, 2025

Copy link

Choose a reason for hiding this comment

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

Unlike the .NET example which includes explicit error handling for a missing environment variable, this code will silently pass None to the load function if AZURE_APPCONFIGURATION_ENDPOINT is not set. This could result in unclear error messages for users following the quickstart. Consider adding validation similar to the .NET example to provide a clear error message when the environment variable is not set.

Copilot uses AI. Check for mistakes.
Comment thread examples/QuickStart/JavaScript/QuickStartApp/QuickStartApp.js
Comment thread examples/QuickStart/JavaSpring/QuickStart/pom.xml
Comment thread examples/QuickStart/JavaScript/QuickStartApp/QuickStartApp.js Outdated
Comment thread examples/QuickStart/Python/QuickStartApp/QuickStartApp.py Outdated
Comment thread examples/QuickStart/DotNet/QuickStartApp/QuickStartApp.csproj Outdated

@zhenlan Zhenlan Wang (zhenlan) left a comment

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.

Approving the PR but please don't merge it. We should coordinate this PR with the updated portal release and minimize the time they are inconsistent.

@jimmyca15

Copy link
Copy Markdown
Member

Zhenlan Wang (@zhenlan) Maryanne Gichohi (@MaryanneNjeri)

Jiayi has told me the release has finished in Azure Cloud and will finish in all other clouds tomorrow. Seems we should be good to merge.

@zhenlan

Copy link
Copy Markdown
Member

Sounds good

@MaryanneNjeri
Maryanne Gichohi (MaryanneNjeri) merged commit 143149f into main Jan 19, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants