Simple plugin that proxies requests to the Azure Portal API through Azure SDK JavaScript libraries.
Inspired by roadie.io AWS Lambda plugin
The following sections will help you get the Azure Sites Backend plugin setup and running.
The Azure plugin requires the following YAML to be added to your app-config.yaml:
azureSites:
domain:
tenantId:
clientId:
clientSecret:
allowedSubscriptions:
- id:
Configuration Details:
-
domain
can be found by visiting the Directories + Subscriptions settings page. Alternatively you can inspect the Azure home URL -https://portal.azure.com/#@<Your_Domain>/
. -
tenantId
can be found by visiting Azure Directory Overview page. - (Optional)
clientId
andclientSecret
can be the same values you used for Azure DevOps Backend or Azure Integration as long as this App Registration has permissions to read your function apps. - (Optional)
allowedSubscriptions
is an array ofid
that will be used to iterate over and look for the specified functions' app.id
can be found the Subscriptions page.
Here's how to get the backend plugin up and running:
The Azure Sites backend plugin has support for the new backend system, here's how you can set that up:
In your packages/backend/src/index.ts
make the following changes:
import { createBackend } from '@backstage/backend-defaults';
const backend = createBackend();
// ... other feature additions
+ backend.add(import('@backstage-community/plugin-azure-sites-backend'));
// ...
backend.start();
-
Now run
yarn start-backend
from the repo root. -
Finally, open
http://localhost:7007/api/azure/health
in a browser, it should return{"status":"ok"}
.