Skip to content

Commit

Permalink
[Integration][Azure] Fix blueprint identifiers and relation mappings (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Tankilevitch authored Apr 10, 2024
1 parent ad30bfc commit f122eb5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
6 changes: 3 additions & 3 deletions integrations/azure/.port/resources/blueprints.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"identifier": "azure_subscription",
"identifier": "azureSubscription",
"title": "Azure Subscription",
"icon": "Azure",
"schema": {
Expand Down Expand Up @@ -46,7 +46,7 @@
}
},
{
"identifier": "cloud_resource",
"identifier": "azureCloudResource",
"title": "Cloud Resource",
"icon": "Azure",
"schema": {
Expand Down Expand Up @@ -75,7 +75,7 @@
"relations": {
"resource_group": {
"title": "Resource Group",
"target": "resource_group",
"target": "azureResourceGroup",
"required": false,
"many": false
}
Expand Down
6 changes: 3 additions & 3 deletions integrations/azure/.port/resources/port-app-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ resources:
mappings:
identifier: .id
title: .display_name
blueprint: '"azure_subscription"'
blueprint: '"azureSubscription"'
properties: {}
- kind: Microsoft.Resources/resourceGroups
selector:
Expand All @@ -21,7 +21,7 @@ resources:
.id | split("/") | .[3] |= ascii_downcase |.[4] |= ascii_downcase |
join("/")
title: .name
blueprint: '"resource_group"'
blueprint: '"azureResourceGroup"'
properties:
location: .location
provisioningState: .properties.provisioningState + .properties.provisioning_state
Expand All @@ -46,7 +46,7 @@ resources:
.id | split("/") | .[3] |= ascii_downcase |.[4] |= ascii_downcase |
join("/")
title: .name
blueprint: '"cloud_resource"'
blueprint: '"azureCloudResource"'
properties:
location: .location
type: .type
Expand Down
7 changes: 7 additions & 0 deletions integrations/azure/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
0.1.41 (2024-04-10)

### Bug Fixes

- Fixed blueprints identifiers names and adjusted relations between blueprints


0.1.40 (2024-04-10)

### Improvements
Expand Down
2 changes: 1 addition & 1 deletion integrations/azure/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "azure"
version = "0.1.40"
version = "0.1.41"
description = "Azure integration"
authors = ["Tom Tankilevitch <[email protected]>"]

Expand Down

0 comments on commit f122eb5

Please sign in to comment.