Skip to main content

SQLDatabase

Properties

PropertyTypeAttributesDescription
displayNamestringRequiredThe item display name
workspaceIdstringRequired, IdentifierThe containing Fabric workspace ID
backupRetentionDaysintRead-onlyThe backup retention period in days
collationstringRead-onlyThe collation of the database
configurationSQLDatabaseConfigurationThe SQL Database creation configuration. Changing this forces recreation of the SQL Database.
connectionStringstringRead-onlyThe connection string of the database
databaseNamestringRead-onlyThe database name
definitionFabricItemDefinitionThe item definition
descriptionstringThe item description
earliestRestorePointstringRead-onlyThe earliest point in time the database can be restored to
folderIdstringThe folder that contains the item
idstringRead-only, IdentifierThe Fabric item ID
latestRestorePointstringRead-onlyThe latest point in time the database can be restored to
serverFqdnstringRead-onlyThe server fully qualified domain name (FQDN)
tagsstring[]The IDs of the tags applied to the item. Tags applied outside of Bicep are left untouched when this is not set.
typestringRead-onlyThe Fabric item type

SQLDatabaseConfiguration

PropertyTypeAttributesDescription
creationMode'New' | 'Restore' | 'RestoreDeletedDatabase'RequiredThe creation mode of the SQL database
backupRetentionDaysintThe backup retention period in days. Minimum 1, maximum 35.
collationstringThe collation of the SQL database. Only applies when creationMode is 'New'.
restorableDeletedDatabaseNamestringThe name of the restorable deleted database to restore. Required when creationMode is 'RestoreDeletedDatabase'.
restorePointInTimestringThe point in time (UTC, YYYY-MM-DDTHH:mm:ssZ) to restore the source database from. Applies when creationMode is 'Restore' or 'RestoreDeletedDatabase'.
sourceDatabaseReferenceSQLDatabaseSourceReferenceThe source database to restore from. Applies when creationMode is 'Restore'.

FabricItemDefinition

PropertyTypeAttributesDescription
partsFabricItemDefinitionPart[]RequiredThe item definition parts
formatstringThe definition format

SQLDatabaseSourceReference

PropertyTypeAttributesDescription
itemIdstringRequiredThe ID of the source item
workspaceIdstringRequiredThe workspace ID of the source item

FabricItemDefinitionPart

PropertyTypeAttributesDescription
pathstringRequiredThe definition part path
payloadstringRequiredThe base64-encoded definition part payload