You'll learn how to set up a Microsoft Azure Connector by
Workflows .After completing this setup, you can start using all the Microsoft Azure Connector actions in your workflow.
Permissions in Azure Portal to create an app registration and assign its required permissions.
The user needs the Dynatrace default policy AppEngine - Admin to install the Microsoft Azure Connector, add a connection, add a New host pattern in External requests, and authenticate with Azure.
In detail, the following permissions are needed:
ALLOW app-engine:apps:install;ALLOW settings:objects:read, settings:objects:write, settings:schemas:read WHERE settings:schemaId = "builtin:hyperscaler-authentication.azure.connection";ALLOW settings:objects:read, settings:objects:write, settings:schemas:read WHERE settings:schemaId = "builtin:dt-javascript-runtime.allowed-outbound-connections";ALLOW hyperscaler-authentication:azure:authenticate;
To use the Microsoft Azure Connector securely, follow our recommendations in Security best practices for Microsoft Azure Connector.
To create a Microsoft Azure connection to authenticate with Azure in Dynatrace
The Microsoft Azure Connector lets you create connections for two types consumers:
Workflows for automation
consumes the connection in the context of workflow actions.
OpenPipeline for log forwarding allows log forwarding via IAM cross-account role-based authentication.
Select one of the options.
Provide the connection details:
In Name, enter a unique name that identifies the connection. The Connection ID, Directory (tenant) ID, and Application (client) ID fields are present, but their values are not yet visible. They become visible after the connection is generated.
Select Create.
A Connection ID is created. The Connection ID is visible in the Set up connection tab within the Connection ID text field. You'll need the Connection ID to configure the federated credentials for an app registration.
Copy the Connection ID and use it in the trust policy as shown in Configure Federated Identity.
https://token.dynatrace.com.dt:connection-id/<Connection ID>, where <Connection ID> is the Connection ID from the Enter the connection details step.<tenant-domain>/app-id/dynatrace.microsoft.azure.connector<tenant-domain>/svc-id/com.dynatrace.openpipeline
For example, for tenant abc12345 and consumer Workflows for automation
, the audience would be abc12345.apps.dynatrace.com/app-id/dynatrace.microsoft.azure.connector.In Dynatrace, you can add a new host pattern in External requests.
External requests enable outbound network connections from your Dynatrace environment to external services. They allow you to control access to public endpoints from the AppEngine with app functions and functions in Dashboards, Notebooks, and Automations.
Go to
Settings > General > External requests.
Select New host pattern.
Add the domain names.
Select Add.
This way you can granularly control the web services your functions can connect to.
You need to add the management.azure.com domain name.
Optionally, you could add *.blob.core.windows.net to the allowed host patterns if the Storage actions are used.
For more information, see Add a host to the allowlist.
Workflows require some permissions to run actions on your behalf.
To fine-tune permissions granted to Workflows:
Go to Workflows and select Settings > Authorization settings.
Select the following permissions besides the general Workflows permission.
hyperscaler-authentication:azure:authenticatesettings:objects:readFor more on general Workflows user permissions, see User permissions for workflows.