Implement resource ID retrieval for Azure authentication#2918
Conversation
Added code to fetch resource ID from metadata for Azure Data Explorer authentication.
|
@ohadbitt : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change. |
1 similar comment
|
@ohadbitt : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change. |
|
Learn Build status updates of commit 93598f0: ✅ Validation status: passed
For more details, please refer to the build report. |
|
Learn Build status updates of commit 6e076c1: ✅ Validation status: passed
For more details, please refer to the build report. |
|
Can you review the proposed changes? IMPORTANT: When the changes are ready for publication, adding a #label:"aq-pr-triaged" |
There was a problem hiding this comment.
Pull request overview
This PR updates the Azure Data Explorer REST authentication documentation to retrieve the correct Azure AD resource ID from the cluster’s metadata endpoint before requesting an app-only token via MSAL.
Changes:
- Added a step to query the cluster metadata endpoint for
KustoServiceResourceId. - Updated the MSAL
AcquireTokenForClientscope construction to use the retrieved resource ID.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Updated the method for fetching resource ID from Kusto service metadata, switching from Java to C# code.
|
Learn Build status updates of commit 6340f3c: ✅ Validation status: passed
For more details, please refer to the build report. |
Updated the code sample to clarify that the MSAL authentication flow is supported for the 'ingest-' endpoint.
|
Learn Build status updates of commit 18fa484: ✅ Validation status: passed
For more details, please refer to the build report. |
|
#sign-off |
|
Invalid command: '#sign-off'. Only the assigned author of one or more file in this PR can sign off. @spelluru |
|
#sign-off |
…s://github.com/MicrosoftDocs/dataexplorer-docs (branch main) (#7548) * Clarify Parquet continuous export performance for wide tables (#2900) * Clarify Parquet continuous export performance for wide tables * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Silas Mendes <silasmendes@gmail.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Implement resource ID retrieval for Azure authentication (#2918) * Implement resource ID retrieval for Azure authentication Added code to fetch resource ID from metadata for Azure Data Explorer authentication. * Update authenticate-with-msal.md * Refactor resource ID retrieval to C# Updated the method for fetching resource ID from Kusto service metadata, switching from Java to C# code. * Clarify MSAL authentication support for ingest endpoint Updated the code sample to clarify that the MSAL authentication flow is supported for the 'ingest-' endpoint. --------- Co-authored-by: learn-build-service-prod[bot] <113403604+learn-build-service-prod[bot]@users.noreply.github.com> Co-authored-by: Silas Mendes <61285023+silasmendes-ms@users.noreply.github.com> Co-authored-by: Silas Mendes <silasmendes@gmail.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: Learn Build Service GitHub App <Learn Build Service LearnBuild@microsoft.com> Co-authored-by: ohad bitton <32278684+ohadbitt@users.noreply.github.com>
Added code to fetch resource ID from metadata for Azure Data Explorer authentication.
Thank you for contributing to Kusto documentation
Please add a brief comment outlining the purpose of this PR. Add links to any relevant references such as DevOps work items.
Make sure you've done the following:
Acrolinx: Make sure your Acrolinx score is at least 80 (higher is better) and with 0 spelling issues.
Successful build: Review the build status to make sure all files are green (Succeeded) and there are no errors, warnings, or suggestions.
Preview the pages: Click each Preview URL link, scan the entire page looking for formatting issues, in particular the parts you edited.
Check the Table of Contents: If you're adding a new markdown file, make sure it is linked from the table of contents.
Sign off: Once the PR is finalized, add a comment with
#sign-off. If you need to cancel the sign-off, add a comment with#hold-off.NOTE: Signing off means the document can be published at any time.
Next steps
Learn more about how to contribute