0

Azure SQL Database Deployment プラグインを使用して Azure DevOps ビルドに bacpac をインポートしようとしています。次のエラーでランダムに失敗する問題 (成功する時間の約 50%):

*** Error importing database:Could not import package.
Error SQL72016: Cannot open database "TestDb" requested by the login. The login failed.
Login failed for user 'TestUser'.
Cannot open database "TestDb" requested by the login. The login failed.
Login failed for user 'TestUser'.
The Azure SQL DACPAC task failed. SqlPackage.exe exited with code 1.Check out how to troubleshoot failures at https://aka.ms/sqlazuredeployreadme#troubleshooting-

デバッグを使用して Azure DevOps ビルドを実行したところ、次のエラーが表示されました。

##[debug]Failed to reach SQL server tcp:testurl.com,1433. Cannot open database "TestDb" requested by the login. The login failed.
##[debug]Login failed for user 'TestUser'.

それ以外の場合、dacpac のインポートは問題なく成功します。azure から dacpac をエクスポートしましたが、互換性に関する警告が表示されません。

SQL でのデータベースの作成に時間がかかりすぎて、インポート機能が失敗するのではないかと思います。これを解決する方法はありますか。

4

1 に答える 1