Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login type "inherit" fails with error "Cannot bind argument to parameter 'String' because it is null" #127

Open
traberc opened this issue Sep 20, 2023 · 2 comments

Comments

@traberc
Copy link

traberc commented Sep 20, 2023

I am updating an existing deployment using SPN to use the service connection identity instead, using "loginType: Inherit". This fails with the error "Cannot bind argument to parameter 'String' because it is null". In my case, I am using an ADO managed identity service connection.

ADO task output:

==============================================================================
Task         : Tabular Database Deployment
Description  : Deploy tabular databases to Azure Analysis Services or Power BI Premium
Version      : 1.5.11
Author       : Jan Pieter Posthuma
Help         : [More Information](https://github.com/liprec/vsts-release-aas)
==============================================================================
Added TLS 1.2 in session.
##[warning]The 'overwrite' option will be deprecated in a future version.
##[error]Cannot bind argument to parameter 'String' because it is null.

Working YAML task definition using SPN:

  - task: deploy-aas-db@1
    displayName: 'GeneralLedger: Deploy model'
    inputs:
      # Azure DevOps connection info
      connectedServiceNameSelector: connectedServiceNameARM
      connectedServiceNameARM: ${{ parameters.ServiceConnectionName }}
      # Analysis Services connection info
      aasServer: ${{ parameters.ServerURL }}
      databaseName: ${{ parameters.DatabaseName }}
      # Authentication type
      loginType: SPN
      # Type-specific authentication details
      appId: ${{ parameters.SpnId }}
      appKey: ${{ parameters.SpnPassword }}
      tenantId: ${{ parameters.TenantId }}
      # Model deployment info
      pathToModel: ${{ parameters.BuildArtifactPath }}/${{ parameters.PathToModel }}
      partitionDeployment: retainpartitions
      roleDeployment: deployrolesretainmembers
      # Source connection info
      connectionType: ${{ parameters.SourceConnectionType }}
      sourceSQLDatabase: ${{ parameters.SourceSqlDatabaseName }}
      sourceSQLPassword: ${{ parameters.SourceSqlPassword }}
      sourceSQLServer: ${{ parameters.SourceSqlServerFqdn }}
      sourceSQLUsername: ${{ parameters.SourceSqlUserName }}

Failing task definition using "inherit". The only difference is using "loginType: Inherit" and leaving off the appId, 'appKey, and tenantId` parameters, although I did also try leaving those parameters in with both real values and blanks.

  - task: deploy-aas-db@1
    displayName: 'GeneralLedger: Deploy model'
    inputs:
      # Azure DevOps connection info
      connectedServiceNameSelector: connectedServiceNameARM
      connectedServiceNameARM: ${{ parameters.ServiceConnectionName }}
      # Analysis Services connection info
      aasServer: ${{ parameters.ServerURL }}
      databaseName: ${{ parameters.DatabaseName }}
      # Authentication type
      loginType: Inherit
      # Model deployment info
      pathToModel: ${{ parameters.BuildArtifactPath }}/${{ parameters.PathToModel }}
      partitionDeployment: retainpartitions
      roleDeployment: deployrolesretainmembers
      # Source connection info
      connectionType: ${{ parameters.SourceConnectionType }}
      sourceSQLDatabase: ${{ parameters.SourceSqlDatabaseName }}
      sourceSQLPassword: ${{ parameters.SourceSqlPassword }}
      sourceSQLServer: ${{ parameters.SourceSqlServerFqdn }}
      sourceSQLUsername: ${{ parameters.SourceSqlUserName }}
Copy link

stale bot commented Mar 17, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Mar 17, 2024
@pavan3175
Copy link

is there any update on this issue ?

@stale stale bot removed the wontfix label Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants