The Azure Spring App plugin displays status and configuration information about your Azure Spring Apps cluster to Backstage.
Plugin has only been tested using Enterprise tier
In order to use the Azure Spring Application plugin, you must have a working Azure Spring Application cluster.
Follow the installation process below. Using yarn add
causes the plugin to fail
"@enfuse/plugin-azure-spring-apps": "^1.1.3"
and run
yarn install
/* packages/app/src/components/catalog/EntityPage.tsx */
...
import { AzureBuildpacksPage , AsaeAppsListPage} from '@enfuse/plugin-azure-spring-apps';
const systemPage = (
...
//Buildpacks
<EntityLayout.Route
path="/azure-buildpacks" title="Azure Buildpacks">
<AzureBuildpacksPage></AzureBuildpacksPage>
</EntityLayout.Route>
//Apps List
<EntityLayout.Route
path="/asae-apps-list" title="App List">
<AsaeAppsListPage></AsaeAppsListPage>
</EntityLayout.Route>
// or wherever your heart desires
//app-config.yml or app-config-local.yml
azureBuildpacks:
credentials:
tenantId: <tenant-id>
clientId: <client-id>
You also need to provide a tenantId and a clientId from an AD app registration in order for our app to be able to authenticate users (guide to generate can be found here). The plugin will authenticate the user in a popup window. Whoever signs in should have the appropriate permissions (READ) on the cluster.
The entity you choose to represent your ASAE cluster shouold include the following anotations
Create the entity using this template:
//asae-entity.yml
...
metadata:
name: asae-entity-sample
annotations:
dev.azure.com/resource-group: <resource-group>
dev.azure.com/service-name: <asae-service-name>
dev.azure.com/build-service-name: default // this can only be default for now
dev.azure.com/subscription-id: <subscription-id>
Point to the entity in your application catalog file. E.g.:
catalog:
// [...]
locations:
// [...]
// ASAE entities
- type: file
target: ../../examples/asae-entity.yaml
rules:
- allow: [ System ]
You can find this information on the Azure Spring App cluster overview page, see screenshot below:
Build service name refers to the buils service that provided the builder, which is the Tanzu Build Service in ASAE.