|
| 1 | +--- |
| 2 | +title: Configure global data processing |
| 3 | +description: This article describes how to configure the global data processing settings in Azure Maps to comply with data residency laws. |
| 4 | +author: pbrasil |
| 5 | +ms.author: peterbr |
| 6 | +ms.date: 11/19/2024 |
| 7 | +ms.topic: how-to |
| 8 | +ms.service: azure-maps |
| 9 | +ms.subservice: manage-account |
| 10 | +--- |
| 11 | + |
| 12 | +# Configure global data processing |
| 13 | + |
| 14 | +In some cases, it may be necessary to process requests in a region different from your Azure Maps Account's region due to local data residency laws. When this happens, you can grant Azure Maps consent to process your data in other specified regions. For more information, see [Consent management]. |
| 15 | + |
| 16 | +This article guides you on configuring global data processing settings to comply with data residency laws using multiple approaches including the [Azure Portal](#configure-global-data-processing-in-the-azure-portal), [REST APIs](#configure-global-data-processing-using-rest-api) or an [ARM deployment template](#configure-global-data-processing-using-an-arm-deployment-template). This allows Azure Maps to process address requests within the specified country's region, regardless of your Azure Maps Account's region. |
| 17 | + |
| 18 | +> [!IMPORTANT] |
| 19 | +> If your scenarios don't involve South Korea data, there is no need to enable cross-region processing. This requirement is specific to South Korea due to its data residency laws. |
| 20 | +
|
| 21 | +## Configure global data processing in the Azure portal |
| 22 | + |
| 23 | +The Azure Maps Resource location is enabled by default and can be configured in the **Process Data Globally** page of the Azure portal. |
| 24 | + |
| 25 | +To give consent to one or more regions: |
| 26 | + |
| 27 | +1. Sign in to your Azure Maps Account in the [Azure portal]. |
| 28 | +1. In **Settings**, select **Process data globally**. |
| 29 | + |
| 30 | + A map of the world appears with a plus sign for each region that can be selected. |
| 31 | + |
| 32 | + :::image type="content" source="./media/consent-management/process-data-globally.png" lightbox="./media/consent-management/process-data-globally.png" alt-text="Screenshot showing the process data globally screen in the Azure portal."::: |
| 33 | + |
| 34 | +1. Additionally you can select **Add region**, then select the region you wish to add or remove. |
| 35 | + |
| 36 | + :::image type="content" source="./media/consent-management/select-korea-central.png" lightbox="./media/consent-management/select-korea-central.png" alt-text="Screenshot showing the process data globally screen in the Azure portal with the Korea Central region selected."::: |
| 37 | + |
| 38 | +1. Once you all desired regions are chosen, select **Save**. |
| 39 | + |
| 40 | + :::image type="content" source="./media/consent-management/save-selection.png" lightbox="./media/consent-management/save-selection.png" alt-text="Screenshot showing the save button highlighted in process data globally screen in the Azure portal."::: |
| 41 | + |
| 42 | +Once your updates are saved, one or more new selections appear in the list of regions. |
| 43 | + |
| 44 | +:::image type="content" source="./media/consent-management/new-region-added.png" lightbox="./media/consent-management/new-region-added.png" alt-text="Screenshot showing the process data globally screen in the Azure portal with the Korea Central region added to the list of supported regions."::: |
| 45 | + |
| 46 | +## Configure global data processing using REST API |
| 47 | + |
| 48 | +Consent can be managed using [Azure Maps Account Management REST APIs]. To Configure global data processing, send an [Accounts - Update] `PATCH` request and pass in the `properties.locations` parameter in the body of the request. |
| 49 | + |
| 50 | +Be sure to include the appropriate [subscription key], resource group and Azure Maps account name. |
| 51 | + |
| 52 | +```html |
| 53 | +https://management.azure.com/subscriptions/<subscription-key>/resourceGroups/<resource-group-name>/providers/Microsoft.Maps/accounts/<account-name>?api-version=2024-07-01-preview |
| 54 | +``` |
| 55 | + |
| 56 | +**Header** |
| 57 | + |
| 58 | +Be sure to include a correct [access-token]. |
| 59 | + |
| 60 | +```html |
| 61 | +Content-Type: application/json |
| 62 | +Authorization: Bearer <access-token> |
| 63 | +``` |
| 64 | + |
| 65 | +**Body** |
| 66 | + |
| 67 | +```json |
| 68 | +{ |
| 69 | + "properties": { |
| 70 | + "locations": [ |
| 71 | + { |
| 72 | + "locationName": "Korea Central" |
| 73 | + } |
| 74 | + ] |
| 75 | + }, |
| 76 | +} |
| 77 | +``` |
| 78 | + |
| 79 | +## Configure global data processing using an ARM deployment template |
| 80 | + |
| 81 | +The following template will add _West Europe_ to the list of valid global data processing regions. |
| 82 | + |
| 83 | +Be sure to include the appropriate Azure Maps account name and location. |
| 84 | + |
| 85 | +```json |
| 86 | +{ |
| 87 | + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", |
| 88 | + "contentVersion": "1.0.0.0", |
| 89 | + "resources": [ |
| 90 | + { |
| 91 | + "type": "Microsoft.Maps/accounts", |
| 92 | + "apiVersion": "2024-07-01-preview", |
| 93 | + "name": "<account-name>", |
| 94 | + "location": "<account-location>", |
| 95 | + "sku": { |
| 96 | + "name": "G2" |
| 97 | + }, |
| 98 | + "properties": |
| 99 | + { |
| 100 | + "locations": [ |
| 101 | + { |
| 102 | + "locationName": "West Europe" |
| 103 | + } |
| 104 | + ] |
| 105 | + } |
| 106 | + } |
| 107 | + ] |
| 108 | +} |
| 109 | +``` |
| 110 | + |
| 111 | +> [!NOTE] |
| 112 | +> Your data is always stored in the region you created your Azure Maps Account, regardless of your global data processing settings. |
| 113 | +
|
| 114 | +## Next steps |
| 115 | + |
| 116 | +Azure Maps is a global service that allows specifying a geographic scope, which enables limiting data residency to specific regions. |
| 117 | + |
| 118 | +> [!div class="nextstepaction"] |
| 119 | +> [Azure Maps service geographic scope] |
| 120 | +
|
| 121 | +[access-token]: azure-maps-authentication.md#microsoft-entra-authentication |
| 122 | +[Accounts - Update]: /rest/api/maps-management/accounts/update |
| 123 | +[Azure Maps Account Management REST APIs]: /rest/api/maps-management/accounts |
| 124 | +[Azure portal]: https://ms.portal.azure.com |
| 125 | +[Azure Maps service geographic scope]: geographic-scope.md |
| 126 | +[Consent management]: consent-management.md |
| 127 | +[subscription key]: quick-demo-map-app.md#get-the-subscription-key-for-your-account |
0 commit comments