File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
Commands/ManagementCommands/Auditing Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 19
19
-->
20
20
21
21
## Upcoming Release
22
+ * Set ` ResourceGroupName ` as optional for ` Set-AzSynapseSqlAuditSetting ` cmdlet
22
23
* Added LastCommitId parameter to ` New-AzureSynapseGitRepositoryConfig `
23
24
* Fixed the issue that update spark pool version fail by ` Update-AzSynapseSparkPool `
24
25
Original file line number Diff line number Diff line change @@ -109,6 +109,11 @@ protected override SqlPoolAuditModel GetEntity()
109
109
this . SqlPoolName = resourceIdentifier . ResourceName ;
110
110
}
111
111
112
+ if ( string . IsNullOrEmpty ( this . ResourceGroupName ) )
113
+ {
114
+ this . ResourceGroupName = this . SynapseAnalyticsClient . GetResourceGroupByWorkspaceName ( this . WorkspaceName ) ;
115
+ }
116
+
112
117
SqlPoolAuditModel model = new SqlPoolAuditModel
113
118
{
114
119
ResourceGroupName = ResourceGroupName ,
Original file line number Diff line number Diff line change @@ -79,6 +79,11 @@ protected override ServerAuditModelType GetEntity()
79
79
this . WorkspaceName = resourceIdentifier . ResourceName ;
80
80
}
81
81
82
+ if ( string . IsNullOrEmpty ( this . ResourceGroupName ) )
83
+ {
84
+ this . ResourceGroupName = this . SynapseAnalyticsClient . GetResourceGroupByWorkspaceName ( this . WorkspaceName ) ;
85
+ }
86
+
82
87
ServerAuditModelType model = new ServerAuditModelType ( )
83
88
{
84
89
ResourceGroupName = ResourceGroupName ,
You can’t perform that action at this time.
0 commit comments