-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQL Server list restorable databases and recoverable databases fails #10162
Comments
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @azureSQLGitHub. |
@yupwei68 I just add label for the issue you are facing. We will need help from sql service team. Thanks. |
And the go sdk raises error: StatusCode=404 -- Original Error: json: cannot unmarshal array into Go struct field serviceError2.details of type map[string]interface {} |
Currently I can reproduce this error only on sql server listing recovery databases. After you have created a sql server, and you list the recovery databases. It shows error:
|
Tilak has helped to investigate the recoverable databases api. It appears it's one feature of the recoverable databases, which get data from the secondary region. Thus, it might takes couple of minutes or couple of hours to synchronize the data to the recoverable databases api. |
…ped_databases` in `azuerrm_mssql_server` (#7917) Fix #6502 #7594 === RUN TestAccAzureRMMsSqlDatabase_createRestoreMode === PAUSE TestAccAzureRMMsSqlDatabase_createRestoreMode === CONT TestAccAzureRMMsSqlDatabase_createRestoreMode --- PASS: TestAccAzureRMMsSqlDatabase_createRestoreMode (2016.02s) Sql server listing recoverableDatabases Api has problems, thus it's excluded in the PR: Azure/azure-rest-api-specs#10162
I have requests to list restorable and recoverable databases. The resource group and the sql server always exist. Sometimes it returns success, sometimes it returns "resource group not found", sometimes it returns "sql server not found".
Would you mind taking a look?
Get https://management.azure.com/subscriptions/{{subscriptionId}}/resourceGroups/acctestRG-mssql-yup/providers/Microsoft.Sql/servers/acctestsqlserveryup/recoverableDatabases?api-version=2014-04-01
{
"error": {
"code": "ResourceGroupNotFound",
"message": "Resource group 'acctestRG-mssql-yup' could not be found."
}
}
Get https://management.azure.com/subscriptions/{{subscriptionId}}/resourceGroups/acctestRG-mssql-yup/providers/Microsoft.Sql/servers/acctestsqlserveryup/restorableDroppedDatabases?api-version=2014-04-01
{
"error": {
"code": "ResourceGroupNotFound",
"message": "Resource group 'acctestRG-mssql-yup' could not be found."
}
}
The text was updated successfully, but these errors were encountered: