Skip to content

Commit

Permalink
removed marketing language, better example filter (#13671)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasWolter authored Dec 7, 2020
1 parent 358af6f commit 3b71064
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Sql/Sql/help/Set-AzSqlDatabaseAudit.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ PS C:\>Set-AzSqlDatabaseAudit -ResourceGroupName "ResourceGroup01" -ServerName "
PS C:\>Set-AzSqlDatabaseAudit -ResourceGroupName "ResourceGroup01" -ServerName "Server01" -DatabaseName "Database01" -BlobStorageTargetState Disabled
```

### Example 3: Enable the blob storage auditing policy of an Azure SQL database with advanced filtering using a T-SQL predicate
### Example 3: Enable the blob storage auditing policy of an Azure SQL database with filtering using a T-SQL predicate
```powershell
PS C:\>Set-AzSqlDatabaseAudit -ResourceGroupName "ResourceGroup01" -ServerName "Server01" -DatabaseName "Database01" -PredicateExpression "statement <> 'select 1'" -BlobStorageTargetState Enabled -StorageAccountResourceId "/subscriptions/7fe3301d-31d3-4668-af5e-211a890ba6e3/resourceGroups/resourcegroup01/providers/Microsoft.Storage/storageAccounts/mystorage"
PS C:\>Set-AzSqlDatabaseAudit -ResourceGroupName "ResourceGroup01" -ServerName "Server01" -DatabaseName "Database01" -PredicateExpression "schema_name <> 'sys''" -BlobStorageTargetState Enabled -StorageAccountResourceId "/subscriptions/7fe3301d-31d3-4668-af5e-211a890ba6e3/resourceGroups/resourcegroup01/providers/Microsoft.Storage/storageAccounts/mystorage"
```

### Example 4: Remove the advanced filtering setting from the auditing policy of an Azure SQL database
### Example 4: Remove the filtering from the auditing policy of an Azure SQL database
```powershell
PS C:\>Set-AzSqlDatabaseAudit -ResourceGroupName "ResourceGroup01" -ServerName "Server01" -DatabaseName "Database01" -PredicateExpression ""
```
Expand Down

0 comments on commit 3b71064

Please sign in to comment.