Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
- Latest
- 2026-06-01
- 2026-05-01-preview
- 2026-04-01-preview
- 2026-03-01-preview
- 2026-02-01-preview
- 2026-01-01-preview
- 2025-12-01-preview
- 2025-11-15-preview
- 2025-11-01-preview
- 2025-09-01
- 2025-08-15-preview
- 2025-08-01-preview
- 2025-07-01-preview
- 2025-06-01-preview
- 2025-04-01-preview
- 2025-03-01
- 2025-01-01-preview
- 2024-12-01-preview
- 2024-10-01-preview
- 2024-08-01-preview
- 2024-06-01
- 2024-06-01-preview
- 2023-09-01
Bicep resource definition
The autonomousDatabases resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Oracle.Database/autonomousDatabases resource, add the following Bicep to your template.
resource symbolicname 'Oracle.Database/autonomousDatabases@2025-12-01-preview' = {
location: 'string'
name: 'string'
properties: {
adminPassword: 'string'
autonomousDatabaseId: 'string'
autonomousMaintenanceScheduleType: 'string'
backupRetentionPeriodInDays: int
characterSet: 'string'
computeCount: int
computeModel: 'string'
cpuCoreCount: int
customerContacts: [
{
email: 'string'
}
]
databaseEdition: 'string'
dataStorageSizeInGbs: int
dataStorageSizeInTbs: int
dbVersion: 'string'
dbWorkload: 'string'
displayName: 'string'
isAutoScalingEnabled: bool
isAutoScalingForStorageEnabled: bool
isLocalDataGuardEnabled: bool
isMtlsConnectionRequired: bool
isPreviewVersionWithServiceTermsAccepted: bool
licenseModel: 'string'
localAdgAutoFailoverMaxDataLossLimit: int
longTermBackupSchedule: {
isDisabled: bool
repeatCadence: 'string'
retentionPeriodInDays: int
timeOfBackup: 'string'
}
ncharacterSet: 'string'
openMode: 'string'
peerDbId: 'string'
permissionLevel: 'string'
privateEndpointIp: 'string'
privateEndpointLabel: 'string'
role: 'string'
scheduledOperationsList: [
{
dayOfWeek: {
name: 'string'
}
scheduledStartTime: 'string'
scheduledStopTime: 'string'
}
]
subnetId: 'string'
vnetId: 'string'
whitelistedIps: [
'string'
]
dataBaseType: 'string'
// For remaining properties, see AutonomousDatabaseBaseProperties objects
}
tags: {
{customized property}: 'string'
}
}
AutonomousDatabaseBaseProperties objects
Set the dataBaseType property to specify the type of object.
For Clone, use:
{
cloneType: 'string'
dataBaseType: 'Clone'
refreshableModel: 'string'
source: 'string'
sourceId: 'string'
timeUntilReconnectCloneEnabled: 'string'
}
For CloneFromBackupTimestamp, use:
{
cloneType: 'string'
dataBaseType: 'CloneFromBackupTimestamp'
source: 'BackupFromTimestamp'
sourceId: 'string'
timestamp: 'string'
useLatestAvailableBackupTimeStamp: bool
}
For CrossRegionDisasterRecovery, use:
{
dataBaseType: 'CrossRegionDisasterRecovery'
isReplicateAutomaticBackups: bool
remoteDisasterRecoveryType: 'string'
source: 'CrossRegionDisasterRecovery'
sourceId: 'string'
sourceLocation: 'string'
sourceOcid: 'string'
}
For Regular, use:
{
dataBaseType: 'Regular'
}
Property Values
Oracle.Database/autonomousDatabases
| Name | Description | Value |
|---|---|---|
| location | The geo-location where the resource lives | string (required) |
| name | The resource name | string Constraints: Min length = 1 Max length = 30 Pattern = .* (required) |
| properties | The resource-specific properties for this resource. | AutonomousDatabaseBaseProperties |
| tags | Resource tags | Dictionary of tag names and values. See Tags in templates |
AutonomousDatabaseBaseProperties
| Name | Description | Value |
|---|---|---|
| adminPassword | Admin password. | string Constraints: Sensitive value. Pass in as a secure parameter. |
| autonomousDatabaseId | Autonomous Database ID | string |
| autonomousMaintenanceScheduleType | The maintenance schedule type of the Autonomous Database Serverless. | 'Early' 'Regular' |
| backupRetentionPeriodInDays | Retention period, in days, for long-term backups | int |
| characterSet | The character set for the autonomous database. | string Constraints: Min length = 1 Max length = 255 |
| computeCount | The compute amount (CPUs) available to the database. | int Constraints: Min value = 1 Max value = 512 |
| computeModel | The compute model of the Autonomous Database. | 'ECPU' 'OCPU' |
| cpuCoreCount | The number of CPU cores to be made available to the database. | int Constraints: Min value = 1 Max value = 128 |
| customerContacts | Customer Contacts. | CustomerContact[] |
| databaseEdition | The Oracle Database Edition that applies to the Autonomous databases. | 'EnterpriseEdition' 'StandardEdition' |
| dataBaseType | Set to 'Clone' for type AutonomousDatabaseCloneProperties. Set to 'CloneFromBackupTimestamp' for type AutonomousDatabaseFromBackupTimestampProperties. Set to 'CrossRegionDisasterRecovery' for type AutonomousDatabaseCrossRegionDisasterRecoveryProperties. Set to 'Regular' for type AutonomousDatabaseProperties. | 'Clone' 'CloneFromBackupTimestamp' 'CrossRegionDisasterRecovery' 'Regular' (required) |
| dataStorageSizeInGbs | The size, in gigabytes, of the data volume that will be created and attached to the database. | int Constraints: Min value = 20 Max value = 393216 |
| dataStorageSizeInTbs | The quantity of data in the database, in terabytes. | int Constraints: Min value = 1 Max value = 384 |
| dbVersion | A valid Oracle Database version for Autonomous Database. | string Constraints: Min length = 1 Max length = 255 |
| dbWorkload | The Autonomous Database workload type | 'AJD' 'APEX' 'DW' 'LH' 'OLTP' |
| displayName | The user-friendly name for the Autonomous Database. | string Constraints: Min length = 1 Max length = 255 |
| isAutoScalingEnabled | Indicates if auto scaling is enabled for the Autonomous Database CPU core count. | bool |
| isAutoScalingForStorageEnabled | Indicates if auto scaling is enabled for the Autonomous Database storage. | bool |
| isLocalDataGuardEnabled | Indicates whether the Autonomous Database has local or called in-region Data Guard enabled. | bool |
| isMtlsConnectionRequired | Specifies if the Autonomous Database requires mTLS connections. | bool |
| isPreviewVersionWithServiceTermsAccepted | Specifies if the Autonomous Database preview version is being provisioned. | bool |
| licenseModel | The Oracle license model that applies to the Oracle Autonomous Database. The default is LICENSE_INCLUDED. | 'BringYourOwnLicense' 'LicenseIncluded' |
| localAdgAutoFailoverMaxDataLossLimit | Parameter that allows users to select an acceptable maximum data loss limit in seconds, up to which Automatic Failover will be triggered when necessary for a Local Autonomous Data Guard | int Constraints: Min value = 0 Max value = 3600 |
| longTermBackupSchedule | Details for the long-term backup schedule. | LongTermBackUpScheduleDetails |
| ncharacterSet | The character set for the Autonomous Database. | string Constraints: Min length = 1 Max length = 255 |
| openMode | Indicates the Autonomous Database mode. | 'ReadOnly' 'ReadWrite' |
| peerDbId | The Azure resource ID of the Disaster Recovery peer database, which is located in a different region from the current peer database. | string Constraints: Min length = 1 Max length = 255 |
| permissionLevel | The Autonomous Database permission level. | 'Restricted' 'Unrestricted' |
| privateEndpointIp | The private endpoint Ip address for the resource. | string |
| privateEndpointLabel | The resource's private endpoint label. | string |
| role | The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled. | 'BackupCopy' 'DisabledStandby' 'Primary' 'SnapshotStandby' 'Standby' |
| scheduledOperationsList | The list of scheduled operations. | ScheduledOperationsType[] |
| subnetId | Client subnet | string |
| vnetId | VNET for network connectivity | string |
| whitelistedIps | The client IP access control list (ACL). This is an array of CIDR notations and/or IP addresses. Values should be separate strings, separated by commas. Example: ['1.1.1.1','1.1.1.0/24','1.1.2.25'] | string Constraints: Min length = 1 Max length = 1024[] |
AutonomousDatabaseCloneProperties
| Name | Description | Value |
|---|---|---|
| cloneType | The Autonomous Database clone type. | 'Full' 'Metadata' (required) |
| dataBaseType | Database type to be created. | 'Clone' (required) |
| refreshableModel | The refresh mode of the clone. | 'Automatic' 'Manual' |
| source | The source of the database. | 'BackupFromId' 'BackupFromTimestamp' 'CloneToRefreshable' 'CrossRegionDataguard' 'CrossRegionDisasterRecovery' 'Database' 'None' |
| sourceId | The Azure resource ID of the Autonomous Database that was cloned to create the current Autonomous Database. | string (required) |
| timeUntilReconnectCloneEnabled | The time and date as an RFC3339 formatted string, e.g., 2022-01-01T12:00:00.000Z, to set the limit for a refreshable clone to be reconnected to its source database. | string |
AutonomousDatabaseCrossRegionDisasterRecoveryProperties
| Name | Description | Value |
|---|---|---|
| dataBaseType | Database type to be created. | 'CrossRegionDisasterRecovery' (required) |
| isReplicateAutomaticBackups | If true, 7 days worth of backups are replicated across regions for Cross-Region ADB or Backup-Based DR between Primary and Standby. If false, the backups taken on the Primary are not replicated to the Standby database. | bool |
| remoteDisasterRecoveryType | Indicates the cross-region disaster recovery (DR) type of the standby Autonomous Database Serverless instance. Autonomous Data Guard (ADG) DR type provides business critical DR with a faster recovery time objective (RTO) during failover or switchover. Backup-based DR type provides lower cost DR with a slower RTO during failover or switchover. | 'Adg' 'BackupBased' (required) |
| source | The source of the database. | 'CrossRegionDisasterRecovery' (required) |
| sourceId | The Azure ID of the source Autonomous Database that will be used to create a new peer database for the DR association. | string (required) |
| sourceLocation | The name of the region where source Autonomous Database exists. | string |
| sourceOcid | The source database ocid | string Constraints: Min length = 1 Max length = 255 |
AutonomousDatabaseFromBackupTimestampProperties
| Name | Description | Value |
|---|---|---|
| cloneType | The Autonomous Database clone type. | 'Full' 'Metadata' (required) |
| dataBaseType | Database type to be created. | 'CloneFromBackupTimestamp' (required) |
| source | The source of the database. | 'BackupFromTimestamp' (required) |
| sourceId | The ID of the source Autonomous Database that you will clone to create a new Autonomous Database. | string (required) |
| timestamp | The timestamp specified for the point-in-time clone of the source Autonomous Database. The timestamp must be in the past. | string |
| useLatestAvailableBackupTimeStamp | Clone from latest available backup timestamp. | bool |
AutonomousDatabaseProperties
| Name | Description | Value |
|---|---|---|
| dataBaseType | Database type to be created. | 'Regular' (required) |
CustomerContact
| Name | Description | Value |
|---|---|---|
| The email address used by Oracle to send notifications regarding databases and infrastructure. | string Constraints: Min length = 1 Max length = 320 (required) |
DayOfWeek
| Name | Description | Value |
|---|---|---|
| name | Name of the day of the week. | 'Friday' 'Monday' 'Saturday' 'Sunday' 'Thursday' 'Tuesday' 'Wednesday' (required) |
LongTermBackUpScheduleDetails
| Name | Description | Value |
|---|---|---|
| isDisabled | Indicates if the long-term backup schedule should be deleted. The default value is FALSE. |
bool |
| repeatCadence | The frequency of the long-term backup schedule | 'Monthly' 'OneTime' 'Weekly' 'Yearly' |
| retentionPeriodInDays | Retention period, in days, for backups. | int Constraints: Min value = 90 Max value = 2558 |
| timeOfBackup | The timestamp for the long-term backup schedule. For a MONTHLY cadence, months having fewer days than the provided date will have the backup taken on the last day of that month. | string |
ScheduledOperationsType
| Name | Description | Value |
|---|---|---|
| dayOfWeek | Day of week | DayOfWeek (required) |
| scheduledStartTime | auto start time. value must be of ISO-8601 format HH:mm | string Constraints: Min length = 1 Max length = 50 |
| scheduledStopTime | auto stop time. value must be of ISO-8601 format HH:mm | string Constraints: Min length = 1 Max length = 50 |
TrackedResourceTags
| Name | Description | Value |
|---|
ARM template resource definition
The autonomousDatabases resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands For a list of changed properties in each API version, see change log.
Usage Examples
Resource format
To create a Oracle.Database/autonomousDatabases resource, add the following JSON to your template.
{
"type": "Oracle.Database/autonomousDatabases",
"apiVersion": "2025-12-01-preview",
"name": "string",
"location": "string",
"properties": {
"adminPassword": "string",
"autonomousDatabaseId": "string",
"autonomousMaintenanceScheduleType": "string",
"backupRetentionPeriodInDays": "int",
"characterSet": "string",
"computeCount": "int",
"computeModel": "string",
"cpuCoreCount": "int",
"customerContacts": [
{
"email": "string"
}
],
"databaseEdition": "string",
"dataStorageSizeInGbs": "int",
"dataStorageSizeInTbs": "int",
"dbVersion": "string",
"dbWorkload": "string",
"displayName": "string",
"isAutoScalingEnabled": "bool",
"isAutoScalingForStorageEnabled": "bool",
"isLocalDataGuardEnabled": "bool",
"isMtlsConnectionRequired": "bool",
"isPreviewVersionWithServiceTermsAccepted": "bool",
"licenseModel": "string",
"localAdgAutoFailoverMaxDataLossLimit": "int",
"longTermBackupSchedule": {
"isDisabled": "bool",
"repeatCadence": "string",
"retentionPeriodInDays": "int",
"timeOfBackup": "string"
},
"ncharacterSet": "string",
"openMode": "string",
"peerDbId": "string",
"permissionLevel": "string",
"privateEndpointIp": "string",
"privateEndpointLabel": "string",
"role": "string",
"scheduledOperationsList": [
{
"dayOfWeek": {
"name": "string"
},
"scheduledStartTime": "string",
"scheduledStopTime": "string"
}
],
"subnetId": "string",
"vnetId": "string",
"whitelistedIps": [ "string" ],
"dataBaseType": "string"
// For remaining properties, see AutonomousDatabaseBaseProperties objects
},
"tags": {
"{customized property}": "string"
}
}
AutonomousDatabaseBaseProperties objects
Set the dataBaseType property to specify the type of object.
For Clone, use:
{
"cloneType": "string",
"dataBaseType": "Clone",
"refreshableModel": "string",
"source": "string",
"sourceId": "string",
"timeUntilReconnectCloneEnabled": "string"
}
For CloneFromBackupTimestamp, use:
{
"cloneType": "string",
"dataBaseType": "CloneFromBackupTimestamp",
"source": "BackupFromTimestamp",
"sourceId": "string",
"timestamp": "string",
"useLatestAvailableBackupTimeStamp": "bool"
}
For CrossRegionDisasterRecovery, use:
{
"dataBaseType": "CrossRegionDisasterRecovery",
"isReplicateAutomaticBackups": "bool",
"remoteDisasterRecoveryType": "string",
"source": "CrossRegionDisasterRecovery",
"sourceId": "string",
"sourceLocation": "string",
"sourceOcid": "string"
}
For Regular, use:
{
"dataBaseType": "Regular"
}
Property Values
Oracle.Database/autonomousDatabases
| Name | Description | Value |
|---|---|---|
| apiVersion | The api version | '2025-12-01-preview' |
| location | The geo-location where the resource lives | string (required) |
| name | The resource name | string Constraints: Min length = 1 Max length = 30 Pattern = .* (required) |
| properties | The resource-specific properties for this resource. | AutonomousDatabaseBaseProperties |
| tags | Resource tags | Dictionary of tag names and values. See Tags in templates |
| type | The resource type | 'Oracle.Database/autonomousDatabases' |
AutonomousDatabaseBaseProperties
| Name | Description | Value |
|---|---|---|
| adminPassword | Admin password. | string Constraints: Sensitive value. Pass in as a secure parameter. |
| autonomousDatabaseId | Autonomous Database ID | string |
| autonomousMaintenanceScheduleType | The maintenance schedule type of the Autonomous Database Serverless. | 'Early' 'Regular' |
| backupRetentionPeriodInDays | Retention period, in days, for long-term backups | int |
| characterSet | The character set for the autonomous database. | string Constraints: Min length = 1 Max length = 255 |
| computeCount | The compute amount (CPUs) available to the database. | int Constraints: Min value = 1 Max value = 512 |
| computeModel | The compute model of the Autonomous Database. | 'ECPU' 'OCPU' |
| cpuCoreCount | The number of CPU cores to be made available to the database. | int Constraints: Min value = 1 Max value = 128 |
| customerContacts | Customer Contacts. | CustomerContact[] |
| databaseEdition | The Oracle Database Edition that applies to the Autonomous databases. | 'EnterpriseEdition' 'StandardEdition' |
| dataBaseType | Set to 'Clone' for type AutonomousDatabaseCloneProperties. Set to 'CloneFromBackupTimestamp' for type AutonomousDatabaseFromBackupTimestampProperties. Set to 'CrossRegionDisasterRecovery' for type AutonomousDatabaseCrossRegionDisasterRecoveryProperties. Set to 'Regular' for type AutonomousDatabaseProperties. | 'Clone' 'CloneFromBackupTimestamp' 'CrossRegionDisasterRecovery' 'Regular' (required) |
| dataStorageSizeInGbs | The size, in gigabytes, of the data volume that will be created and attached to the database. | int Constraints: Min value = 20 Max value = 393216 |
| dataStorageSizeInTbs | The quantity of data in the database, in terabytes. | int Constraints: Min value = 1 Max value = 384 |
| dbVersion | A valid Oracle Database version for Autonomous Database. | string Constraints: Min length = 1 Max length = 255 |
| dbWorkload | The Autonomous Database workload type | 'AJD' 'APEX' 'DW' 'LH' 'OLTP' |
| displayName | The user-friendly name for the Autonomous Database. | string Constraints: Min length = 1 Max length = 255 |
| isAutoScalingEnabled | Indicates if auto scaling is enabled for the Autonomous Database CPU core count. | bool |
| isAutoScalingForStorageEnabled | Indicates if auto scaling is enabled for the Autonomous Database storage. | bool |
| isLocalDataGuardEnabled | Indicates whether the Autonomous Database has local or called in-region Data Guard enabled. | bool |
| isMtlsConnectionRequired | Specifies if the Autonomous Database requires mTLS connections. | bool |
| isPreviewVersionWithServiceTermsAccepted | Specifies if the Autonomous Database preview version is being provisioned. | bool |
| licenseModel | The Oracle license model that applies to the Oracle Autonomous Database. The default is LICENSE_INCLUDED. | 'BringYourOwnLicense' 'LicenseIncluded' |
| localAdgAutoFailoverMaxDataLossLimit | Parameter that allows users to select an acceptable maximum data loss limit in seconds, up to which Automatic Failover will be triggered when necessary for a Local Autonomous Data Guard | int Constraints: Min value = 0 Max value = 3600 |
| longTermBackupSchedule | Details for the long-term backup schedule. | LongTermBackUpScheduleDetails |
| ncharacterSet | The character set for the Autonomous Database. | string Constraints: Min length = 1 Max length = 255 |
| openMode | Indicates the Autonomous Database mode. | 'ReadOnly' 'ReadWrite' |
| peerDbId | The Azure resource ID of the Disaster Recovery peer database, which is located in a different region from the current peer database. | string Constraints: Min length = 1 Max length = 255 |
| permissionLevel | The Autonomous Database permission level. | 'Restricted' 'Unrestricted' |
| privateEndpointIp | The private endpoint Ip address for the resource. | string |
| privateEndpointLabel | The resource's private endpoint label. | string |
| role | The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled. | 'BackupCopy' 'DisabledStandby' 'Primary' 'SnapshotStandby' 'Standby' |
| scheduledOperationsList | The list of scheduled operations. | ScheduledOperationsType[] |
| subnetId | Client subnet | string |
| vnetId | VNET for network connectivity | string |
| whitelistedIps | The client IP access control list (ACL). This is an array of CIDR notations and/or IP addresses. Values should be separate strings, separated by commas. Example: ['1.1.1.1','1.1.1.0/24','1.1.2.25'] | string Constraints: Min length = 1 Max length = 1024[] |
AutonomousDatabaseCloneProperties
| Name | Description | Value |
|---|---|---|
| cloneType | The Autonomous Database clone type. | 'Full' 'Metadata' (required) |
| dataBaseType | Database type to be created. | 'Clone' (required) |
| refreshableModel | The refresh mode of the clone. | 'Automatic' 'Manual' |
| source | The source of the database. | 'BackupFromId' 'BackupFromTimestamp' 'CloneToRefreshable' 'CrossRegionDataguard' 'CrossRegionDisasterRecovery' 'Database' 'None' |
| sourceId | The Azure resource ID of the Autonomous Database that was cloned to create the current Autonomous Database. | string (required) |
| timeUntilReconnectCloneEnabled | The time and date as an RFC3339 formatted string, e.g., 2022-01-01T12:00:00.000Z, to set the limit for a refreshable clone to be reconnected to its source database. | string |
AutonomousDatabaseCrossRegionDisasterRecoveryProperties
| Name | Description | Value |
|---|---|---|
| dataBaseType | Database type to be created. | 'CrossRegionDisasterRecovery' (required) |
| isReplicateAutomaticBackups | If true, 7 days worth of backups are replicated across regions for Cross-Region ADB or Backup-Based DR between Primary and Standby. If false, the backups taken on the Primary are not replicated to the Standby database. | bool |
| remoteDisasterRecoveryType | Indicates the cross-region disaster recovery (DR) type of the standby Autonomous Database Serverless instance. Autonomous Data Guard (ADG) DR type provides business critical DR with a faster recovery time objective (RTO) during failover or switchover. Backup-based DR type provides lower cost DR with a slower RTO during failover or switchover. | 'Adg' 'BackupBased' (required) |
| source | The source of the database. | 'CrossRegionDisasterRecovery' (required) |
| sourceId | The Azure ID of the source Autonomous Database that will be used to create a new peer database for the DR association. | string (required) |
| sourceLocation | The name of the region where source Autonomous Database exists. | string |
| sourceOcid | The source database ocid | string Constraints: Min length = 1 Max length = 255 |
AutonomousDatabaseFromBackupTimestampProperties
| Name | Description | Value |
|---|---|---|
| cloneType | The Autonomous Database clone type. | 'Full' 'Metadata' (required) |
| dataBaseType | Database type to be created. | 'CloneFromBackupTimestamp' (required) |
| source | The source of the database. | 'BackupFromTimestamp' (required) |
| sourceId | The ID of the source Autonomous Database that you will clone to create a new Autonomous Database. | string (required) |
| timestamp | The timestamp specified for the point-in-time clone of the source Autonomous Database. The timestamp must be in the past. | string |
| useLatestAvailableBackupTimeStamp | Clone from latest available backup timestamp. | bool |
AutonomousDatabaseProperties
| Name | Description | Value |
|---|---|---|
| dataBaseType | Database type to be created. | 'Regular' (required) |
CustomerContact
| Name | Description | Value |
|---|---|---|
| The email address used by Oracle to send notifications regarding databases and infrastructure. | string Constraints: Min length = 1 Max length = 320 (required) |
DayOfWeek
| Name | Description | Value |
|---|---|---|
| name | Name of the day of the week. | 'Friday' 'Monday' 'Saturday' 'Sunday' 'Thursday' 'Tuesday' 'Wednesday' (required) |
LongTermBackUpScheduleDetails
| Name | Description | Value |
|---|---|---|
| isDisabled | Indicates if the long-term backup schedule should be deleted. The default value is FALSE. |
bool |
| repeatCadence | The frequency of the long-term backup schedule | 'Monthly' 'OneTime' 'Weekly' 'Yearly' |
| retentionPeriodInDays | Retention period, in days, for backups. | int Constraints: Min value = 90 Max value = 2558 |
| timeOfBackup | The timestamp for the long-term backup schedule. For a MONTHLY cadence, months having fewer days than the provided date will have the backup taken on the last day of that month. | string |
ScheduledOperationsType
| Name | Description | Value |
|---|---|---|
| dayOfWeek | Day of week | DayOfWeek (required) |
| scheduledStartTime | auto start time. value must be of ISO-8601 format HH:mm | string Constraints: Min length = 1 Max length = 50 |
| scheduledStopTime | auto stop time. value must be of ISO-8601 format HH:mm | string Constraints: Min length = 1 Max length = 50 |
TrackedResourceTags
| Name | Description | Value |
|---|
Terraform (AzAPI provider) resource definition
The autonomousDatabases resource type can be deployed with operations that target:
- Resource groups For a list of changed properties in each API version, see change log.
Resource format
To create a Oracle.Database/autonomousDatabases resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Oracle.Database/autonomousDatabases@2025-12-01-preview"
name = "string"
parent_id = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = {
properties = {
adminPassword = "string"
autonomousDatabaseId = "string"
autonomousMaintenanceScheduleType = "string"
backupRetentionPeriodInDays = int
characterSet = "string"
computeCount = int
computeModel = "string"
cpuCoreCount = int
customerContacts = [
{
email = "string"
}
]
databaseEdition = "string"
dataStorageSizeInGbs = int
dataStorageSizeInTbs = int
dbVersion = "string"
dbWorkload = "string"
displayName = "string"
isAutoScalingEnabled = bool
isAutoScalingForStorageEnabled = bool
isLocalDataGuardEnabled = bool
isMtlsConnectionRequired = bool
isPreviewVersionWithServiceTermsAccepted = bool
licenseModel = "string"
localAdgAutoFailoverMaxDataLossLimit = int
longTermBackupSchedule = {
isDisabled = bool
repeatCadence = "string"
retentionPeriodInDays = int
timeOfBackup = "string"
}
ncharacterSet = "string"
openMode = "string"
peerDbId = "string"
permissionLevel = "string"
privateEndpointIp = "string"
privateEndpointLabel = "string"
role = "string"
scheduledOperationsList = [
{
dayOfWeek = {
name = "string"
}
scheduledStartTime = "string"
scheduledStopTime = "string"
}
]
subnetId = "string"
vnetId = "string"
whitelistedIps = [
"string"
]
dataBaseType = "string"
// For remaining properties, see AutonomousDatabaseBaseProperties objects
}
}
}
AutonomousDatabaseBaseProperties objects
Set the dataBaseType property to specify the type of object.
For Clone, use:
{
cloneType = "string"
dataBaseType = "Clone"
refreshableModel = "string"
source = "string"
sourceId = "string"
timeUntilReconnectCloneEnabled = "string"
}
For CloneFromBackupTimestamp, use:
{
cloneType = "string"
dataBaseType = "CloneFromBackupTimestamp"
source = "BackupFromTimestamp"
sourceId = "string"
timestamp = "string"
useLatestAvailableBackupTimeStamp = bool
}
For CrossRegionDisasterRecovery, use:
{
dataBaseType = "CrossRegionDisasterRecovery"
isReplicateAutomaticBackups = bool
remoteDisasterRecoveryType = "string"
source = "CrossRegionDisasterRecovery"
sourceId = "string"
sourceLocation = "string"
sourceOcid = "string"
}
For Regular, use:
{
dataBaseType = "Regular"
}
Property Values
Oracle.Database/autonomousDatabases
| Name | Description | Value |
|---|---|---|
| location | The geo-location where the resource lives | string (required) |
| name | The resource name | string Constraints: Min length = 1 Max length = 30 Pattern = .* (required) |
| properties | The resource-specific properties for this resource. | AutonomousDatabaseBaseProperties |
| tags | Resource tags | Dictionary of tag names and values. |
| type | The resource type | "Oracle.Database/autonomousDatabases@2025-12-01-preview" |
AutonomousDatabaseBaseProperties
| Name | Description | Value |
|---|---|---|
| adminPassword | Admin password. | string Constraints: Sensitive value. Pass in as a secure parameter. |
| autonomousDatabaseId | Autonomous Database ID | string |
| autonomousMaintenanceScheduleType | The maintenance schedule type of the Autonomous Database Serverless. | 'Early' 'Regular' |
| backupRetentionPeriodInDays | Retention period, in days, for long-term backups | int |
| characterSet | The character set for the autonomous database. | string Constraints: Min length = 1 Max length = 255 |
| computeCount | The compute amount (CPUs) available to the database. | int Constraints: Min value = 1 Max value = 512 |
| computeModel | The compute model of the Autonomous Database. | 'ECPU' 'OCPU' |
| cpuCoreCount | The number of CPU cores to be made available to the database. | int Constraints: Min value = 1 Max value = 128 |
| customerContacts | Customer Contacts. | CustomerContact[] |
| databaseEdition | The Oracle Database Edition that applies to the Autonomous databases. | 'EnterpriseEdition' 'StandardEdition' |
| dataBaseType | Set to 'Clone' for type AutonomousDatabaseCloneProperties. Set to 'CloneFromBackupTimestamp' for type AutonomousDatabaseFromBackupTimestampProperties. Set to 'CrossRegionDisasterRecovery' for type AutonomousDatabaseCrossRegionDisasterRecoveryProperties. Set to 'Regular' for type AutonomousDatabaseProperties. | 'Clone' 'CloneFromBackupTimestamp' 'CrossRegionDisasterRecovery' 'Regular' (required) |
| dataStorageSizeInGbs | The size, in gigabytes, of the data volume that will be created and attached to the database. | int Constraints: Min value = 20 Max value = 393216 |
| dataStorageSizeInTbs | The quantity of data in the database, in terabytes. | int Constraints: Min value = 1 Max value = 384 |
| dbVersion | A valid Oracle Database version for Autonomous Database. | string Constraints: Min length = 1 Max length = 255 |
| dbWorkload | The Autonomous Database workload type | 'AJD' 'APEX' 'DW' 'LH' 'OLTP' |
| displayName | The user-friendly name for the Autonomous Database. | string Constraints: Min length = 1 Max length = 255 |
| isAutoScalingEnabled | Indicates if auto scaling is enabled for the Autonomous Database CPU core count. | bool |
| isAutoScalingForStorageEnabled | Indicates if auto scaling is enabled for the Autonomous Database storage. | bool |
| isLocalDataGuardEnabled | Indicates whether the Autonomous Database has local or called in-region Data Guard enabled. | bool |
| isMtlsConnectionRequired | Specifies if the Autonomous Database requires mTLS connections. | bool |
| isPreviewVersionWithServiceTermsAccepted | Specifies if the Autonomous Database preview version is being provisioned. | bool |
| licenseModel | The Oracle license model that applies to the Oracle Autonomous Database. The default is LICENSE_INCLUDED. | 'BringYourOwnLicense' 'LicenseIncluded' |
| localAdgAutoFailoverMaxDataLossLimit | Parameter that allows users to select an acceptable maximum data loss limit in seconds, up to which Automatic Failover will be triggered when necessary for a Local Autonomous Data Guard | int Constraints: Min value = 0 Max value = 3600 |
| longTermBackupSchedule | Details for the long-term backup schedule. | LongTermBackUpScheduleDetails |
| ncharacterSet | The character set for the Autonomous Database. | string Constraints: Min length = 1 Max length = 255 |
| openMode | Indicates the Autonomous Database mode. | 'ReadOnly' 'ReadWrite' |
| peerDbId | The Azure resource ID of the Disaster Recovery peer database, which is located in a different region from the current peer database. | string Constraints: Min length = 1 Max length = 255 |
| permissionLevel | The Autonomous Database permission level. | 'Restricted' 'Unrestricted' |
| privateEndpointIp | The private endpoint Ip address for the resource. | string |
| privateEndpointLabel | The resource's private endpoint label. | string |
| role | The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled. | 'BackupCopy' 'DisabledStandby' 'Primary' 'SnapshotStandby' 'Standby' |
| scheduledOperationsList | The list of scheduled operations. | ScheduledOperationsType[] |
| subnetId | Client subnet | string |
| vnetId | VNET for network connectivity | string |
| whitelistedIps | The client IP access control list (ACL). This is an array of CIDR notations and/or IP addresses. Values should be separate strings, separated by commas. Example: ['1.1.1.1','1.1.1.0/24','1.1.2.25'] | string Constraints: Min length = 1 Max length = 1024[] |
AutonomousDatabaseCloneProperties
| Name | Description | Value |
|---|---|---|
| cloneType | The Autonomous Database clone type. | 'Full' 'Metadata' (required) |
| dataBaseType | Database type to be created. | 'Clone' (required) |
| refreshableModel | The refresh mode of the clone. | 'Automatic' 'Manual' |
| source | The source of the database. | 'BackupFromId' 'BackupFromTimestamp' 'CloneToRefreshable' 'CrossRegionDataguard' 'CrossRegionDisasterRecovery' 'Database' 'None' |
| sourceId | The Azure resource ID of the Autonomous Database that was cloned to create the current Autonomous Database. | string (required) |
| timeUntilReconnectCloneEnabled | The time and date as an RFC3339 formatted string, e.g., 2022-01-01T12:00:00.000Z, to set the limit for a refreshable clone to be reconnected to its source database. | string |
AutonomousDatabaseCrossRegionDisasterRecoveryProperties
| Name | Description | Value |
|---|---|---|
| dataBaseType | Database type to be created. | 'CrossRegionDisasterRecovery' (required) |
| isReplicateAutomaticBackups | If true, 7 days worth of backups are replicated across regions for Cross-Region ADB or Backup-Based DR between Primary and Standby. If false, the backups taken on the Primary are not replicated to the Standby database. | bool |
| remoteDisasterRecoveryType | Indicates the cross-region disaster recovery (DR) type of the standby Autonomous Database Serverless instance. Autonomous Data Guard (ADG) DR type provides business critical DR with a faster recovery time objective (RTO) during failover or switchover. Backup-based DR type provides lower cost DR with a slower RTO during failover or switchover. | 'Adg' 'BackupBased' (required) |
| source | The source of the database. | 'CrossRegionDisasterRecovery' (required) |
| sourceId | The Azure ID of the source Autonomous Database that will be used to create a new peer database for the DR association. | string (required) |
| sourceLocation | The name of the region where source Autonomous Database exists. | string |
| sourceOcid | The source database ocid | string Constraints: Min length = 1 Max length = 255 |
AutonomousDatabaseFromBackupTimestampProperties
| Name | Description | Value |
|---|---|---|
| cloneType | The Autonomous Database clone type. | 'Full' 'Metadata' (required) |
| dataBaseType | Database type to be created. | 'CloneFromBackupTimestamp' (required) |
| source | The source of the database. | 'BackupFromTimestamp' (required) |
| sourceId | The ID of the source Autonomous Database that you will clone to create a new Autonomous Database. | string (required) |
| timestamp | The timestamp specified for the point-in-time clone of the source Autonomous Database. The timestamp must be in the past. | string |
| useLatestAvailableBackupTimeStamp | Clone from latest available backup timestamp. | bool |
AutonomousDatabaseProperties
| Name | Description | Value |
|---|---|---|
| dataBaseType | Database type to be created. | 'Regular' (required) |
CustomerContact
| Name | Description | Value |
|---|---|---|
| The email address used by Oracle to send notifications regarding databases and infrastructure. | string Constraints: Min length = 1 Max length = 320 (required) |
DayOfWeek
| Name | Description | Value |
|---|---|---|
| name | Name of the day of the week. | 'Friday' 'Monday' 'Saturday' 'Sunday' 'Thursday' 'Tuesday' 'Wednesday' (required) |
LongTermBackUpScheduleDetails
| Name | Description | Value |
|---|---|---|
| isDisabled | Indicates if the long-term backup schedule should be deleted. The default value is FALSE. |
bool |
| repeatCadence | The frequency of the long-term backup schedule | 'Monthly' 'OneTime' 'Weekly' 'Yearly' |
| retentionPeriodInDays | Retention period, in days, for backups. | int Constraints: Min value = 90 Max value = 2558 |
| timeOfBackup | The timestamp for the long-term backup schedule. For a MONTHLY cadence, months having fewer days than the provided date will have the backup taken on the last day of that month. | string |
ScheduledOperationsType
| Name | Description | Value |
|---|---|---|
| dayOfWeek | Day of week | DayOfWeek (required) |
| scheduledStartTime | auto start time. value must be of ISO-8601 format HH:mm | string Constraints: Min length = 1 Max length = 50 |
| scheduledStopTime | auto stop time. value must be of ISO-8601 format HH:mm | string Constraints: Min length = 1 Max length = 50 |
TrackedResourceTags
| Name | Description | Value |
|---|