The Delete Azure SQL Databases action provides a straightforward solution for removing SQL databases on demand. This action is particularly useful when paired with the Export Azure SQL Databases action, allowing for a seamless backup-and-delete workflow.
By targeting specific databases, you can create a rule that can efficiently manage Azure SQL resources. In scenarios like test environments or fixture setups, deleting unused databases can free up resources, leading to an improved performance. It also proves valuable for releasing costs associated to save money on your Azure bill, and reduces the chance of unauthorized access on redundant databases containing sensitive data.
As this is a destructive action, in most situations it should be used in a sequence with the Export Azure SQL Databases action. For this use case, a specific database can be targeted by name.
In some niche cases, e.g. a test environment that populates the database with fixture data on startup, this action can be useful on its own. For these use cases, multiple databases can be targeted by Tag Groups.
When you link GorillaStack to your Azure account, GorillaStack creates a service principal that provides access to the following permissions that are used by this action:
Microsoft.Sql/servers/databases/delete
Microsoft.Sql/servers/databases/read