Skip to content

Azure SQL - Service Objective #10

@LordBenjamin

Description

@LordBenjamin

DbUp currently allows the caller to specify an AzureDatabaseEdition.

Ideally, it would be good to allow finer control over this by accepting a parameter specifying the Service Objective (e.g. S0, etc).

At it's simplest, this could be an optional string argument passed to SqlDatabase() - alternatively, an enum similar to AzureDatabaseEdition might be a better DX (although would probably add maintenance overhead if MS changes SKUs).

This would ultimately mean that the DbUp command would change from:

create database [mydatabase] ( EDITION = 'standard' );

to:

create database [mydatabase] ( EDITION = 'standard', SERVICE_OBJECTIVE = 'S0' );

when a service objective parameter is supplied.

I am happy to raise a PR for this, but wanted to gauge interest / opinions first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions