3

i am trying to simply export BACPAC file from azure db to azure blob storage

as mentioned here : https://learn.microsoft.com/en-us/azure/azure-sql/database/database-export

but it is failed with error :

The Azure SQL Server firewall did not allow the operation to connect. To resolve this, please select the "Allow All Azure"checkbox in the Sql Server's configuration blade.

what's the cause of this error i am not sure, do you think i have to enable allow all azure service checkbox in azure db firewall? ( before i took backup and i was not doing this step)

also wanted to mention that both resource azure blob and azure db are in private virtual network.

also i am scared of this : https://www.fmsinc.com/microsoft-azure/sql-server/security.htm

Thanks,

asked Dec 8, 2020 at 10:16
3
  • 1
    "do you think i have to enable allow all azure service checkbox in azure db firewall"? That is exactly what the error states. Yes turning this on allows network access to everyone in Azure, but without a valid login/password, no one is getting in. Just turn it off when you're done. Why do you want to export a bacpac anyway? There are other ways to do it, i.e. attach a VM to your vnet and run the bacpac export from there. Then you don't need to open the firewall to all of Azure, you can just open it to your VM Commented Dec 8, 2020 at 13:27
  • If we enable allow all azure service, the list of the ip's used by the data center: microsoft.com/download/details.aspx?id=56519 may be allowed to connect to the sql. But as what @Nick.McDermaid without a valid login/password, no one is getting in. Commented Dec 8, 2020 at 13:37
  • can anyone of you please redirect a Microsoft link where it state to enable that option for bacpac file export ? creating VM is extra work and maintain it, we do not want to create vm for just db export. Commented Dec 9, 2020 at 9:56

1 Answer 1

3

you have to allow azure services and applications to connect to your database.

Take a look at the firewall rules in Azure sql database: https://learn.microsoft.com/en-us/azure/azure-sql/database/firewall-configure

You can eventually allow azure services to connect to your database in this way: enter image description here

You can disable this option after the export activity. Please, remember that this is not an option of export task but this is a firewall rule of your Azure SQL Database Server.

Consider the export task like an azure service against your database so you have to allow azure to connect as written here: https://learn.microsoft.com/en-us/azure/azure-sql/database/firewall-configure#connections-from-inside-azure

answered Jan 2, 2021 at 20:41

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.