Skip to content

Add Azure auth sample app#3988

Open
paulmedynski wants to merge 8 commits intomainfrom
dev/paul/azure-samples
Open

Add Azure auth sample app#3988
paulmedynski wants to merge 8 commits intomainfrom
dev/paul/azure-samples

Conversation

@paulmedynski
Copy link
Contributor

Description

Adds a sample app for testing Azure authentication with flexibility to supply published and local SqlClient packages.

@paulmedynski paulmedynski added this to the 7.0.0 milestone Feb 26, 2026
Copilot AI review requested due to automatic review settings February 26, 2026 20:17
@paulmedynski paulmedynski requested a review from a team as a code owner February 26, 2026 20:17
@paulmedynski paulmedynski added Area\Tests Issues that are targeted to tests or test projects Area\Documentation Use this for issues that requires changes in public documentations/samples. labels Feb 26, 2026
@github-project-automation github-project-automation bot moved this to To triage in SqlClient Board Feb 26, 2026
Copy link
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 adds a new sample console application for testing Azure authentication with Microsoft.Data.SqlClient. The app is designed as a smoke test to verify package compatibility and Azure AD authentication functionality, with support for testing against both published NuGet packages and locally-built packages from the packages/ directory.

Changes:

  • Adds AzureAuthentication sample app in doc/apps/AzureAuthentication/ with flexible package version configuration
  • Includes comprehensive documentation with usage examples and build instructions
  • Updates doc/Directory.Packages.props to reference the latest stable SqlClient version (6.1.4)

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
src/Microsoft.Data.SqlClient.sln Adds the new AzureAuthentication project to the solution
doc/apps/AzureAuthentication/AzureAuthentication.csproj Project file targeting net481 and net10.0 with conditional Azure package references
doc/apps/AzureAuthentication/Program.cs Main application implementing command-line interface with connection testing and event logging
doc/apps/AzureAuthentication/README.md Comprehensive documentation covering purpose, usage, examples, and prerequisites
doc/apps/AzureAuthentication/Directory.Build.props Enables Central Package Management for the sample app
doc/apps/AzureAuthentication/Directory.Packages.props Defines default package versions with overridable MSBuild properties
doc/apps/AzureAuthentication/NuGet.config Configures local packages/ directory as a package source
doc/apps/AzureAuthentication/GeneratePackageVersions.targets MSBuild task to generate code exposing package versions at runtime
doc/apps/AzureAuthentication/packages/.gitkeep Ensures git tracks the empty packages directory
doc/Directory.Packages.props Updates SqlClient reference to latest stable version 6.1.4

@paulmedynski paulmedynski moved this from To triage to In review in SqlClient Board Feb 27, 2026
@codecov
Copy link

codecov bot commented Feb 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.97%. Comparing base (326a242) to head (d8fbc3d).
⚠️ Report is 1 commits behind head on main.

❗ There is a different number of reports uploaded between BASE (326a242) and HEAD (d8fbc3d). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (326a242) HEAD (d8fbc3d)
CI-SqlClient 1 0
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3988      +/-   ##
==========================================
- Coverage   72.65%   64.97%   -7.68%     
==========================================
  Files         287      282       -5     
  Lines       43134    66043   +22909     
==========================================
+ Hits        31337    42913   +11576     
- Misses      11797    23130   +11333     
Flag Coverage Δ
CI-SqlClient ?
PR-SqlClient-Project 64.97% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@priyankatiwari08 priyankatiwari08 self-assigned this Feb 27, 2026
Copy link
Contributor

@mdaigle mdaigle left a comment

Choose a reason for hiding this comment

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

Looks complete. Is your goal to give an example for users? or is this intended as an easy way to manually test the full stack?

Copilot AI review requested due to automatic review settings March 10, 2026 12:45
Copy link
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

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


You can also share your feedback on Copilot code review. Take the survey.

@paulmedynski
Copy link
Contributor Author

@copilot open a new pull request to apply changes based on the comments in this thread. Do not consider outdated comments.

Copy link
Contributor

Copilot AI commented Mar 10, 2026

@paulmedynski I've opened a new pull request, #4027, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI review requested due to automatic review settings March 10, 2026 15:35
Copy link
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

Copilot reviewed 13 out of 13 changed files in this pull request and generated 2 comments.


You can also share your feedback on Copilot code review. Take the survey.

@paulmedynski
Copy link
Contributor Author

Looks complete. Is your goal to give an example for users? or is this intended as an easy way to manually test the full stack?

@mdaigle A bit of both. I'll use it myself for 7.0 GA validation, and then point to it in the reference docs as appropriate.

Copy link
Member

Choose a reason for hiding this comment

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

Could this be also consumed by the doc\samples project? I would recommend making Samples and Apps have similar build experiences.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let's consider this as part of the ongoing Samples work. I'm not sure samples need to use unpublished packages, but maybe they will in the future.

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

Labels

Area\Documentation Use this for issues that requires changes in public documentations/samples. Area\Tests Issues that are targeted to tests or test projects

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

6 participants