|
| 1 | +--- |
| 2 | +title: Deploy Microsoft Sentinel solution for Dynamics 365 Finance and Operations |
| 3 | +description: This article introduces you to the process of deploying the Microsoft Sentinel Solution for Dynamics 365 Finance and Operations |
| 4 | +author: limwainstein |
| 5 | +ms.author: lwainstein |
| 6 | +ms.topic: how-to |
| 7 | +ms.date: 05/14/2023 |
| 8 | +--- |
| 9 | + |
| 10 | +# Deploy Microsoft Sentinel solution for Dynamics 365 Finance and Operations |
| 11 | + |
| 12 | +This article describes how to deploy the Microsoft Sentinel solution for Dynamics 365 Finance and Operations. The solution monitors and protects your Dynamics 365 Finance and Operations system: It collects audits and activity logs from the Dynamics 365 Finance and Operations environment, and detects threats, suspicious activities, illegitimate activities, and more. [Read more about the solution](dynamics-365-finance-operations-solution-overview.md). |
| 13 | + |
| 14 | +> [!IMPORTANT] |
| 15 | +> - The Microsoft Sentinel solution for Dynamics 365 Finance and Operations is currently in PREVIEW. The [Azure Preview Supplemental Terms](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) include additional legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability. |
| 16 | +> - The solution is a premium offering. Pricing information will be available before the solution becomes generally available. |
| 17 | +
|
| 18 | +## Prerequisites |
| 19 | + |
| 20 | +Before you begin, verify that: |
| 21 | + |
| 22 | +- The Microsoft Sentinel solution is enabled. |
| 23 | +- You have a defined Microsoft Sentinel workspace and have read and write permissions to the workspace. |
| 24 | +- [Microsoft Dynamics 365 Finance version 10.0.33 or above](/dynamics365/finance/get-started/whats-new-changed-changed-10-0-33) is enabled and you have administrative access to the monitored environments. |
| 25 | +- You can create an [Azure Function App](../../azure-functions/functions-overview.md) with the `Microsoft.Web/Sites`, `Microsoft.Web/ServerFarms`, `Microsoft.Insights/Components`, and `Microsoft.Storage/StorageAccounts` permissions. |
| 26 | +- You can create [Data Collection Rules/Endpoints](../../azure-monitor/essentials/data-collection-rule-overview.md) with the permissions: |
| 27 | + - `Microsoft.Insights/DataCollectionEndpoints`, and `Microsoft.Insights/DataCollectionRules`. |
| 28 | + - Assign the Monitoring Metrics Publisher role to the Azure Function. |
| 29 | + |
| 30 | +## Collect the environment URL from your Finance and Operations cloud environment |
| 31 | + |
| 32 | +1. Open your Dynamics 365 project in [Microsoft Dynamics Lifecycle Services (LCS)](https://lcs.dynamics.com) and select the specific Finance and Operations environment you want to monitor with Microsoft Sentinel. |
| 33 | +1. In the **Environment version information** section, make sure that you're using application release version 10.0.33 or above. |
| 34 | + |
| 35 | + :::image type="content" source="media/deploy-dynamics-365-finance-operations-solution/environment-version-information.png" alt-text="Screenshot of the Finance and Operations environment version information." lightbox="media/deploy-dynamics-365-finance-operations-solution/environment-version-information.png"::: |
| 36 | + |
| 37 | +1. To collect your environment URL, select **Log on to environment** and save the URL in the browser to use [when you deploy the ARM template](#deploy-the-data-connector). For example: https://sentineldevc055b257489f70f5devaos.axcloud.dynamics.com. |
| 38 | + |
| 39 | + > [!NOTE] |
| 40 | + > The URL may look different, depending on the environment you use, for example, you could be using a sandbox, or a cloud hosted environment. Remove any trailing slashes: `/`. |
| 41 | +
|
| 42 | + :::image type="content" source="media/deploy-dynamics-365-finance-operations-solution/environment-details-new.png" alt-text="Screenshot of the Finance and Operations environment details."::: |
| 43 | + |
| 44 | +## Deploy the solution and enable the data connector |
| 45 | + |
| 46 | +1. Navigate to the **Microsoft Sentinel** service. |
| 47 | +1. Select **Content hub**, and in the search bar, search for *Dynamics 365 F&O*. |
| 48 | +1. Select **Dynamics 365 F&O**. |
| 49 | +1. Select **Install**. |
| 50 | + |
| 51 | + For more information about how to manage the solution components, see [Discover and deploy out-of-the-box content](../sentinel-solutions-deploy.md). |
| 52 | + |
| 53 | +## Deploy the data connector |
| 54 | + |
| 55 | +1. Once the solution deployment is complete, return to your Sentinel workspace and select **Data connectors**. |
| 56 | + |
| 57 | +1. In the search bar, type *Dynamics 365 F&O*, and select **Dynamics 365 F&O (Using Azure Function)**. |
| 58 | + |
| 59 | +1. Select **Open connector page**. |
| 60 | + |
| 61 | +In the connector page, make sure that you meet the required prerequisites and complete the following [configuration steps](#configure-the-data-connector). |
| 62 | + |
| 63 | +## Configure the data connector |
| 64 | + |
| 65 | +> [!NOTE] |
| 66 | +> This connector uses Azure Functions to connect to Dynamics Finance and Operations to pull its logs into Microsoft Sentinel. This might result in additional data ingestion costs. Check the [Azure Functions pricing page](https://azure.microsoft.com/pricing/details/functions/) for details. |
| 67 | +
|
| 68 | +### Deploy the Azure Resource Manager (ARM) template |
| 69 | + |
| 70 | +1. Select **Deploy to Azure**. |
| 71 | + |
| 72 | +1. Follow the installation wizard to complete deployment. The **Finance Operations API Host** parameter in the deployment wizard refers to the environment URL collected in [this step](#collect-the-environment-url-from-your-finance-and-operations-cloud-environment). |
| 73 | + |
| 74 | +### Enable data collection |
| 75 | + |
| 76 | +To enable data collection, you create a new role in Finance and Operations with permissions to view the Database Log entity. The role is then assigned to a dedicated Finance and Operations user, mapped to the Azure Active Directory client ID of the Function App's system assigned managed identity. |
| 77 | + |
| 78 | +To collect the managed identity application ID from Azure Active Directory: |
| 79 | + |
| 80 | +1. In the [Azure Active Directory portal](https://aad.portal.azure.com/), select **Enterprise Applications**. |
| 81 | + |
| 82 | +1. Change the application type filter to **Managed Identities**. |
| 83 | + |
| 84 | +1. Search for and open the Function App created in the [previous step](#deploy-the-azure-resource-manager-arm-template). Copy the Application ID and save it for later use. |
| 85 | + |
| 86 | +### Create a role for data collection in Finance and Operations |
| 87 | + |
| 88 | +1. In the Finance and Operations portal, navigate to **Workspaces > System administration**, and select **Security Configuration**. |
| 89 | + |
| 90 | +1. Under **Roles**, select **Create new** and give the new role a name, for example, *Database Log Viewer*. |
| 91 | + |
| 92 | +1. Select the new role from the list of roles, and select **Privileges** > **Add references**. |
| 93 | + |
| 94 | +1. Select **Database log Entity View** from the list of privileges. |
| 95 | + |
| 96 | +1. Select **Unpublished objects**, and select **Publish all** to publish the role. |
| 97 | + |
| 98 | +#### Create a user for data collection in Finance and Operations |
| 99 | + |
| 100 | +1. In the Finance and Operations portal, navigate to **Modules > System administration**, and select **Users**. |
| 101 | + |
| 102 | +1. Create a new user and assign the role you [created in the previous step](#create-a-role-for-data-collection-in-finance-and-operations) to the user. |
| 103 | + |
| 104 | +#### Register the managed identity in Finance and Operations |
| 105 | + |
| 106 | +1. In the Finance and Operations portal, navigate to **System administration > Setup > Azure Active Directory** applications. |
| 107 | + |
| 108 | +1. Create a new entry in the table: |
| 109 | + - For the **Client Id**, type the application ID of the managed identity. |
| 110 | + - For the **Name**, type a name for the application. |
| 111 | + - For the **User ID**, type the user ID created in the [previous step](#create-a-user-for-data-collection-in-finance-and-operations). |
| 112 | + |
| 113 | +### Enable auditing on the relevant Dynamics 365 Finance and Operations data tables |
| 114 | + |
| 115 | +> [!NOTE] |
| 116 | +> Before you enable auditing on Dynamics 365 F&O, review the [database logging recommended practices](/dynamics365/fin-ops-core/dev-itpro/sysadmin/configure-manage-database-log#database-logging-and-performance). |
| 117 | +
|
| 118 | +The analytics rules currently provided with this solution monitor and detect threats based on logs sourced from these tables: |
| 119 | + |
| 120 | +- All tables under **System** |
| 121 | +- The **Bank accounts** table under **Bank** |
| 122 | + |
| 123 | +If you're planning to use the analytics rules provided in this solution, enable auditing for the **System** and **Bank accounts** tables. |
| 124 | + |
| 125 | +This screenshot shows the **System** and **Bank accounts** tables under **logging database changes**. |
| 126 | + |
| 127 | +:::image type="content" source="media/deploy-dynamics-365-finance-operations-solution/finance-and-operations-logging-database-tables-new.png" alt-text="Screenshot of the selected Finance and Operations database tables to enable auditing."::: |
| 128 | + |
| 129 | +To enable auditing on Finance and Operations tables you want to monitor: |
| 130 | + |
| 131 | +1. In the Finance and Operations portal, Select **Modules > System Administration > Database log > Database log setup**. |
| 132 | +1. Select **New** > **Next**, and select the tables you want to monitor. |
| 133 | +1. Select **Next**. |
| 134 | +1. To enable auditing on all fields of the selected tables, mark all four check marks to the right of the table names with empty field labels. To see the tables with empty field labels at the top, sort the table list by the field table in ascending order (A to Z): |
| 135 | + |
| 136 | + :::image type="content" source="media/deploy-dynamics-365-finance-operations-solution/finance-and-operations-logging-database-changes-new.png" alt-text="Screenshot of configuring the selected Finance and Operations database tables."::: |
| 137 | + |
| 138 | +1. Select **Next** and then **Finish**. |
| 139 | +1. Select **Yes** in all warning messages. |
| 140 | + |
| 141 | +### Verify that the data connector is ingesting logs to Microsoft Sentinel |
| 142 | + |
| 143 | +To verify that log ingestion is working: |
| 144 | + |
| 145 | +1. Run activities (create, update, delete) on any of the tables you enabled for monitoring in the [previous step](#enable-auditing-on-the-relevant-dynamics-365-finance-and-operations-data-tables). |
| 146 | +1. Wait up to 15 minutes for Microsoft Sentinel to ingest the logs to the logs table in the workspace. |
| 147 | +1. Query the `FinanceOperationsActivity_CL` table in the Microsoft Sentinel workspace under **Logs**. |
| 148 | +1. Check that the table shows new logs that reflect the activities you executed in step 1 of this procedure. |
| 149 | + |
| 150 | + :::image type="content" source="media/deploy-dynamics-365-finance-operations-solution/query-finance-operations-table.png" alt-text="Screenshot of viewing a new Finance and Operations incident in Microsoft Sentinel."::: |
| 151 | + |
| 152 | +## Next steps |
| 153 | + |
| 154 | +In this article, you learned how to deploy the Microsoft Sentinel solution for Dynamics 365 Finance and Operations. |
| 155 | + |
| 156 | +- [Learn how to enable the security content](../sentinel-solutions-deploy.md#analytics-rule) |
| 157 | +- [Review the solution's security content](dynamics-365-finance-operations-security-content.md) |
0 commit comments