|
| 1 | +--- |
| 2 | +title: "Connect to AWS with the multicloud connector in the Azure portal" |
| 3 | +description: "Learn how to add an AWS cloud by using the multicloud connector enabled by Azure Arc." |
| 4 | +ms.topic: how-to |
| 5 | +ms.date: 06/11/2024 |
| 6 | +--- |
| 7 | + |
| 8 | +# Connect to AWS with the multicloud connector in the Azure portal |
| 9 | + |
| 10 | +The multicloud connector enabled by Azure Arc lets you connect non-Azure public cloud resources to Azure by using the Azure portal. Currently, AWS public cloud environments are supported. |
| 11 | + |
| 12 | +As part of connecting an AWS account to Azure, you deploy a CloudFormation template to the AWS account. This template creates all of the required resources for the connection. |
| 13 | + |
| 14 | +> [!IMPORTANT] |
| 15 | +> Multicloud connector enabled by Azure Arc is currently in PREVIEW. |
| 16 | +> See the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability. |
| 17 | +
|
| 18 | +## Prerequisites |
| 19 | + |
| 20 | +To use the multicloud connector, you need the appropriate permissions in both AWS and Azure. |
| 21 | + |
| 22 | +### AWS prerequisites |
| 23 | + |
| 24 | +To create the connector and to use multicloud inventory, you need the following permissions in AWS: |
| 25 | + |
| 26 | +- **AmazonS3FullAccess** |
| 27 | +- **AWSCloudFormationFullAccess** |
| 28 | +- **IAMFullAccess** |
| 29 | + |
| 30 | +For Arc onboarding, there are [additional prerequisites that must be met](onboard-multicloud-vms-arc.md#prerequisites). |
| 31 | + |
| 32 | +When you upload your CloudFormation template, additional permissions will be requested, based on the solutions that you selected: |
| 33 | + |
| 34 | +- For **Inventory**, we request **Global Read** permission to your account. |
| 35 | +- For **Arc Onboarding**, our service requires **EC2 Write** access in order to install the [Azure Connected Machine agent](/azure/azure-arc/servers/agent-overview). |
| 36 | + |
| 37 | +### Azure prerequisites |
| 38 | + |
| 39 | +To use the multicloud connector in an Azure subscription, you need the **Contributor** built-in role. |
| 40 | + |
| 41 | +If this is the first time you're using the service, you need to [register these resource providers](/azure/azure-resource-manager/management/resource-providers-and-types#register-resource-provider), which requires **Contributor** access on the subscription: |
| 42 | + |
| 43 | +- Microsoft.HybridCompute |
| 44 | +- Microsoft.HybridConnectivity |
| 45 | +- Microsoft.AwsConnector |
| 46 | + |
| 47 | +> [!NOTE] |
| 48 | +> The multicloud connector can work side-by-side with the [AWS connector in Defender for Cloud](/azure/defender-for-cloud/quickstart-onboard-aws). If you choose, you can use both of these connectors. |
| 49 | +
|
| 50 | +## Add your public cloud in the Azure portal |
| 51 | + |
| 52 | +To add your AWS public cloud to Azure, use the Azure portal to enter details and generate a CloudFormation template. |
| 53 | + |
| 54 | +1. In the Azure portal, navigate to **Azure Arc**. |
| 55 | +1. Under **Management**, select **Multicloud connectors (preview)**. |
| 56 | +1. In the **Connectors** pane, select **Create**. |
| 57 | +1. On the **Basics** page: |
| 58 | + |
| 59 | + 1. Select the subscription and resource group in which to create your connector resource. |
| 60 | + 1. Enter a unique name for the connector and select a [supported region](overview.md#supported-regions). |
| 61 | + 1. Provide the ID for the AWS account that you want to connect, and indicate whether it's a single account or an organization account. |
| 62 | + 1. Select **Next**. |
| 63 | + |
| 64 | +1. On the **Solutions** page, select which solutions you'd like to use with this connector and configure them. Select **Add** to enable **[Inventory](view-multicloud-inventory.md)**, **[Arc onboarding](onboard-multicloud-vms-arc.md)**, or both. |
| 65 | + |
| 66 | + :::image type="content" source="media/add-aws-connector-solutions.png" alt-text="Screenshot showing the Solutions for the AWS connector in the Azure portal."::: |
| 67 | + |
| 68 | + - For **Inventory**, you can modify the following options: |
| 69 | + |
| 70 | + 1. Choose the **AWS Services** for which you want to scan and import resources. By default, all available services are selected. |
| 71 | + 1. Choose whether or not to enable periodic sync. By default, this is enabled so that the connector will scan your AWS account regularly. If you uncheck the box, your AWS account will only be scanned once. |
| 72 | + 1. If **Enable periodic sync** is checked, confirm or change the **Recur every** selection to specify how often your AWS account will be scanned. |
| 73 | + 1. Choose which regions to scan for resources in your AWS account. By default, all available regions are selected. |
| 74 | + 1. When you have finished making selections, select **Save** to return to the **Solutions** page. |
| 75 | + |
| 76 | + - For **Arc onboarding**: |
| 77 | + |
| 78 | + 1. Select a **Connectivity method** to determine whether the Connected Machine agent should connect to the internet via a public endpoint or by proxy server. If you select **Proxy server**, provide a **Proxy server URL** to which the EC2 instance can connect. |
| 79 | + 1. Choose whether or not to enable periodic sync. By default, this is enabled so that the connector will scan your AWS account regularly. If you uncheck the box, your AWS account will only be scanned once. |
| 80 | + 1. If **Enable periodic sync** is checked, confirm or change the **Recur every** selection to specify how often your AWS account will be scanned. |
| 81 | + 1. Choose which regions to scan for EC2 instances in your AWS account. By default, all available regions are selected. |
| 82 | + |
| 83 | +1. On the **Authentication template** page, download the CloudFormation template that you'll upload to AWS. This template is created based on the information you provided in **Basics** and the solutions you selected. You can [upload the template](#upload-cloudformation-template-to-aws) right away, or wait until you finish adding your public cloud. |
| 84 | + |
| 85 | +1. On the **Tags** page, enter any tags you'd like to use. |
| 86 | +1. On the **Review and create** page, confirm your information and then select **Create**. |
| 87 | + |
| 88 | +If you didn't upload your template during this process, follow the steps in the next section to do so. |
| 89 | + |
| 90 | +## Upload CloudFormation template to AWS |
| 91 | + |
| 92 | +After you've saved the CloudFormation template generated in the previous section, you need to upload it to your AWS public cloud. If you upload the template before you finish connecting your AWS cloud in the Azure portal, your AWS resources will be scanned immediately. If you complete the **Add public cloud** process in the Azure portal before uploading the template, it will take a bit longer to scan your AWS resources and make them available in Azure. |
| 93 | + |
| 94 | +### Create stack |
| 95 | + |
| 96 | +Follow these steps to create a stack and upload your template: |
| 97 | + |
| 98 | +1. Open the AWS CloudFormation console and select **Create stack**. |
| 99 | +1. Select **Template is ready**, then select **Upload a template file**. Select **Choose file** and browse to select your template. Then select **Next**. |
| 100 | +1. In **Specify stack details**, enter a stack name. Leave the other options set to their default settings and select **Next**. |
| 101 | +1. In **Configure stack options**, leave the options set to their default settings and select **Next**. |
| 102 | +1. In **Review and create**, confirm that the information is correct, select the acknowledgment checkbox, and then select **Submit**. |
| 103 | + |
| 104 | +### Create StackSet |
| 105 | + |
| 106 | +If your AWS account is an organization account, you also need to create a StackSet and upload your template again. To do so: |
| 107 | + |
| 108 | +1. Open the AWS CloudFormation console and select **StackSets**, then select **Create StackSet**. |
| 109 | +1. Select **Template is ready**, then select **Upload a template file**. Select **Choose file** and browse to select your template. Then select **Next**. |
| 110 | +1. In **Specify stack details**, enter `AzureArcMultiCloudStackset` as the StackSet name, then select **Next**. |
| 111 | +1. In **Configure stack options**, leave the options set to their default settings and select **Next**. |
| 112 | +1. In **Set deployment options**, enter the ID for the AWS account where the StackSet will be deployed, and select any AWS region to deploy the stack. Leave the other options set to their default settings and select **Next**. |
| 113 | +1. In **Review**, confirm that the information is correct, select the acknowledgment checkbox, and then select **Submit**. |
| 114 | + |
| 115 | +## Confirm deployment |
| 116 | + |
| 117 | +After you complete the **Add public cloud** option in Azure, and you upload your template to AWS, your connector and selected solutions will be created. On average, it takes about one hour for your AWS resources to become available in Azure. If you upload the template after creating the public cloud in Azure, it may take a bit more time before you see the AWS resources. |
| 118 | + |
| 119 | +AWS resources are stored in a resource group using the naming convention `aws_yourAwsAccountId`. Scans will run regularly to update these resources, based on your **Enable periodic sync** selections. |
| 120 | + |
| 121 | +## Next steps |
| 122 | + |
| 123 | +- Query your inventory with [the multicloud connector **Inventory** solution](view-multicloud-inventory.md). |
| 124 | +- Learn how to [use the multicloud connector **Arc onboarding** solution](onboard-multicloud-vms-arc.md). |
| 125 | + |
| 126 | + |
0 commit comments