@@ -15,23 +15,38 @@ Gets the auditing settings of an Azure SQL database.
15
15
16
16
### BlobStorageSet
17
17
```
18
- Get-AzSqlDatabaseAuditing [-BlobStorage] [-ServerName] <String> [-DatabaseName] <String>
19
- [-ResourceGroupName] <String> [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
20
- [<CommonParameters>]
18
+ Get-AzSqlDatabaseAuditing [-ResourceGroupName] <String> [-ServerName] <String> [-DatabaseName] <String>
19
+ [-BlobStorage] [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
21
20
```
22
21
23
22
### EventHubSet
24
23
```
25
- Get-AzSqlDatabaseAuditing [-EventHub] [-ServerName] <String> [-DatabaseName] <String>
26
- [-ResourceGroupName] <String> [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
27
- [<CommonParameters>]
24
+ Get-AzSqlDatabaseAuditing [-ResourceGroupName] <String> [-ServerName] <String> [-DatabaseName] <String>
25
+ [-EventHub] [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
28
26
```
29
27
30
28
### LogAnalyticsSet
31
29
```
32
- Get-AzSqlDatabaseAuditing [-LogAnalytics] [-ServerName] <String> [-DatabaseName] <String>
33
- [-ResourceGroupName] <String> [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
34
- [<CommonParameters>]
30
+ Get-AzSqlDatabaseAuditing [-ResourceGroupName] <String> [-ServerName] <String> [-DatabaseName] <String>
31
+ [-LogAnalytics] [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
32
+ ```
33
+
34
+ ### BlobStorageByParentResourceSet
35
+ ```
36
+ Get-AzSqlDatabaseAuditing -InputObject <AzureSqlDatabaseModel> [-BlobStorage]
37
+ [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
38
+ ```
39
+
40
+ ### EventHubByParentResourceSet
41
+ ```
42
+ Get-AzSqlDatabaseAuditing -InputObject <AzureSqlDatabaseModel> [-EventHub]
43
+ [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
44
+ ```
45
+
46
+ ### LogAnalyticsByParentResourceSet
47
+ ```
48
+ Get-AzSqlDatabaseAuditing -InputObject <AzureSqlDatabaseModel> [-LogAnalytics]
49
+ [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
35
50
```
36
51
37
52
## DESCRIPTION
@@ -111,7 +126,7 @@ Specifies that audit logs destination is blob storage
111
126
112
127
``` yaml
113
128
Type : System.Management.Automation.SwitchParameter
114
- Parameter Sets : BlobStorageSet
129
+ Parameter Sets : BlobStorageSet, BlobStorageByParentResourceSet
115
130
Aliases :
116
131
117
132
Required : False
@@ -126,7 +141,7 @@ SQL Database name.
126
141
127
142
` ` ` yaml
128
143
Type : System.String
129
- Parameter Sets : (All)
144
+ Parameter Sets : BlobStorageSet, EventHubSet, LogAnalyticsSet
130
145
Aliases :
131
146
132
147
Required : True
@@ -156,7 +171,7 @@ Specifies that audit logs destination is event hub
156
171
157
172
` ` ` yaml
158
173
Type : System.Management.Automation.SwitchParameter
159
- Parameter Sets : EventHubSet
174
+ Parameter Sets : EventHubSet, EventHubByParentResourceSet
160
175
Aliases :
161
176
162
177
Required : True
@@ -166,12 +181,27 @@ Accept pipeline input: True (ByPropertyName)
166
181
Accept wildcard characters : False
167
182
` ` `
168
183
184
+ ### -InputObject
185
+ The database object
186
+
187
+ ` ` ` yaml
188
+ Type : Microsoft.Azure.Commands.Sql.Database.Model.AzureSqlDatabaseModel
189
+ Parameter Sets : BlobStorageByParentResourceSet, EventHubByParentResourceSet, LogAnalyticsByParentResourceSet
190
+ Aliases :
191
+
192
+ Required : True
193
+ Position : Named
194
+ Default value : None
195
+ Accept pipeline input : True (ByValue)
196
+ Accept wildcard characters : False
197
+ ` ` `
198
+
169
199
### -LogAnalytics
170
200
Specifies that audit logs destination is log analytics
171
201
172
202
` ` ` yaml
173
203
Type : System.Management.Automation.SwitchParameter
174
- Parameter Sets : LogAnalyticsSet
204
+ Parameter Sets : LogAnalyticsSet, LogAnalyticsByParentResourceSet
175
205
Aliases :
176
206
177
207
Required : True
@@ -186,7 +216,7 @@ The name of the resource group.
186
216
187
217
` ` ` yaml
188
218
Type : System.String
189
- Parameter Sets : (All)
219
+ Parameter Sets : BlobStorageSet, EventHubSet, LogAnalyticsSet
190
220
Aliases :
191
221
192
222
Required : True
@@ -197,11 +227,11 @@ Accept wildcard characters: False
197
227
` ` `
198
228
199
229
### -ServerName
200
- SQL Database server name.
230
+ SQL server name.
201
231
202
232
` ` ` yaml
203
233
Type : System.String
204
- Parameter Sets : (All)
234
+ Parameter Sets : BlobStorageSet, EventHubSet, LogAnalyticsSet
205
235
Aliases :
206
236
207
237
Required : True
@@ -211,36 +241,6 @@ Accept pipeline input: True (ByPropertyName)
211
241
Accept wildcard characters : False
212
242
` ` `
213
243
214
- ### -Confirm
215
- Prompts you for confirmation before running the cmdlet.
216
-
217
- ` ` ` yaml
218
- Type : System.Management.Automation.SwitchParameter
219
- Parameter Sets : (All)
220
- Aliases : cf
221
-
222
- Required : False
223
- Position : Named
224
- Default value : None
225
- Accept pipeline input : False
226
- Accept wildcard characters : False
227
- ` ` `
228
-
229
- ### -WhatIf
230
- Shows what would happen if the cmdlet runs. The cmdlet is not run.
231
-
232
- ` ` ` yaml
233
- Type : System.Management.Automation.SwitchParameter
234
- Parameter Sets : (All)
235
- Aliases : wi
236
-
237
- Required : False
238
- Position : Named
239
- Default value : None
240
- Accept pipeline input : False
241
- Accept wildcard characters : False
242
- ` ` `
243
-
244
244
### CommonParameters
245
245
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
246
246
0 commit comments