Import backpac into Azure SQL

I am having issues creating an Azure SQL database from an import of a backpac file.

Here is my code.

provider “azurerm” {
version = “=2.35.0”
features {}
subscription_id = var.subscription_id
tenant_id = var.tenant_id
client_id = var.client_id
client_secret = var.client_secret

}

locals {
staccount = “{var.env}{var.sandbox}storage${var.tenant}”
sqlvm_name = “{var.env}{var.sandbox}sql${var.tenant}”

}

data “azurerm_resource_group” “ResourceGroup” {
name = var.resource_group_name

}

resource “azurerm_storage_account” “ASQLAccount” {
name = local.staccount
resource_group_name = data.azurerm_resource_group.ResourceGroup.name
location = data.azurerm_resource_group.ResourceGroup.location
account_tier = “Standard”
account_replication_type = “LRS”

}

resource “azurerm_storage_container” “ASQLContainer” {
name = “backup”
storage_account_name = azurerm_storage_account.ASQLAccount.name
container_access_type = “private”

}

resource “azurerm_storage_blob” “example” {
name = “testdb.bacpac”
storage_account_name = azurerm_storage_account.ASQLAccount.name
storage_container_name = azurerm_storage_container.ASQLContainer.name
type = “Block”
source = “…/files/testdb.bacpac”
}

resource “azurerm_sql_server” “ASQL” {
name = local.sqlvm_name
resource_group_name = data.azurerm_resource_group.ResourceGroup.name
location = data.azurerm_resource_group.ResourceGroup.location
version = “12.0”
administrator_login = “4dm1n157r470r”
administrator_login_password = “4-v3ry-53cr37-p455w0rd”

tags = {
environment = “production”
}
}

resource “azurerm_sql_firewall_rule” “example” {
name = “FirewallRule1”
resource_group_name = data.azurerm_resource_group.ResourceGroup.name
server_name = azurerm_sql_server.ASQL.name
start_ip_address = “MyPublicIP”
end_ip_address = “MyPublicIP”

}

resource “azurerm_sql_database” “ASQLDB” {
name = “myexamplesqldatabase”
resource_group_name = data.azurerm_resource_group.ResourceGroup.name
location = data.azurerm_resource_group.ResourceGroup.location
server_name = azurerm_sql_server.ASQL.name
create_mode = “default”

timeouts {
create = “120m”
}

import {
storage_uri = azurerm_storage_blob.example.url
storage_key = azurerm_storage_account.ASQLAccount.primary_access_key
storage_key_type = “StorageAccessKey”
administrator_login = “4dm1n157r470r”
administrator_login_password = “4-v3ry-53cr37-p455w0rd”
authentication_type = “SQL”
}
tags = {
environment = “production”
}

}

currently i get an error an i am not sure what i am missing or what the error means. Any help will be apricated. I am using terraform 0.12.26

Error: Future#WaitForCompletion: the number of retries has been exceeded: StatusCode=400 – Original Error: Code=“InProgress” Message=“The async operation failed.” InnerError={“unmarshalError”:“json: cannot unmarshal array into Go struct field serviceError2.details of type map[string]interface {}”} AdditionalInfo=[{“blobUri”:“https://myteststorage.blob.core.windows.net/backup/testdb.bacpac",“databaseName”:“myexamplesqldatabase”,“errorMessage”:null,“lastModifiedTime”:"3/16/2021 5:31:36 PM”,“queuedTime”:“3/16/2021 5:21:36 PM”,“requestId”:“e8a2f93e-f13e-4b6d-bf48-aa01c7e86b5f”,“requestType”:“ImportToExistingDatabase”,“serverName”:“qcfoesqlsvc01”,“status”:“Running, Progress = 1 %”}]

on main.tf line 63, in resource “azurerm_sql_database” “ASQLDB”:
63: resource “azurerm_sql_database” “ASQLDB” {
error: