fix annotation

fix readme

Signed-off-by: Wesley Pattison <wesley.pattison@friss.com>
This commit is contained in:
Wesley Pattison
2022-09-30 18:36:17 +02:00
parent a690bf9d59
commit d13018990e
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ The following sections will help you get the Azure Backend plugin setup and runn
The Azure plugin requires the following YAML to be added to your app-config.yaml:
```yaml
azure:
azureFunctions:
domain:
tenantId:
clientId:
+2 -2
View File
@@ -21,7 +21,7 @@ You need to set up the Azure backend plugin before you move forward with any of
To be able to use the Azure plugin you need to add the following annotation to any entities you want to use it with:
```yaml
azure.com/microsoft.web/sites: <name>
azure.com/microsoft-web-sites: <name>
```
`<name>` supports case-insensitive exact / partial value.
@@ -39,7 +39,7 @@ func-testapp-us
The annotation you will use to have the three functions' app appear in the overview table would look like this:
```yaml
azure.com/microsoft.web/sites: func-testapp
azure.com/microsoft-web-sites: func-testapp
```
### Install the component
@@ -16,7 +16,7 @@
import { Entity } from '@backstage/catalog-model';
export const AZURE_WEB_SITE_NAME_ANNOTATION = 'azure.com/microsoft.web/sites';
export const AZURE_WEB_SITE_NAME_ANNOTATION = 'azure.com/microsoft-web-sites';
export const useServiceEntityAnnotations = (entity: Entity) => {
const webSiteName =
entity?.metadata.annotations?.[AZURE_WEB_SITE_NAME_ANNOTATION] ?? '';
+1 -1
View File
@@ -20,7 +20,7 @@ export const entityMock = {
metadata: {
namespace: 'default',
annotations: {
'azure.com/microsoft.web/sites': 'func-mock',
'azure.com/microsoft-web-sites': 'func-mock',
},
name: 'sample-azure-service',
description: 'A service for testing Backstage functionality.',