Configure Azure for Keyless Authentication
To integrate with Azure, you must first configure Azure for keyless authentication.
Before you begin
Make sure that you have:
-
A valid Azure subscription.
-
The Subject identifier from the Integrations > Add Azure - Keyless Integration dialog box in Tenable Attack Surface Management. For more information, see Integrate with Azure Using Keyless Authentication.
-
Azure Subscription ID.
-
Azure Resource Group Name.
Configure Azure for Keyless Authentication
Via CLI
To configure Azure for keyless authentication via CLI:
-
Create a managed identity.
Copyaz identity create -n TenableCloudConnectors --subscription <subscription-name> -g <resource-group-name>Where:
-
TenableCloudConnectors is the name of the managed identity.
-
subscription-name is the Azure subscription name.
-
resource-group-name is the group to which the managed identity belongs.
-
-
Assign the Reader role for the managed identity.
Copyaz role assignment create --assignee-object-id <managed-identity-id> --role "Reader" --scope "/subscriptions/<subscription-id>"Where:
-
managed-identity-id is the ID of the managed identity you created in Step 1.
-
subscription-id is the Azure subscription ID that has read access.
-
-
Add Federated credentials for the managed identity.
Copyaz identity federated-credential create --name TenableASMCloudConnector --identity-name TenableCloudConnectors --resource-group <resource-group-name> --audiences us-east-1:96e4d72b-7a36-4dc6-a64e-7baae60e027f --issuer https://cognito-identity.amazonaws.com --subject <UUIDfromTheASMUI> --subscription <subscriptionID>Where:
-
TenableASMCloudConnector is the name of the federated credential.
-
TenableCloudConnectors is the name of the managed identity you created in Step 1.
-
resource-group-name is the resource group to which the managed identity belongs.
-
UUIDfromtheASMUI is the Subject identifier that you copied from the Integrations > Add Azure Keyless Integrations dialog box in Tenable Attack Surface Management.
-
-
Copy the client ID of the Managed Identity.
Copyaz identity show -n TenableCloudConnectors --resource-group <resources-group>Where:
-
TenableCloudConnectors is the name of the managed identity you created in Step 1.
-
resource-group-name is the resource group to which the managed identity belongs.
Via Azure UI
To configure Azure for keyless authentication via UI:
-
Sign in to the Azure portal.
-
To create a new managed identity, in the All Services page, under Identity Management, select Managed Identities.
-
Click Create.
-
Provide the details and create the managed identity.
-
In the left navigation pane of the managed identity, select Azure role assignments.
-
Click Add role.
-
Select your subscription and resource group, then select the role as Reader.
-
Click Save.
Azure saves the role.
-
To add Federated credentials, in the left navigation pane, select Settings > Federated credentials.
The Federated credentials pane appears on the right.
-
Click Add Credential.
The Add Federated Credential page appears.
-
In the Federated credential scenario drop-down box, select Other Issuer.
The Select a managed identity section appears.
-
In the Issuer box, type https://cognito-identity.amazonaws.com.
-
In the Subject identifier box, copy the subject identifier from the Add Azure - Keyless Integration dialog box in Tenable Attack Surface Management.
-
In the Credential details section, provide a name, then in the Audience box, type us-east-1:96e4d72b-7a36-4dc6-a64e-7baae60e027f.
-
Copy the Client ID from the Managed Identity's Overview page. You need the client ID when integrating the Azure with Tenable Attack Surface Management.
What to do next