backstage: 🐛 Bug Report: Azure integration

📜 Description

When I create a new app with npx @backstage/create-app@latest and attempt to integrate with azure using PAT token or service principal auth I get the following error message in the browser:

index.esm.js:232 Failed to read configuration array at 'credentials' as it does not have any visible elements. 
See https://backstage.io/docs/conf/defining#visibility for instructions on how to make it visible.

app.config.yaml

integrations:
  azure:
    - host: dev.azure.com
      credentials:
        - clientId: xxxxxxxxxxxxxx
          clientSecret: xxxxxxxxxxxxxxxx
          tenantId: xxxxxxxxxxxxxxx

or

integrations:
  azure:
    - host: dev.azure.com
      credentials:
        -  personalAccessToken: xxxxxxxxxxxxxxxxxx

Issue is probably related to this

👍 Expected behavior

message should not appear, possibly blocking the azureDevOps plugin where I can see builds and pipelines

👎 Actual Behavior with Screenshots

image

👟 Reproduction steps

npx @backstage/create-app@latest

replace you app-config.yaml with the values above or just try to integrate it with azure devops and a PAT token or SP

📃 Provide the context for the Bug.

I think is blocking my azure devops plugin where Im trying to see builds and pipelines

🖥️ Your Environment

OS: MacOS Ventura node: v18.14.1 yarn: v1.22.19 backstage: 1.18.3

👀 Have you spent some time to check if this bug has been raised before?

  • I checked and didn’t find similar issue

🏢 Have you read the Code of Conduct?

Are you willing to submit PR?

None

About this issue

  • Original URL
  • State: closed
  • Created 9 months ago
  • Comments: 15 (1 by maintainers)

Most upvoted comments

Thanks everyone for participating here, it looks like you managed to get it working, so we’ve closed the issue.

OS:   Darwin 22.6.0 - darwin/arm64
node: v18.14.1
yarn: 1.22.19
cli:  0.22.13 (installed)
backstage:  1.18.0

Dependencies:
  @backstage/app-defaults                                          1.4.3
  @backstage/backend-app-api                                       0.5.4
  @backstage/backend-common                                        0.19.6
  @backstage/backend-dev-utils                                     0.1.1
  @backstage/backend-openapi-utils                                 0.0.4
  @backstage/backend-plugin-api                                    0.6.4
  @backstage/backend-tasks                                         0.5.9
  @backstage/catalog-client                                        1.4.4
  @backstage/catalog-model                                         1.4.2
  @backstage/cli-common                                            0.1.12
  @backstage/cli-node                                              0.1.4
  @backstage/cli                                                   0.22.13
  @backstage/config-loader                                         1.5.0
  @backstage/config                                                1.1.0
  @backstage/core-app-api                                          1.10.0
  @backstage/core-components                                       0.13.5
  @backstage/core-plugin-api                                       1.6.0
  @backstage/errors                                                1.2.2
  @backstage/eslint-plugin                                         0.1.3
  @backstage/integration-aws-node                                  0.1.6
  @backstage/integration-react                                     1.1.19
  @backstage/integration                                           1.7.0
  @backstage/plugin-api-docs                                       0.9.11
  @backstage/plugin-app-backend                                    0.3.52
  @backstage/plugin-app-node                                       0.1.4
  @backstage/plugin-auth-backend-module-gcp-iap-provider           0.1.1
  @backstage/plugin-auth-backend-module-github-provider            0.1.1
  @backstage/plugin-auth-backend-module-gitlab-provider            0.1.1
  @backstage/plugin-auth-backend-module-google-provider            0.1.1
  @backstage/plugin-auth-backend-module-oauth2-provider            0.1.1
  @backstage/plugin-auth-backend                                   0.19.1
  @backstage/plugin-auth-node                                      0.3.1
  @backstage/plugin-azure-devops-backend                           0.4.1
  @backstage/plugin-azure-devops-common                            0.3.1
  @backstage/plugin-azure-devops                                   0.3.6
  @backstage/plugin-catalog-backend-module-scaffolder-entity-model 0.1.1
  @backstage/plugin-catalog-backend                                1.13.2
  @backstage/plugin-catalog-common                                 1.0.16
  @backstage/plugin-catalog-graph                                  0.2.36
  @backstage/plugin-catalog-import                                 0.10.0
  @backstage/plugin-catalog-node                                   1.4.5
  @backstage/plugin-catalog-react                                  1.8.4
  @backstage/plugin-catalog                                        1.13.0
  @backstage/plugin-events-node                                    0.2.13
  @backstage/plugin-github-actions                                 0.6.5
  @backstage/plugin-org                                            0.6.14
  @backstage/plugin-permission-common                              0.7.8
  @backstage/plugin-permission-node                                0.7.15
  @backstage/plugin-permission-react                               0.4.15
  @backstage/plugin-proxy-backend                                  0.4.1
  @backstage/plugin-scaffolder-backend                             1.17.2
  @backstage/plugin-scaffolder-common                              1.4.1
  @backstage/plugin-scaffolder-node                                0.2.4
  @backstage/plugin-scaffolder-react                               1.5.5
  @backstage/plugin-scaffolder                                     1.15.0
  @backstage/plugin-search-backend-module-catalog                  0.1.8
  @backstage/plugin-search-backend-module-pg                       0.5.13
  @backstage/plugin-search-backend-module-techdocs                 0.1.8
  @backstage/plugin-search-backend-node                            1.2.8
  @backstage/plugin-search-backend                                 1.4.4
  @backstage/plugin-search-common                                  1.2.6
  @backstage/plugin-search-react                                   1.7.0
  @backstage/plugin-search                                         1.4.0
  @backstage/plugin-tech-radar                                     0.6.8
  @backstage/plugin-techdocs-backend                               1.7.1
  @backstage/plugin-techdocs-module-addons-contrib                 1.1.0
  @backstage/plugin-techdocs-node                                  1.8.1
  @backstage/plugin-techdocs-react                                 1.1.11
  @backstage/plugin-techdocs                                       1.7.0
  @backstage/plugin-user-settings                                  0.7.10
  @backstage/release-manifests                                     0.0.10
  @backstage/test-utils                                            1.4.3
  @backstage/theme                                                 0.4.2
  @backstage/types                                                 1.1.1
  @backstage/version-bridge                                        1.0.5