Skip to content

Commit c55eca1

Browse files
authored
Merge pull request Azure#8667 from bashahee/master
Updating AuditingEndpointsCommunicator
2 parents 13fed1a + 8b16102 commit c55eca1

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/Sql/Sql/Auditing/Services/AuditingEndpointsCommunicator.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,11 @@ public DiagnosticSettingsResource CreateDiagnosticSettings(
166166
}
167167
}
168168

169+
if (!settings.Logs.Any(l => string.Equals(l.Category, DefinitionsCommon.SQLSecurityAuditCategory)))
170+
{
171+
settings.Logs.Add(new LogSettings(true, DefinitionsCommon.SQLSecurityAuditCategory));
172+
}
173+
169174
return client.DiagnosticSettings.CreateOrUpdateAsync(
170175
resoureUri, settings, settingsName).Result;
171176
}

src/Sql/Sql/ChangeLog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21-
21+
* Updating AuditingEndpointsCommunicator.
22+
- Fixing the behavior of an edge case while creating new diagnostic settings.
2223
## Version 1.4.0
2324
* Add support for restore an instance database from geo-redundant backups
2425

0 commit comments

Comments
 (0)