{"id":24780553,"url":"https://github.com/vippsas/backstage-azure-resources-backend","last_synced_at":"2025-10-12T05:30:45.005Z","repository":{"id":58637554,"uuid":"530650583","full_name":"vippsas/backstage-azure-resources-backend","owner":"vippsas","description":"A backend plugin to pull information from Azure resource graph","archived":false,"fork":false,"pushed_at":"2024-10-02T08:03:39.000Z","size":24,"stargazers_count":9,"open_issues_count":5,"forks_count":10,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-09-20T22:44:19.239Z","etag":null,"topics":["azure","backstage"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vippsas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-30T12:38:31.000Z","updated_at":"2024-04-25T05:16:57.000Z","dependencies_parsed_at":"2024-03-22T08:50:32.346Z","dependency_job_id":"4e70908e-aa16-4aed-b4e8-ae640d46339d","html_url":"https://github.com/vippsas/backstage-azure-resources-backend","commit_stats":{"total_commits":18,"total_committers":2,"mean_commits":9.0,"dds":0.2222222222222222,"last_synced_commit":"3c7b45580a2c1ead2038577c947eeab24cfe1c26"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vippsas/backstage-azure-resources-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vippsas%2Fbackstage-azure-resources-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vippsas%2Fbackstage-azure-resources-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vippsas%2Fbackstage-azure-resources-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vippsas%2Fbackstage-azure-resources-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vippsas","download_url":"https://codeload.github.com/vippsas/backstage-azure-resources-backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vippsas%2Fbackstage-azure-resources-backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010327,"owners_count":26084738,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure","backstage"],"created_at":"2025-01-29T10:33:47.208Z","updated_at":"2025-10-12T05:30:44.736Z","avatar_url":"https://github.com/vippsas.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Azure resources backend plugin\n\nThe backend API plugin used by the frontend plugin. This plugin wraps a few Azure Resource Graph queries to pull information about your Azure resource resources in relation to a backstage entity.\n\n\n## Getting started\n\nAdd following to your backstage instance\n\n```\n# From the Backstage root directory\ncd packages/backend\nyarn add @vippsno/plugin-azure-resources-backend\n```\n\n```TypeScript\n/// ./packages/backend/src/plugins/azure-resources-backend.ts\nimport { createRouter } from '@vippsno/plugin-azure-resources-backend';\nimport { Router } from 'express';\nimport { PluginEnvironment } from '../types';\n\nexport default async function createPlugin(\n  env: PluginEnvironment,\n): Promise\u003cRouter\u003e {\n  return await createRouter({\n    logger: env.logger,\n    config: env.config,\n  });\n}\n```\n\n```TypeScript\n/// ./packages/backend/src/index.ts\n\nimport azureResourcesBackend from './plugins/azure-resources-backend';\nconst azureResourcesBackendEnv = useHotMemoize(module, () =\u003e createEnv('azure-resources-backend'));\napiRouter.use('/azure-resources', await azureResourcesBackend(azureResourcesBackendEnv));\n```\n\n## Authentication with Azure\n\nIn order for this plugin to work, you'll need an identity with `read` access at the scope you pull information from.  \nDepending on where your backstage instance is running, there are a few ways to authenticate. The plugin uses `@azure/identity` which supports `managed identities` and `application registration`\n\n### Using managed identity\n\nIn case your backstage instance runs on an Azure resource type that supports system assigned managed identity (MSI), the only thing you need to do is assign the `service principal` with read permission on the `resource group`, `subscription(s)` or `management group`, depending on your environment.\n\n### Using app registration\n\nCreate a [new Application Registration](https://docs.microsoft.com/azure/active-directory/develop/quickstart-register-app?WT.mc_id=AZ-MVP-5003437), and assign the SPN appropriate permissions. Then add the following to your `app-config.yaml` and/or `app-config.local.yaml`. If using MSI you do not add this configuration.\n\n```yaml\nazureResources:\n  clientId: ab77a497-102e-4c4d-9853-3aca7e733245 # the app registrations clientId\n  clientSecret: ~AcbyiAM2YUMQwUSqhzg # a secret created for the app registration\n  tenantId: f02ae3d3-be5c-4b9d-9d6e-8192055d4083 # your Azure tenant id\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvippsas%2Fbackstage-azure-resources-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvippsas%2Fbackstage-azure-resources-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvippsas%2Fbackstage-azure-resources-backend/lists"}