From f638ebe376372ecab4498fa09012030da413a0f4 Mon Sep 17 00:00:00 2001 From: Dan Rediske Date: Mon, 25 Jul 2016 16:30:06 -0700 Subject: [PATCH] Added formatting --- .../integrated/README.md | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/samples/features/security/azure-active-directory-auth/integrated/README.md b/samples/features/security/azure-active-directory-auth/integrated/README.md index 596e58b1..4352fc4e 100644 --- a/samples/features/security/azure-active-directory-auth/integrated/README.md +++ b/samples/features/security/azure-active-directory-auth/integrated/README.md @@ -1,16 +1,15 @@ - +## Run this sample Note: Run this project on a machine joined to a domain that is federated with Azure Active Directory. A contained database user representing your Azure AD principal, or one of the groups, you belong to, must exist in the database and must have the CONNECT permission. -Before building and running the Integrated project: -• In Program.cs, locate the following lines of code and replace the server/database name with your server/database name. - +1. Before building and running the Integrated project: ++ In Program.cs, locate the following lines of code and replace the server/database name with your server/database name. +``` builder["Data Source"] = "aad-managed-demo.database.windows.net "; // replace 'aad-managed-demo' with your server name builder["Initial Catalog"] = "demo"; // replace with your database name +``` - -Please note that -builder["Authentication"] method is set to SqlAuthenticationMethod.ActiveDirectoryIntegrated; +2. The builder["Authentication"] method must be set to SqlAuthenticationMethod.ActiveDirectoryIntegrated; ![screenshot of visual studio showing builder fields to change] (/samples/features/security/azure-active-directory-auth/img/vs-authentication-method-integrated.png) -Running this project on a machine joined to a domain that is federated with Azure Active Directory will automatically use your Windows credentials and no password is required. The execution window will indicate a successful connection to the database followed by “Please press any key to stop”: +3. Running this project on a machine joined to a domain that is federated with Azure Active Directory will automatically use your Windows credentials and no password is required. The execution window will indicate a successful connection to the database followed by “Please press any key to stop”: ![screenshot of application after successful authentication- "press any key to stop"] (/samples/features/security/azure-active-directory-auth/img/integrated-press-any-key-to-stop.png)