You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BlobStorageTarget - Rename config properties to align with Microsoft naming convention (#163)
* renamed configuration properties to be more aligned with the Microsoft naming convention:
ResourceIdentity => ManagedIdentityResourceId
ClientIdentity => ManagedIdentityClientId
ClientId => ClientAuthId
ClientSecret => ClientAuthSecret
* resolved PR comments
---------
Co-authored-by: Stephan Steiner <[email protected]>
Copy file name to clipboardExpand all lines: src/NLog.Extensions.AzureBlobStorage/BlobStorageTarget.cs
+41-25Lines changed: 41 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,8 @@ public sealed class BlobStorageTarget : AsyncTaskTarget
30
30
publicLayoutConnectionString{get;set;}
31
31
32
32
/// <summary>
33
-
/// Alternative to ConnectionString
33
+
/// Uri to reference the blob service (e.g. https://{account_name}.blob.core.windows.net).
34
+
/// Input for <see cref="BlobServiceClient"/>. Required, when <see cref="ConnectionString"/> is not configured. Overrides <see cref="ConnectionString"/> when both are set.
34
35
/// </summary>
35
36
publicLayoutServiceUri{get;set;}
36
37
@@ -40,51 +41,66 @@ public sealed class BlobStorageTarget : AsyncTaskTarget
40
41
41
42
/// <summary>
42
43
/// Alternative to ConnectionString, when using <see cref="ServiceUri"/>
44
+
/// tenantId for <see cref="Azure.Identity.DefaultAzureCredentialOptions"/> and <see cref="Azure.Identity.ClientSecretCredential"/>. Requires <see cref="ServiceUri"/>.
/// Alternative to ConnectionString, when using <see cref="ServiceUri"/> with ManagedIdentityClientId / WorkloadIdentityClientId
62
+
/// Sets <see cref="Azure.Identity.DefaultAzureCredentialOptions.ManagedIdentityClientId"/> on <see cref="Azure.Identity.DefaultAzureCredentialOptions"/>. Requires <see cref="ServiceUri"/>.
53
63
/// </summary>
54
-
publicLayoutClientIdentity{get;set;}
64
+
publicLayoutManagedIdentityClientId{get;set;}
55
65
56
66
/// <summary>
57
-
/// Alternative to ConnectionString, when using <see cref="ServiceUri"/> with AzureSasCredential
67
+
/// Access signature for <see cref="Azure.AzureSasCredential"/> authentication. Requires <see cref="ServiceUri"/>.
58
68
/// </summary>
59
69
publicLayoutSharedAccessSignature{get;set;}
60
70
61
71
/// <summary>
62
-
/// Alternative to ConnectionString, when using <see cref="ServiceUri"/> with <see cref="Azure.Storage.StorageSharedKeyCredential"/> storage account name.
72
+
/// accountName for <see cref="Azure.Storage.StorageSharedKeyCredential"/> authentication. Requires <see cref="ServiceUri"/> and <see cref="AccessKey"/>.
63
73
/// </summary>
64
74
publicLayoutAccountName{get;set;}
65
75
66
76
/// <summary>
67
-
/// Alternative to ConnectionString, when using <see cref="ServiceUri"/> with <see cref="Azure.Storage.StorageSharedKeyCredential"/> storage account access-key.
77
+
/// accountKey for <see cref="Azure.Storage.StorageSharedKeyCredential"/> authentication. Requires <see cref="ServiceUri"/> and <see cref="AccountName"/>.
68
78
/// </summary>
69
79
publicLayoutAccessKey{get;set;}
70
80
71
81
/// <summary>
72
-
/// Alternative to ConnectionString. Instantiates the <see cref="BlobServiceClient"/> using a <see cref="Azure.Identity.ClientSecretCredential"/> with this value as ClientId for authentication. Requires <see cref="TenantIdentity"/> and <see cref="ClientSecret"/> to be set.
82
+
/// clientId for <see cref="Azure.Identity.ClientSecretCredential"/> authentication. Requires <see cref="ServiceUri"/>, <see cref="TenantIdentity"/> and <see cref="ClientAuthSecret"/>.
73
83
/// </summary>
74
-
publicLayoutClientId{get;set;}
84
+
publicLayoutClientAuthId{get;set;}
75
85
76
86
/// <summary>
77
-
/// Secret when using when using <see cref="ClientId"/>. Instantiates the <see cref="BlobServiceClient"/> using a <see cref="Azure.Identity.ClientSecretCredential"/> for authentication. Requires <see cref="TenantIdentity"/> and <see cref="ClientId"/> to be set.
87
+
/// clientSecret for <see cref="Azure.Identity.ClientSecretCredential"/> authentication. Requires <see cref="ServiceUri"/>, <see cref="TenantIdentity"/> and <see cref="ClientAuthId"/>.
_serviceUri_ - Alternative to ConnectionString, where Managed Identiy is acquired from DefaultAzureCredential.
42
+
_serviceUri_ - Uri to reference the blob service (e.g. https://{account_name}.blob.core.windows.net). Input for `BlobServiceClient`. Required, when `connectionString`is not configured. Overrides `connectionString` when both are set.
43
43
44
-
_clientIdentity_ - Alternative to ConnectionString. Used together with ServiceUri. Input for DefaultAzureCredential as ManagedIdentityClientId.
44
+
_managedIdentityClientId_ - Sets `ManagedIdentityClientId` on `DefaultAzureCredentialOptions`. Requires `serviceUri`
45
45
46
-
_resourceIdentity_ - Alternative to ConnectionString. Used together with ServiceUri. Input for DefaultAzureCredential as ManagedIdentityResourceId.
46
+
_managedIdentityResourceId_ - resourceId for `ManagedIdentityResourceId` on `DefaultAzureCredentialOptions`. Requires `serviceUri`.
47
47
48
-
_tenantIdentity_ - Alternative to ConnectionString. Used together with ServiceUri. Input for DefaultAzureCredential / ClientSecretCredential.
48
+
_tenantIdentity_ - tenantId for `DefaultAzureCredentialOptions` and `ClientSecretCredential`. Requires `serviceUri`.
49
49
50
-
_sharedAccessSignature_ - Alternative to ConnectionString. Used together with ServiceUri. Input for AzureSasCredential
50
+
_sharedAccessSignature_ - Access signature for `AzureSasCredential` authentication. Requires `serviceUri`.
51
51
52
-
_accountName_ - Alternative to ConnectionString. Used together with ServiceUri. Input for StorageSharedKeyCredential-AccountName
52
+
_accountName_ - accountName for `StorageSharedKeyCredential` authentication. Requires `serviceUri` and `accessKey`.
53
53
54
-
_accessKey_ - Alternative to ConnectionString. Used together with ServiceUri. Input for StorageSharedKeyCredential-AccessKey
54
+
_accessKey_ - accountKey for `StorageSharedKeyCredential` authentication. Requires `serviceUri` and `accountName`.
55
55
56
-
_clientId_ - Alternative to ConnectionString. Instantiates the `BlobServiceClient` using a `ClientSecretCredential`for authentication. Requires `TenantIdentity`and `ClientSecret`.
56
+
_clientAuthId_ - clientId for `ClientSecretCredential` authentication. Requires `serviceUri`, `tenantIdentity`and `clientAuthSecret`.
57
57
58
-
_clientSecret_ - Secret when using ClientId. Instantiates the `BlobServiceClient` using a `ClientSecretCredential`for authentication. Requires `TenantIdentity` and `ClientId`.
58
+
_clientAuthSecret_ - clientSecret for `ClientSecretCredential` authentication. Requires `serviceUri`,`tenantIdentity` and `clientAuthId`.
0 commit comments