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 1919-->
2020
2121## Upcoming Release
22+ * Set ` ResourceGroupName ` as optional for ` Set-AzSynapseSqlAuditSetting ` cmdlet
2223* Added LastCommitId parameter to ` New-AzureSynapseGitRepositoryConfig `
2324* Fixed the issue that update spark pool version fail by ` Update-AzSynapseSparkPool `
2425
Original file line number Diff line number Diff line change @@ -109,6 +109,11 @@ protected override SqlPoolAuditModel GetEntity()
109109 this . SqlPoolName = resourceIdentifier . ResourceName ;
110110 }
111111
112+ if ( string . IsNullOrEmpty ( this . ResourceGroupName ) )
113+ {
114+ this . ResourceGroupName = this . SynapseAnalyticsClient . GetResourceGroupByWorkspaceName ( this . WorkspaceName ) ;
115+ }
116+
112117 SqlPoolAuditModel model = new SqlPoolAuditModel
113118 {
114119 ResourceGroupName = ResourceGroupName ,
Original file line number Diff line number Diff line change @@ -79,6 +79,11 @@ protected override ServerAuditModelType GetEntity()
7979 this . WorkspaceName = resourceIdentifier . ResourceName ;
8080 }
8181
82+ if ( string . IsNullOrEmpty ( this . ResourceGroupName ) )
83+ {
84+ this . ResourceGroupName = this . SynapseAnalyticsClient . GetResourceGroupByWorkspaceName ( this . WorkspaceName ) ;
85+ }
86+
8287 ServerAuditModelType model = new ServerAuditModelType ( )
8388 {
8489 ResourceGroupName = ResourceGroupName ,
You can’t perform that action at this time.
0 commit comments