Learning Path 7 - Lab 1 - Exercise 11 - Use Repositories in Microsoft Sentinel

Lab scenario

You are a Security Operations Analyst working at a company that implemented Microsoft Sentinel. You already created Scheduled and Microsoft Security Analytics rules. You need to centralize analytical rules in an Azure DevOps repository. Then connect Sentinel to the Azure DevOps repository and import the content.

Note: An interactive lab simulation is available that allows you to click through this lab at your own pace. You may find slight differences between the interactive simulation and the hosted lab, but the core concepts and ideas being demonstrated are the same.

Task 1: Create and export an analytical rule

In this task, you will enable Entity behavior analytics in Microsoft Sentinel.

  1. Log in to WIN1 virtual machine as Admin with the password: Pa55w.rd.

  2. In the Sign in dialog box, copy and paste in the Tenant Email account provided by your lab hosting provider and then select Next.

  3. In the Enter password dialog box, copy and paste in the Tenant Password provided by your lab hosting provider and then select Sign in.

  4. In the Search bar of the Azure portal, type Sentinel, then select Microsoft Sentinel.

  5. Select your Microsoft Sentinel Workspace.

  6. Select Analytics under the Configuration area from the left blade.

  7. Select the Startup RegKey rule that you created earlier.

  8. Select the Export from the toolbar. Hint: You might need to select the ellipsis icon (…) to see it.

  9. The rule is exported to a text file named Azure_Sentinel_analytic_rule.json.

  10. Select Open file below the name of the downloaded file and then select More apps.

  11. Select Notepad and then select OK.

  12. Review the Azure Resource Manager template and the close it when done.

Task 2: Create our Azure DevOps environment

In this task, you will create an Azure DevOps repository.

  1. Open another tab in the browser and navigate to (https://aexprodcus1.vsaex.visualstudio.com/me?mkt=en-US).

  2. On the We need a few more details page, select Continue.

  3. On the Get started with Azure DevOps page, select Create new organization and then select Continue.

  4. On the Almost done… page, enter a name for your DevOps organization that you would not want to use in the future, like for example, your tenant prefix. Hint: It can be found in the Resources tab of your lab (WWLx…).

  5. Enter characters you see, then Continue.

  6. On the Create a project to get started page, enter My Sentinel Content and then select Create project.

  7. Navigate to Repos on the left pane.

  8. At the bottom of the page in the area Initialize main branch with a README or gitignore, select Initialize.

  9. The page should show the Files for the Repo. the only file is README.me.

  10. On the Files (right side of the page) blade, the toolbar include options Set up build, Clone, … Select the colon icon (:) to show more options.

  11. Select Upload Files.

  12. Select Browse and select the file Azure_Sentinel_analytic_rule.json from your Downloads directory.

  13. Select Commit.

  14. Select Azure DevOps on the top left corner of the page. This display your organization and projects.

  15. Select Organization settings from the bottom left of the page.

  16. Select Policies under the Security area of the left blade.

  17. Toggle On Third-party application access via OAuth under the Application connection policies area.

Task 3: Connect Sentinel to Azure DevOps.

  1. Select the Azure Portal/Microsoft Sentinel tab in your browser.

  2. In Microsoft Sentinel, select Repositories (Preview) in the Content Management section.

  3. Select + Add new button from the toolbar.

  4. For the name enter My Content.

  5. For Source control, select Azure DevOps.

  6. Select Authorize. Scroll down the permissions request and then select Accept.

  7. Select the Organization your created earlier (e.g. WWLx…).

  8. Select the Project you created earlier, My Sentinel Content.

  9. Select the Repository you created earlier, My Sentinel Content. Hint: You might need to scroll down within the drop-down to see the repository.

  10. Select the Branch main. Hint: You might need to scroll down within the drop-down to see the branch.

  11. Select all content types.

  12. Then select Create.

  13. Go back to Microsoft Sentinel workspace if needed

  14. Go to the Repositories (Preview) page, select Refresh. Wait until Last deployment status is Failed.

    Note: The Failed status is due to limitations in the hosted lab environment. You would normally see Succeeded. Then you can see in the Analytics the imported rule Rule from Azure DevOps.

You have completed the lab.