Skip to content

Commit 08a39c9

Browse files
author
mattosaurus
committed
Update documentation
1 parent 0a37f6c commit 08a39c9

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,24 @@ See [Azure AD-managed identities for Azure resources documentation](https://docs
285285

286286
### AzureServiceTokenProviderResource
287287

288-
Specifies the token provider resource to be used for aquiring an authentication token when using Azure Managed Identities for authenticating with an Azure SQL server. This setting is only used if `UseAzureManagedIdentity` is set to `true`.
288+
Specifies the token provider resource to be used for aquiring an authentication token when using Azure Managed Identities for authenticating with an Azure SQL server. This setting is only used if `UseAzureManagedIdentity` is set to `true`. For Azure SQL databases this value will always be `https://database.windows.net/`.
289+
290+
### AzureTenantId
291+
292+
Specifies the tenant ID of the the tenant the Azure SQL database exists in. This only needs to be set if the user authenticating against the database is in a different tenant to the database. This will most likely be the case when you are debugging locally and authenticating as yourself rather than the app to be deployed to.
293+
294+
```
295+
.WriteTo.MSSqlServer(
296+
Environment.GetEnvironmentVariable("LogConnection"),
297+
sinkOptions: new MSSqlServerSinkOptions()
298+
{
299+
TableName = "_Log",
300+
UseAzureManagedIdentity = true,
301+
AzureServiceTokenProviderResource = "https://database.windows.net/",
302+
AzureTenantId = Environment.GetEnvironmentVariable("AZURE_TENANT_ID")
303+
}
304+
```
305+
289306

290307
## ColumnOptions Object
291308

0 commit comments

Comments
 (0)