Onboard a tenant with the Azure portal

After Cloud Security is successfully installed, you’re ready to start harvesting data from your Accounts, which requires configuring Microsoft Azure  to “talk” with Cloud Security securely. As your inventory grows and your cloud accounts are fully visible, you can then begin to leverage the rest of Cloud Security, including Insights, Bots, Layered Context, and more.

This page and the functionality detailed here refer to the provider-specific Accounts and Organizations capability available under Data Connectors > Cloud Accounts (individual accounts are listed on the Listing page; Organizations are listed on the Organizations page). This functionality should not be confused with the Cloud Security-specific Organizations capability that allows for multi-tenant functionality available under Administration > System Administration > Organizations.

If you are looking to onboard a single Azure Subscription instead, see Onboard an Azure Account.

Onboarding an Azure Organization

A couple methods for onboarding your Azure Organizations (tenants in Azure’s parlance) are available depending on whether you’re a non-admin or admin user.

Resuming cloud onboarding to Cloud Security

If you close the interface before completing Account onboarding, you can resume onboarding from the page you were on last.

Admin User Instructions

As an admin, you must prepare your Account(s) for the connection with Cloud Security by creating a new application registration & creating and assigning custom roles within Azure. For more information on the custom roles that Cloud Security provides, review Azure Overview & Support.

Providing details to a non-admin user?

If you are providing details to a non-admin user to onboard the Account, ensure that the credentials you share with the non-admin user will include the appropriate access and enable them to connect your Azure tenant with Cloud Security successfully. We recommend using a secure file sharing system to provide credentials to your non-admin user.

Azure Admin Onboarding Prerequisites

Cloud Security offers some features that require additional permissions/roles within Azure. It is easiest to perform this configuration while onboarding an account/organization. Review the links below to determine which features you’d like to use and we’ll provide a reminder to select the relevant options later.

Prepare Azure for Onboarding

To onboard an Organization for Azure you need to complete one of the following set of instructions:

Connect the Account in Cloud Security

The Azure onboarding process is nearly complete; all that remains is to set up an account nickname in Cloud Security and verify the account connection.

In the Cloud Security Cloud Onboarding interface:

  1. Provide the Nickname for the Account. This is a unique value that will be used to search Accounts across the system based on an identifiable label.
  2. Click Connect Account.
Success! You onboarded an Account

Congratulations on successfully onboarding an Azure Account! Cloud Security will now detect the following:
  • If there are any missing permissions that could cause impaired visibility into your Account
  • Assuming you completed the Organization-related portion of the onboarding, if the Account is an Azure tenant Account, you can enable Account Discovery. If Account Discovery is enabled, Rapid7 can onboard and collect information on related Azure Tenants and Subscriptions via the onboarded Tenant. Click Enable Auto Discovery at the bottom of the window to start this process.
  • For information about modifying an existing onboarded account, check out the Set up and manage cloud accounts page.

Organization Post-Onboarding Information

Now that you have onboarded an Azure tenant Account as an Organization within Cloud Security, you should have at least your tenant Account with full visibility. Review the following sections for more information on augmenting your Organization onboarding experience or managing the organization within Cloud Security.

Enabling Account Discovery

Once a tenant Account is onboarded to Cloud Security, we can automatically detect any child Accounts and prompt you to enable Account Discovery. If you clicked the Enable Auto Discovery button within the onboarding wizard, you’ll be taken to the Edit Organization Config window for the new organization.

  1. From the Edit Organization Config window, select Auto-Sync Subscriptions.
  2. Click Update.
Access account discovery settings after onboarding

Account discovery settings are also available from Data Connectors > Cloud Accounts > Organizations.

Once enabled, accounts are discovered via the API dynamically and configured with defaults you provide.

Modifying an Azure Organization in Cloud Security

After onboarding an Azure Organization, you can edit account discovery and configuration details at any time, including auto-removing disabled or deleted subscriptions, adjusting import scope, or updating credentials.

  1. Go to Data Connectors > Cloud Accounts > Organizations.
  2. Click Action next to the organization you want to modify.
  3. Click Manage Organization.

Auto-badging

As an enhancement to support for provider-based Organizations, Cloud Security includes auto-badging capabilities. The purpose of auto-badging is to create a 1:1 map of Azure account-level tags to Badges in Cloud Security. This allows Clouds to be scoped to a badge that maps to the account tag.

After the tags and labels are harvested into Cloud Security as badges - you cannot delete them in Cloud Security - they must be deleted in Azure and the changes will propagate to Cloud Security.

Auto-badging takes place in two stages.

Stage Description

Retrieves tags and labels from each account and project and compares them with ResourceTags associated with the cloud account in the Cloud Security database.

If there are any changes detected, the ResourceTags in the database are overwritten with the values from the account/project.

This means that Cloud Account tags should not be locally modified since any local changes will be overwritten the next time the process runs. Additionally, any local changes that are made to Cloud Account tags are not pushed back up to the cloud provider.

Retrieves all ResourceTags from the local database that are associated with the accounts managed by an organization.

For each cloud the list of tags for that cloud is compared with the current list of Badges and for each Key/Value pair of tags:

  • Existing Badges with a Key prefix of system. are skipped.
  • If the corresponding Badge with the Key/Value pair for that cloud does not already exist, it is created.
  • If a tag Value changes, the Badge with the corresponding Key will be updated to that value.
  • If a Badge no longer has a tag with a corresponding Key, it will be deleted.
  • All Badges that have a corresponding tag will have their autogenerated column set to ‘true’ even if they were previously set to ‘false’.

Microsoft Key Vault Harvesting

As mentioned above, if you used a recommended role during setup, you cannot harvest Microsoft Key Vault key rotation policies because of a limitation with Azure Tenant-scoped roles and dataActions permissions. Unfortunately, the only workaround currently is to add a custom role with the permission to each subscription within the Tenant. The Cloud Security documentation discusses this in the manual onboarding instructions.