Share via

SqlAzureDacpacDeployment@1 - Analyzing deployment(failed)

IZMAR Mohamed (CSC/MST) 6 Reputation points
2022-12-20T09:00:45.063+00:00

Hello,
I am working with the Azure SQL Database Deployment task SqlAzureDacpacDeployment@1 in Azure DevOps and getting the below error: ==> ##[error]*** Index was outside the bounds of the array.

Publishing to database 'cover-db' on server 'cover-sqlsrv.database.windows.net'.
Initializing deployment (Start)
Initializing deployment (Complete)
Analyzing deployment plan (Start)
Analyzing deployment plan (Failed)
Time elapsed 0:00:08.37

[error]*** Index was outside the bounds of the array.

[error]The Azure SQL DACPAC task failed. SqlPackage.exe exited with code 1.

Check out how to troubleshoot failures at https://aka.ms/sqlazuredeployreadme#troubleshooting-
Finishing: Deploy Dacpac Encrypted to SQLDB

YML task that i am using :

  • task: SqlAzureDacpacDeployment@1
    displayName: 'Deploy Dacpac Encrypted to SQLDB'
    inputs:
    azureSubscription: 'xxxxx'
    AuthenticationType: 'connectionString'
    ConnectionString: 'Server=$(SQLSERVER).database.windows.net;Database=$(SQLDATABASE);Column Encryption Setting=enabled;'
    deployType: 'DacpacTask'
    DeploymentAction: 'Publish'
    AdditionalArguments: '/AccessToken:$(sqlToken) /AzureKeyVaultAuthMethod:ClientIdSecret /ClientId:$env:servicePrincipalId /Secret:$env:servicePrincipalKey /p:ExcludeObjectType="ColumnEncryptionKeys" /p:ExcludeObjectType="ColumnMasterKeys"'
    DacpacFile: $(Build.SourcesDirectory)/data/$(DacFileEncrypted)
    IpDetectionMethod: 'AutoDetect'

any help Would be appreciated
Thanks in advance

Azure SQL Database

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.