Azure
Our integration with Azure provides the ability to export your Azure resources to Port, according to your configuration. With the Terraform deployment, the integration can also listen to Azure Event Grid events to update data in Port in real time.
Core support
The resource list above contains examples, not the complete list of supported resources. Any Azure resource type with a subscription-level List API works here. See mapping extra resources to check support and configure additional resource types.
Port's Azure exporter is open source. View the Azure exporter source code.
Common use cases
Our Azure integration makes it easy to fill the context lake with data directly from your Azure subscription, for example:
- Map resources from your Azure subscriptions, such as AKS, Storage Accounts, Container Apps, Load Balancers and other Azure resources.
- Watch for Azure object changes (create/update/delete) in real time via Azure Event Grid (Terraform deployment), and automatically apply the changes to your entities in Port.
- Configure relations to other resources in your organization to create complete, easily digestible views of your resources and their relationships inside Port.
Setup
Choose one of the following installation methods: Not sure which method is right for your use case? Check the available installation methods.
The prerequisites required for installation are listed below.
-
A Kubernetes cluster - the integration's container chart will be deployed to this cluster.
-
kubectlandhelmmust be installed on your machine. YourkubectlCLI must be connected to the Kubernetes cluster where you plan to install the integration.
Azure App Registration setup
To ingest resources from Azure, you will need to create an Azure App Registration and assign it read permissions to the resources you want to ingest.
Step-by-step setup guide (click to expand)
-
Create an App Registration:
- In the Azure portal, search for App registrations in the top search bar and select it.
- Click New registration.
- Enter a name (e.g.
port-integration), leave the default settings, and click Register.
-
Copy the Application (client) ID and Directory (tenant) ID:
- After registration, you will be taken to the app's Overview page.
- Copy the
Application (client) IDandDirectory (tenant) IDvalues. You will need these when configuring the integration.
-
Create a client secret:
- In the left sidebar, go to Certificates & secrets.
- Select the Client secrets tab, then click New client secret.
- Enter a description, choose an expiration period, and click Add.
-
Copy the secret value: Copy the
Valueof the newly created secret immediately. This value is only shown once and cannot be retrieved later, this is yourApplication (client) Secret. -
Assign the Reader role:
- Navigate to the Subscriptions page in the Azure portal.
- Select the subscription you want to ingest resources from.
- Go to Access control (IAM) → Add → Add role assignment.
- Select the Reader role.
- Under Members, click Select members and search for the App Registration you created.
- Select it and click Review + assign.
-
Repeat for additional subscriptions (optional):
- To ingest resources from multiple subscriptions, repeat step 5 for each subscription you want to include.
The Reader role is recommended for querying all resources in your Azure subscription. You can restrict permissions to specific resource groups or types by assigning a different role. If you do this, remember to adjust permissions when adding more resources to the catalog. Basic permissions required for ingesting resources from Azure include:
Microsoft.Resources/subscriptions/read(to list the accessible subscriptions).Microsoft.Resources/subscriptions/resourceGroups/read(to list the accessible resource groups).read/listpermissions to the resources you want to ingest.
Azure App Registration setup
To ingest resources from Azure, you will need to create an Azure App Registration and assign it read permissions to the resources you want to ingest.
Step-by-step setup guide (click to expand)
-
Create an App Registration:
- In the Azure portal, search for App registrations in the top search bar and select it.
- Click New registration.
- Enter a name (e.g.
port-integration), leave the default settings, and click Register.
-
Copy the Application (client) ID and Directory (tenant) ID:
- After registration, you will be taken to the app's Overview page.
- Copy the
Application (client) IDandDirectory (tenant) IDvalues. You will need these when configuring the integration.
-
Create a client secret:
- In the left sidebar, go to Certificates & secrets.
- Select the Client secrets tab, then click New client secret.
- Enter a description, choose an expiration period, and click Add.
-
Copy the secret value: Copy the
Valueof the newly created secret immediately. This value is only shown once and cannot be retrieved later, this is yourApplication (client) Secret. -
Assign the Reader role:
- Navigate to the Subscriptions page in the Azure portal.
- Select the subscription you want to ingest resources from.
- Go to Access control (IAM) → Add → Add role assignment.
- Select the Reader role.
- Under Members, click Select members and search for the App Registration you created.
- Select it and click Review + assign.
-
Repeat for additional subscriptions (optional):
- To ingest resources from multiple subscriptions, repeat step 5 for each subscription you want to include.
The Reader role is recommended for querying all resources in your Azure subscription. You can restrict permissions to specific resource groups or types by assigning a different role. If you do this, remember to adjust permissions when adding more resources to the catalog. Basic permissions required for ingesting resources from Azure include:
Microsoft.Resources/subscriptions/read(to list the accessible subscriptions).Microsoft.Resources/subscriptions/resourceGroups/read(to list the accessible resource groups).read/listpermissions to the resources you want to ingest.
- Terraform >= 1.9.1.
- Azure CLI >= 2.26.0.
- Permissions.
Permissions
In order to successfully deploy the Azure exporter, it's crucial to ensure that the user who deploys the integration in the Azure subscription has the appropriate access permissions. One of the following permission assignments are required:
-
Option 1: The user can have the
OwnerAzure role assigned to them for the subscription that the integration will be deployed on. This role provides comprehensive control and access rights. -
Option 2: For a more limited approach, the user should possess the minimum necessary permissions required to carry out the integration deployment. These permissions will grant the user access to specific resources and actions essential for the task without granting full
Ownerprivileges. The following steps will guide you through the process of creating a custom role and assigning it to the user along with other required roles:-
Create a custom role with the following permissions:
Custom resource definition (click to expand)
{"id": "<ROLE_DEFINITION_ID>","properties": {"roleName": "Azure Exporter Deployment","description": "","assignableScopes": ["/subscriptions/<SUBSCRIPTION_ID>"],"permissions": [{"actions": ["Microsoft.ManagedIdentity/userAssignedIdentities/read","Microsoft.ManagedIdentity/userAssignedIdentities/write","Microsoft.ManagedIdentity/userAssignedIdentities/assign/action","Microsoft.ManagedIdentity/userAssignedIdentities/listAssociatedResources/action","Microsoft.Authorization/roleDefinitions/read","Microsoft.Authorization/roleDefinitions/write","Microsoft.Authorization/roleAssignments/write","Microsoft.Authorization/roleAssignments/read","Microsoft.Resources/subscriptions/resourceGroups/write","Microsoft.OperationalInsights/workspaces/tables/write","Microsoft.Resources/deployments/read","Microsoft.Resources/deployments/write","Microsoft.OperationalInsights/workspaces/read","Microsoft.OperationalInsights/workspaces/write","microsoft.app/containerapps/write","microsoft.app/managedenvironments/read","microsoft.app/managedenvironments/write","Microsoft.Resources/subscriptions/resourceGroups/read","Microsoft.OperationalInsights/workspaces/sharedkeys/action","microsoft.app/managedenvironments/join/action","microsoft.app/containerapps/listsecrets/action","microsoft.app/containerapps/delete","microsoft.app/containerapps/stop/action","microsoft.app/containerapps/start/action","microsoft.app/containerapps/authconfigs/write","microsoft.app/containerapps/authconfigs/delete","microsoft.app/containerapps/revisions/restart/action","microsoft.app/containerapps/revisions/activate/action","microsoft.app/containerapps/revisions/deactivate/action","microsoft.app/containerapps/sourcecontrols/write","microsoft.app/containerapps/sourcecontrols/delete","microsoft.app/managedenvironments/delete","Microsoft.Authorization/roleAssignments/delete","Microsoft.Authorization/roleDefinitions/delete","Microsoft.OperationalInsights/workspaces/delete","Microsoft.ManagedIdentity/userAssignedIdentities/delete","Microsoft.Resources/subscriptions/resourceGroups/delete"],"notActions": [],"dataActions": [],"notDataActions": []}]}} -
Assign the following roles to the user on the subscription that will be used to deploy.
-
- ArgoCD >= 2.0.0
Azure App Registration setup
To ingest resources from Azure, you will need to create an Azure App Registration and assign it read permissions to the resources you want to ingest.
Step-by-step setup guide (click to expand)
-
Create an App Registration:
- In the Azure portal, search for App registrations in the top search bar and select it.
- Click New registration.
- Enter a name (e.g.
port-integration), leave the default settings, and click Register.
-
Copy the Application (client) ID and Directory (tenant) ID:
- After registration, you will be taken to the app's Overview page.
- Copy the
Application (client) IDandDirectory (tenant) IDvalues. You will need these when configuring the integration.
-
Create a client secret:
- In the left sidebar, go to Certificates & secrets.
- Select the Client secrets tab, then click New client secret.
- Enter a description, choose an expiration period, and click Add.
-
Copy the secret value: Copy the
Valueof the newly created secret immediately. This value is only shown once and cannot be retrieved later, this is yourApplication (client) Secret. -
Assign the Reader role:
- Navigate to the Subscriptions page in the Azure portal.
- Select the subscription you want to ingest resources from.
- Go to Access control (IAM) → Add → Add role assignment.
- Select the Reader role.
- Under Members, click Select members and search for the App Registration you created.
- Select it and click Review + assign.
-
Repeat for additional subscriptions (optional):
- To ingest resources from multiple subscriptions, repeat step 5 for each subscription you want to include.
The Reader role is recommended for querying all resources in your Azure subscription. You can restrict permissions to specific resource groups or types by assigning a different role. If you do this, remember to adjust permissions when adding more resources to the catalog. Basic permissions required for ingesting resources from Azure include:
Microsoft.Resources/subscriptions/read(to list the accessible subscriptions).Microsoft.Resources/subscriptions/resourceGroups/read(to list the accessible resource groups).read/listpermissions to the resources you want to ingest.
Azure App Registration setup
To ingest resources from Azure, you will need to create an Azure App Registration and assign it read permissions to the resources you want to ingest.
Step-by-step setup guide (click to expand)
-
Create an App Registration:
- In the Azure portal, search for App registrations in the top search bar and select it.
- Click New registration.
- Enter a name (e.g.
port-integration), leave the default settings, and click Register.
-
Copy the Application (client) ID and Directory (tenant) ID:
- After registration, you will be taken to the app's Overview page.
- Copy the
Application (client) IDandDirectory (tenant) IDvalues. You will need these when configuring the integration.
-
Create a client secret:
- In the left sidebar, go to Certificates & secrets.
- Select the Client secrets tab, then click New client secret.
- Enter a description, choose an expiration period, and click Add.
-
Copy the secret value: Copy the
Valueof the newly created secret immediately. This value is only shown once and cannot be retrieved later, this is yourApplication (client) Secret. -
Assign the Reader role:
- Navigate to the Subscriptions page in the Azure portal.
- Select the subscription you want to ingest resources from.
- Go to Access control (IAM) → Add → Add role assignment.
- Select the Reader role.
- Under Members, click Select members and search for the App Registration you created.
- Select it and click Review + assign.
-
Repeat for additional subscriptions (optional):
- To ingest resources from multiple subscriptions, repeat step 5 for each subscription you want to include.
The Reader role is recommended for querying all resources in your Azure subscription. You can restrict permissions to specific resource groups or types by assigning a different role. If you do this, remember to adjust permissions when adding more resources to the catalog. Basic permissions required for ingesting resources from Azure include:
Microsoft.Resources/subscriptions/read(to list the accessible subscriptions).Microsoft.Resources/subscriptions/resourceGroups/read(to list the accessible resource groups).read/listpermissions to the resources you want to ingest.
Now that you have the Azure App Registration details, you can install the Azure exporter using Helm.
Helm does not configure Azure Event Grid. Real-time updates are available with the Terraform deployment. With Helm, keep your catalog current using scheduledResyncInterval or a manual resync from Port.
You should have the following information ready:
- Port API credentials, you can check out the Port API documentation.
PORT_CLIENT_IDPORT_CLIENT_SECRET
- Azure credentials:
AZURE_CLIENT_ID: The Application (client) ID from the Azure App Registration.AZURE_CLIENT_SECRET: The Application (client) Secret from the Azure App Registration.AZURE_TENANT_ID: The Directory (tenant) ID from the Azure App Registration.
helm repo add --force-update port-labs https://port-labs.github.io/helm-charts
helm upgrade --install azure port-labs/port-ocean \
--set port.clientId="PORT_CLIENT_ID" \
--set port.clientSecret="PORT_CLIENT_SECRET" \
--set port.baseUrl="https://api.port.io" \
--set initializePortResources=true \
--set sendRawDataExamples=true \
--set scheduledResyncInterval=1440 \
--set integration.identifier="azure" \
--set integration.type="azure" \
--set integration.eventListener.type="POLLING" \
--set integration.config.azureClientId="<AZURE_CLIENT_ID>" \
--set integration.config.azureClientSecret="<AZURE_CLIENT_SECRET>" \
--set integration.config.azureTenantId="<AZURE_TENANT_ID>"
The port_region, port.baseUrl, portBaseUrl, port_base_url and OCEAN__PORT__BASE_URL parameters select which Port API instance to use:
- EU (app.port.io) →
https://api.port.io - US (app.us.port.io) →
https://api.us.port.io
The Azure exporter is deployed using Terraform on Azure Container App. It uses our Terraform Ocean Integration Factory module to deploy the exporter.
This way of deployment supports real-time data sync from Azure to Port.
The Azure exporter is initially configured to collect Azure resources from the subscription where it's deployed. However, it can be adjusted to ingest resources from multiple subscriptions. To learn how to configure the Azure exporter for this purpose, check out the instructions in the Multiple subscriptions setup section.
Multiple ways to deploy the Azure exporter could be found in the Azure Integration example README.
Azure infrastructure used by the Azure exporter:
- Azure Container App.
- Azure Event Grid (used for real-time data sync to Port):
- Azure Event Grid System Topic of type
Microsoft.Resources.Subscriptions. - Azure Event Grid Subscription.
- Azure Event Grid System Topic of type
Due to a limitation in Azure only one Event Grid system topic of type Microsoft.Resources.Subscriptions can be created per subscription, so if you already have one you'll need to pass it to the integration using event_grid_system_topic_name=<your-event-grid-system-topic-name>.
In case a system topic already exists and is not provided to the deployment of the integration, the integration will fail due to not being able to create a new one.
-
Log in to Port and go to the Data model page in Port.
-
Go to your connectors page, and click on your Azure integration.
-
Edit and copy the installation command.
The installation command includes placeholders that allow you to customize the integration's configuration. For example, you can update the command and specify the
event_grid_system_topic_nameparameter if you already have one.- Specify the
event_grid_system_topic_nameparameter if you already have an Event Grid system topic of typeMicrosoft.Resources.Subscriptionsin your subscription. - Specify the
event_grid_event_filter_listparameter if you want to listen to more events. - Specify the
action_permissions_listparameter if you want the integration to have more permissions.
To find more actions that could be assigned to the exporter, you can use the Azure Resource provider operation reference and look for the resources that you want to export to Port.
- Specify the
-
Run the command in your terminal to deploy the Azure exporter.
- Azure DevOps
- GitHub Actions
- GitLab
Now that you have the Azure App Registration details, you can set up the Azure exporter using an Azure DevOps pipeline.
Make sure to configure the following secret variables in a variable group:
- Port API credentials, you can check out the Port API documentation.
PORT_CLIENT_IDPORT_CLIENT_SECRET
- Azure credentials:
OCEAN__SECRET__AZURE_CLIENT_ID: The Application (client) ID from the Azure App Registration.OCEAN__SECRET__AZURE_CLIENT_SECRET: The Application (client) Secret from the Azure App Registration.OCEAN__SECRET__AZURE_TENANT_ID: The Directory (tenant) ID from the Azure App Registration.
Here is an example for azure-pipeline-integration.yml workflow file.
Make sure to change the highlighted line to your variable group's name.Azure pipeline integration (click to expand)
Now that you have the Azure App Registration details, you can set up the Azure exporter using GitHub Actions.
Make sure to configure the following GitHub Secrets:
- Port API credentials, you can check out the Port API documentation.
PORT_CLIENT_IDPORT_CLIENT_SECRET
- Azure credentials:
OCEAN__SECRET__AZURE_CLIENT_ID: The Application (client) ID from the Azure App Registration.OCEAN__SECRET__AZURE_CLIENT_SECRET: The Application (client) Secret from the Azure App Registration.OCEAN__SECRET__AZURE_TENANT_ID: The Directory (tenant) ID from the Azure App Registration.
| Parameter | Description | Required? | Secret?Store this value as a GitHub Actions secret |
|---|---|---|---|
port_client_id | Your Port client ID (How to get the credentials). | ✓ | ✓ |
port_client_secret | Your Port client secret (How to get the credentials). | ✓ | ✓ |
port_base_url | Your Port API URL (https://api.port.io for EU, https://api.us.port.io for US). | ✓ | ✗ |
azure_client_id | The Application (client) ID from the Azure App Registration. | ✓ | ✓ |
azure_client_secret | The Application (client) Secret from the Azure App Registration. | ✓ | ✓ |
azure_tenant_id | The Directory (tenant) ID from the Azure App Registration. | ✓ | ✓ |
initialize_port_resources | Default true. When set to true, the integration will create default blueprints and the Port app config mapping. | ✗ | ✗ |
integration_identifier | The identifier of the integration that will be installed. | ✗ | ✗ |
send_raw_data_examples | Enable sending raw data examples from the third-party API to Port for testing and managing the integration mapping. Default is true. | ✗ | ✗ |
Here is an example for azure-integration.yml workflow file:GitHub Action integration (click to expand)
Make sure to configure the following GitLab variables:
| Parameter | Description | Required? | Secret?Store this value as a GitLab CI/CD variable |
|---|---|---|---|
OCEAN__ | Your Port client ID (How to get the credentials). | ✓ | ✓ |
OCEAN__ | Your Port client secret (How to get the credentials). | ✓ | ✓ |
OCEAN__ | Your Port API URL (https://api.port.io for EU, https://api.us.port.io for US). | ✓ | ✗ |
OCEAN__ | The Application (client) ID from the Azure App Registration. | ✓ | ✓ |
OCEAN__ | The Application (client) Secret from the Azure App Registration. | ✓ | ✓ |
OCEAN__ | The Directory (tenant) ID from the Azure App Registration. | ✓ | ✓ |
OCEAN__ | Default true. When set to true, the integration will create default blueprints and the Port app config mapping. | ✗ | ✗ |
OCEAN__ | The identifier of the integration that will be installed. | ✗ | ✗ |
OCEAN__ | Enable sending raw data examples from the third-party API to Port for testing and managing the integration mapping. Default is true. | ✗ | ✗ |
Here is an example for .gitlab-ci.yml pipeline file:GitLab CI pipeline (click to expand)
-
Create a
values.yamlfile inargocd/azure-integrationin your git repository with the content:initializePortResources: truescheduledResyncInterval: 120integration:identifier: azure-integrationtype: azureeventListener:type: POLLINGconfig:azureClientId: <AZURE_CLIENT_ID>azureClientSecret: <AZURE_CLIENT_SECRET>azureTenantId: <AZURE_TENANT_ID> -
Install the
azure-integrationArgoCD Application by creating the followingazure-integration.yamlmanifest:Replace placeholdersRemember to replace the placeholders for
YOUR_PORT_CLIENT_IDYOUR_PORT_CLIENT_SECRETandYOUR_GIT_REPO_URL. Multiple sources ArgoCD documentation can be found here.ArgoCD Application (click to expand)
apiVersion: argoproj.io/v1alpha1kind: Applicationmetadata:name: my-ocean-azure-integrationnamespace: argocdspec:destination:namespace: my-ocean-azure-integrationserver: https://kubernetes.default.svcproject: defaultsources:- repoURL: 'https://port-labs.github.io/helm-charts/'chart: port-oceantargetRevision: 0.9.5helm:valueFiles:- $values/argocd/my-ocean-azure-integration/values.yamlparameters:- name: port.clientIdvalue: YOUR_PORT_CLIENT_ID- name: port.clientSecretvalue: YOUR_PORT_CLIENT_SECRET- name: port.baseUrlvalue: https://api.port.io- repoURL: YOUR_GIT_REPO_URLtargetRevision: mainref: valuessyncPolicy:automated:prune: trueselfHeal: truesyncOptions:- CreateNamespace=trueSelecting a Port API URL by account regionThe
port_region,port.baseUrl,portBaseUrl,port_base_urlandOCEAN__PORT__BASE_URLparameters select which Port API instance to use:- EU (app.port.io) →
https://api.port.io - US (app.us.port.io) →
https://api.us.port.io
- EU (app.port.io) →
-
Apply the
azure-integration.yamlmanifest to your Kubernetes cluster:kubectl apply -f azure-integration.yaml
You should have the following information ready:
- Port API credentials, you can check out the Port API documentation.
PORT_CLIENT_IDPORT_CLIENT_SECRET
- Azure credentials:
AZURE_CLIENT_ID: The Application (client) ID from the Azure App Registration.AZURE_CLIENT_SECRET: The Application (client) Secret from the Azure App Registration.AZURE_TENANT_ID: The Directory (tenant) ID from the Azure App Registration.
Environment variables (click to expand)
| Variable | Description |
|---|---|
OCEAN__PORT__CLIENT_ID | Your Port client ID. |
OCEAN__PORT__CLIENT_SECRET | Your Port client secret. |
OCEAN__PORT__BASE_URL | Your Port API URL - https://api.port.io for EU, https://api.us.port.io for US. |
OCEAN__INTEGRATION__CONFIG__AZURE_CLIENT_ID | The client ID of the Azure App Registration. |
OCEAN__INTEGRATION__CONFIG__AZURE_CLIENT_SECRET | The client secret of the Azure App Registration. |
OCEAN__INTEGRATION__CONFIG__AZURE_TENANT_ID | The tenant ID of the Azure App Registration. |
OCEAN__EVENT_LISTENER | The event listener object. |
OCEAN__INTEGRATION__IDENTIFIER | The identifier of the integration. |
OCEAN__INTEGRATION__TYPE | Should be set to azure. |
OCEAN__INITIALIZE_PORT_RESOURCES | Default true. When set to true the integration will create default blueprints and the Port app config mapping. |
OCEAN__SEND_RAW_DATA_EXAMPLES | Enable sending raw data examples from the third-party API to Port for testing and managing the integration mapping. Default is true. |
For example:
docker run -i --rm --platform=linux/amd64 \
-e OCEAN__PORT__CLIENT_ID="$PORT_CLIENT_ID" \
-e OCEAN__PORT__CLIENT_SECRET="$PORT_CLIENT_SECRET" \
-e OCEAN__PORT__BASE_URL="https://api.port.io" \
-e OCEAN__INITIALIZE_PORT_RESOURCES=true \
-e OCEAN__SEND_RAW_DATA_EXAMPLES=true \
-e OCEAN__EVENT_LISTENER='{"type": "ONCE"}' \
-e OCEAN__INTEGRATION__CONFIG__AZURE_CLIENT_ID=$AZURE_CLIENT_ID \
-e OCEAN__INTEGRATION__CONFIG__AZURE_CLIENT_SECRET=$AZURE_CLIENT_SECRET \
-e OCEAN__INTEGRATION__CONFIG__AZURE_TENANT_ID=$AZURE_TENANT_ID \
ghcr.io/port-labs/port-ocean-azure:latest
Sync approaches
Port offers two approaches for synchronizing Azure resources:
| Azure REST exporter | Azure resource graph exporter | |
|---|---|---|
| Sync method | Full resource scan via Azure Resource Manager (ARM) REST API | Fast sync via Azure Resource Graph |
| Real-time updates | Yes — via Azure Event Grid (Terraform deployment only) | No |
| Deployment | Helm, Docker, or ContainerApp | Helm, Docker, or ContainerApp |
| Best for | Comprehensive resource visibility with full schemas and real-time Event Grid notifications | Speed and efficiency at massive scale (thousands of subscriptions) |
Choose the Azure REST exporter when you need the full resource schema or real-time Event Grid notifications. Choose the Azure resource graph exporter when syncing at scale is the priority and you don't need Event Grid infrastructure.
Ingest Azure resources
The Azure exporter can retrieve all the resources supported by the Azure Resource Manager REST API, and export them to Port as entities of existing blueprints.
For examples on how to map resources head to the resource templates page.
Configuration
Port integrations use a YAML mapping block to ingest data from the third-party api into Port.
The mapping makes use of the JQ JSON processor to select, modify, concatenate, transform and perform other operations on existing fields and values from the integration API.
Default mapping configuration
This is the default mapping configuration you get after installing the Azure integration.
Default mapping configuration (click to expand)
resources:
- kind: subscription
selector:
query: 'true'
apiVersion: '2022-09-01'
port:
entity:
mappings:
identifier: .id
title: .display_name
blueprint: '"azureSubscription"'
properties:
tags: .tags
- kind: Microsoft.Resources/resourceGroups
selector:
query: 'true'
apiVersion: '2022-09-01'
port:
entity:
mappings:
identifier: .id | split("/") | .[3] |= ascii_downcase |.[4] |= ascii_downcase
| join("/")
title: .name
blueprint: '"azureResourceGroup"'
properties:
location: .location
provisioningState: .properties.provisioningState + .properties.provisioning_state
tags: .tags
relations:
subscription: .id | split("/") | .[1] |= ascii_downcase |.[2] |= ascii_downcase
| .[:3] |join("/")
- kind: Microsoft.App/containerApps
selector:
query: 'true'
apiVersion: '2022-03-01'
port:
entity:
mappings:
identifier: .id | split("/") | .[3] |= ascii_downcase |.[4] |= ascii_downcase
| join("/")
title: .name
blueprint: '"azureCloudResource"'
properties:
location: .location
type: .type
tags: .tags
relations:
resource_group: .id | split("/") | .[3] |= ascii_downcase |.[4] |= ascii_downcase
| .[:5] |join("/")
- kind: Microsoft.Storage/storageAccounts
selector:
query: 'true'
apiVersion: '2023-01-01'
port:
entity:
mappings:
identifier: .id | split("/") | .[3] |= ascii_downcase |.[4] |= ascii_downcase
| join("/")
title: .name
blueprint: '"azureCloudResource"'
properties:
location: .location
type: .type
tags: .tags
relations:
resource_group: .id | split("/") | .[3] |= ascii_downcase |.[4] |= ascii_downcase
| .[:5] |join("/")
- kind: Microsoft.Compute/virtualMachines
selector:
query: 'true'
apiVersion: '2023-03-01'
port:
entity:
mappings:
identifier: .id | split("/") | .[3] |= ascii_downcase |.[4] |= ascii_downcase
| join("/")
title: .name
blueprint: '"azureCloudResource"'
properties:
location: .location
type: .type
tags: .tags
relations:
resource_group: .id | split("/") | .[3] |= ascii_downcase |.[4] |= ascii_downcase
| .[:5] |join("/")
- kind: Microsoft.ContainerService/managedClusters
selector:
query: 'true'
apiVersion: '2023-05-01'
port:
entity:
mappings:
identifier: .id | split("/") | .[3] |= ascii_downcase |.[4] |= ascii_downcase
| join("/")
title: .name
blueprint: '"azureCloudResource"'
properties:
location: .location
type: .type
tags: .tags
relations:
resource_group: .id | split("/") | .[3] |= ascii_downcase |.[4] |= ascii_downcase
| .[:5] |join("/")
- kind: Microsoft.Network/loadBalancers
selector:
query: 'true'
apiVersion: '2023-02-01'
port:
entity:
mappings:
identifier: .id | split("/") | .[3] |= ascii_downcase |.[4] |= ascii_downcase
| join("/")
title: .name
blueprint: '"azureCloudResource"'
properties:
location: .location
type: .type
tags: .tags
relations:
resource_group: .id | split("/") | .[3] |= ascii_downcase |.[4] |= ascii_downcase
| .[:5] |join("/")
Mapping & selectors per resource
Use the explorer below to view the mapping and blueprint definition for each resource type. For additional resources and advanced configurations, see the resource templates page.
{
"identifier": "azureSubscription",
"title": "Azure Subscription",
"icon": "Azure",
"schema": {
"properties": {
"tags": {
"title": "Tags",
"type": "object"
}
},
"required": []
},
"mirrorProperties": {},
"calculationProperties": {},
"aggregationProperties": {},
"relations": {}
}
- kind: subscription
selector:
query: 'true'
apiVersion: '2022-09-01'
port:
entity:
mappings:
identifier: .id
title: .display_name
blueprint: '"azureSubscription"'
properties:
tags: .tags
Below are the supported selectors for this resource. Use them under the selector key in your integration mapping configuration to control which resources are returned from the API.
| Selector | Type | Description |
|---|---|---|
exportEnvVariables | array | Environment variable names whose values should be included in lakehouse ingest payloads for DSP processing. |
apiVersion | string | The Azure API version to use when querying this resource kind. |
Monitoring and sync status
To learn more about how to monitor and check the sync status of your integration, see the relevant documentation.
FAQ
The managed identity associated with the integration needs an appropriate role assignment in every subscription you want to ingest. A role assignment in one subscription does not grant access to other subscriptions.
The Azure REST exporter supports real-time updates through Azure Event Grid when you use the Terraform deployment. Each subscription requires an Event Grid System Topic of type Microsoft.Resources.Subscriptions and an Event Grid Subscription. The Azure resource graph exporter does not support real-time updates.
Yes. The Azure exporter can retrieve resources supported by the Azure Resource Manager REST API and map them to existing Port blueprints. The default mapping provides common examples, while the resource templates page provides additional mapping templates.
Next steps
- Refer to the Resource Templates page for templates on how to map Azure resources to Port.
- Check out the Azure resource graph guide for setting up synchronization of Azure resources.