azure::sql-database

Creates a sql database.

Example

azure::sql-database sql-database-example-source
     name: "sql-database-example-source"
     collation: "SQL_Latin1_General_CP1_CI_AS"
     edition: "Basic"
     max-storage-capacity: "MAX_100_MB"
     sql-server: $(azure::sql-server sql-server-example)
     tags: {
         Name: "sql-database-example"
     }
end

Attributes

Attribute Description
collation The collation of the database.
create-mode The create mode of the database. Valid values are Copy, Default, NonReadableSecondary, OnlineSecondary, PointInTimeRestore, Recovery, Restore or RestoreLongTermRetentionBackup.
edition The edition of the database. Valid values are Basic, Premium or Standard.
edition-service-objective The edition service objective of the database. Required when used with editions Basic, Premium, or Standard.
elastic-pool The Elastic Pool associated with the database.
import-from-container-name The container the source file is coming from. Required when used with storage account and source filename.
import-from-filename The source filename. Required when used with container name and storage account id.
import-from-storage-account-id The storage account id the source file is coming from. Required when used with container name and source filename.
max-storage-capacity The maximum size of the database. Required when used with Premium or Standard editions.
name The name of the database. (Required)
with-sample-database Determines if the sample database is used.
source-database-name The name of the source database.
storage-uri The source uri of the database to be imported.
storage-account The Storage Account related to a database to be imported.
sql-server The SQL Server where the database is found. (Required)
tags map The tags associated with the database.

Outputs

Attribute Description
id The ID of the database.