Connect your GCP accounts to Azure Security Center
With cloud workloads commonly spanning multiple cloud platforms, cloud security services must do the same.
Azure Security Center protects workloads in Azure, Amazon Web Services (AWS), and Google Cloud Platform (GCP).
Onboarding your GCP accounts into Security Center, integrates GCP Security Command and Azure Security Center. Security Center thus provides visibility and protection across both of these cloud environments to provide:
- Detection of security misconfigurations
- A single view showing Security Center recommendations and GCP Security Command Center findings
- Incorporation of your GCP resources into Security Center's secure score calculations
- Integration of GCP Security Command Center recommendations based on the CIS standard into the Security Center's regulatory compliance dashboard
In the screenshot below you can see GCP projects displayed in Security Center's overview dashboard.
|Release state:||General Availability (GA)|
|Pricing:||Requires Azure Defender for servers|
|Required roles and permissions:||Owner or Contributor on the relevant Azure Subscription|
|Clouds:|| Commercial clouds
National/Sovereign (US Gov, China Gov, Other Gov)
Connect your GCP account
Create a connector for every organization you want to monitor from Security Center.
When connecting your GCP accounts to specific Azure subscriptions, consider the Google Cloud resource hierarchy and these guidelines:
- You can connect your GCP accounts to ASC in the organization level
- You can connect multiple organizations to one Azure subscription
- You can connect multiple organizations to multiple Azure subscriptions
- When you connect an organization, all projects within that organization are added to Security Center
Follow the steps below to create your GCP cloud connector.
Step 1. Set up GCP Security Command Center with Security Health Analytics
For all the GCP projects in your organization, you must also:
- Set up GCP Security Command Center using these instructions from the GCP documentation.
- Enable Security Health Analytics using these instructions from the GCP documentation.
- Verify that there is data flowing to the Security Command Center.
The instructions for connecting your GCP environment for security configuration follow Google's recommendations for consuming security configuration recommendations. The integration leverages Google Security Command Center and will consume additional resources that might impact your billing.
When you first enable Security Health Analytics, it might take several hours for data to be available.
Step 2. Enable GCP Security Command Center API
- From Google's Cloud Console API Library, select each project in the organization you want to connect to Azure Security Center.
- In the API Library, find and select Security Command Center API.
- On the API's page, select ENABLE.
Learn more about the Security Command Center API.
Step 3. Create a dedicated service account for the security configuration integration
In the GCP Console, select a project from the organization in which you're creating the required service account.
When this service account is added at the organization level, it'll be used to access the data gathered by Security Command Center from all of the other enabled projects in the organization.
In the Navigation menu, Under IAM & admin options, select Service accounts.
Select CREATE SERVICE ACCOUNT.
Enter an account name, and select Create.
Specify the Role as Security Center Admin Viewer, and select Continue.
The Grant users access to this service account section is optional. Select Done.
Copy the Email value of the created service account, and save it for later use.
In the Navigation menu, Under IAM & admin options, select IAM
- Switch to organization level.
- Select ADD.
- In the New members field, paste the Email value you copied earlier.
- Specify the role as Security Center Admin Viewer and then select Save.
Step 4. Create a private key for the dedicated service account
- Switch to project level.
- In the Navigation menu, Under IAM & admin options, select Service accounts.
- Open the dedicated service account and select Edit.
- In the Keys section, select ADD KEY and then Create new key.
- In the Create private key screen, select JSON, and then select CREATE.
- Save this JSON file for later use.
Step 5. Connect GCP to Security Center
- From Security Center's menu, select Cloud connectors.
- Select add GCP account.
- In the onboarding page, do the following and then select Next.
- Validate the chosen subscription.
- In the Display name field, enter a display name for the connector.
- In the Organization ID field, enter your organization's ID. If you don't know it, see Creating and managing organizations.
- In the Private key file box, browse to the JSON file you downloaded in Step 4. Create a private key for the dedicated service account.
Step 6. Confirmation
When the connector is successfully created and GCP Security Command Center has been configured properly:
- The GCP CIS standard will be shown in the Security Center's regulatory compliance dashboard.
- Security recommendations for your GCP resources will appear in the Security Center portal and the regulatory compliance dashboard 5-10 minutes after onboard completes:
Monitoring your GCP resources
As shown above, Azure Security Center's security recommendations page displays your GCP resources together with your Azure and AWS resources for a true multi-cloud view.
To view all the active recommendations for your resources by resource type, use Security Center's asset inventory page and filter to the GCP resource type in which you're interested:
FAQ - Connecting GCP accounts to Azure Security Center
Can I connect multiple GCP organizations to Security Center?
Yes. Security Center's GCP connector connects your Google Cloud resources at the organization level.
Create a connector for every GCP organization you want to monitor from Security Center. When you connect an organization, all projects within that organization are added to Security Center.
Learn about the Google Cloud resource hierarchy in Google's online docs.
Is there an API for connecting my GCP resources to Security Center?
Yes. To create, edit, or delete Security Center cloud connectors with a REST API, see the details of the Connectors API.
Connecting your GCP account is part of the multi-cloud experience available in Azure Security Center. For related information, see the following page:
- Connect your AWS accounts to Azure Security Center
- Google Cloud resource hierarchy--Learn about the Google Cloud resource hierarchy in Google's online docs