Skip to content

Commit f94b14d

Browse files
authored
Update multiple-identity-scenarios.md
ObjectID is not Working we need to use clientid
1 parent 211d345 commit f94b14d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/storage/common/multiple-identity-scenarios.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ CosmosClient client = new CosmosClient(
318318
});
319319
320320
// Open a connection to Azure SQL using a managed identity
321-
string ConnectionString1 = @"Server=<azure-sql-hostname>.database.windows.net; User Id=ObjectIdOfManagedIdentity; Authentication=Active Directory Default; Database=<database-name>";
321+
string ConnectionString1 = @"Server=<azure-sql-hostname>.database.windows.net; User Id=ClientIDOfTheManagedIdentity; Authentication=Active Directory Default; Database=<database-name>";
322322
323323
using (SqlConnection conn = new SqlConnection(ConnectionString1))
324324
{

0 commit comments

Comments
 (0)