I followed instructions from this post and it doesn't work for me. When I run the New-AzSqlDatabaseExport command in debug mode I get the following:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code:
BadRequest
Headers:
Pragma : no-cache
x-ms-request-id : db664f13-c094-443a-983a-15f5d7549ff8
x-ms-ratelimit-remaining-subscription-writes: 1199
x-ms-correlation-request-id : 59c3c546-c567-4b16-a34a-f3866e816436
x-ms-routing-request-id : NORTHEUROPE:20220406T082415Z:59c3c546-c567-4b16-a34a-f3866e816436
Strict-Transport-Security : max-age=31536000; includeSubDomains
X-Content-Type-Options : nosniff
Cache-Control : no-cache
Date : Wed, 06 Apr 2022 08:24:15 GMT
Server : Microsoft-HTTPAPI/2.0
Body:
{
"error": {
"code": "InvalidImportExportParameter",
"message": "The ImportExport input parameter
/subscriptions/xxxxxxxxxxxxx/resourcegroups/ism-prod-backend-uks/providers/Microsoft.Storage/storageAccounts/ismprodbackenduks is
invalid. The Storage Account resource ID used for network isolation should be formatted like:
'/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Storage/storageAccounts/test-privatelink'."
}
}
When I run Export with private link from Azure Portal it works fine.