简体   繁体   中英

Error “The storage URI is not valid” when creating a new SQL Azure database from a bacpac

I'm trying to create a new SQL Azure database from a bacpac file I exported locally and uploaded as a BLOB to a storage account container.

When I choose Import Database on the SQL server and choose to use the uploaded bacpac as the source for the import, the import fails with the error "The storage URI is not valid".

What's wrong?

The error is a little cryptic but this can happen if the name of your bacpac file has a space in it.

My bacpac was called something like "20200122 Database.bacpac" and the space in the name caused the URI to the blob to be deemed invalid.

Removing the space fixed the issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM