Open pierskarsenbarg opened 3 years ago
Hey @pierskarsenbarg could you capture the logs and see if we are sending it to the API correctly in the HTTP request body?
@mikhailshilkov Logs here: out.txt
Here is the relevant request:
PUT https://management.azure.com/subscriptions/32b9cb2e-69be-4040-80a6-02cd6b2cc5ec/resourceGroups/autopauseRg8a43b750/providers/Microsoft.Sql/servers/pk-sql-server-destination/databases/dbcopy?api-version=2020-11-01-preview
{
"location": "uksouth",
"properties": {
"autoPauseDelay": -1,
"createMode": "Copy",
"sourceDatabaseId": "/subscriptions/32b9cb2e-69be-4040-80a6-02cd6b2cc5ec/resourceGroups/autopauseRg8a43b750/providers/Microsoft.Sql/servers/pk-sql-server-original/databases/testdb"
},
"sku": {
"name": "GP_S_Gen5_1",
"tier": "GeneralPurpose"
}
}
It all looks good to me... I suspect that's a particularity of Azure then.
The response is then:
{
"sku": {
"name": "GP_S_Gen5",
"tier": "GeneralPurpose",
"family": "Gen5",
"capacity": 1
},
"kind": "v12.0,user,vcore,serverless",
"properties": {
"collation": "SQL_Latin1_General_CP1_CI_AS",
"maxSizeBytes": 1073741824,
"status": "Online",
"databaseId": "212e11b7-8f9b-4033-9ea8-617c8ac6cfd6",
"creationDate": "2021-09-29T16:12:32.677Z",
"currentServiceObjectiveName": "GP_S_Gen5_1",
"requestedServiceObjectiveName": "GP_S_Gen5_1",
"defaultSecondaryLocation": "ukwest",
"catalogCollation": "SQL_Latin1_General_CP1_CI_AS",
"zoneRedundant": false,
"maxLogSizeBytes": 68719476736,
"readScale": "Disabled",
"currentSku": {
"name": "GP_S_Gen5",
"tier": "GeneralPurpose",
"family": "Gen5",
"capacity": 1
},
"autoPauseDelay": 60,
"currentBackupStorageRedundancy": "Geo",
"requestedBackupStorageRedundancy": "Geo",
"minCapacity": 0.5000,
"maintenanceConfigurationId": "/subscriptions/32b9cb2e-69be-4040-80a6-02cd6b2cc5ec/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default"
},
"location": "uksouth",
"id": "/subscriptions/32b9cb2e-69be-4040-80a6-02cd6b2cc5ec/resourceGroups/autopauseRg8a43b750/providers/Microsoft.Sql/servers/pk-sql-server-destination/databases/dbcopy",
"name": "dbcopy",
"type": "Microsoft.Sql/servers/databases"
}
🤷
Hello!
Issue details
When creating a SQL server and then a another as a copy of the first (code below), even if you set AutoPause to be disabled (
-1
) in both, the source will have it disabled, but on the destination it will be enabled.Code example:
Expected: The destination should have auto-pause disabled Actual: The destination has auto-pause enabled