|
| 1 | +--- |
| 2 | +title: "Quickstart: deploy the Azure Health Data Services de-identification service with Bicep" |
| 3 | +description: "Quickstart: deploy the Azure Health Data Services de-identification service with Bicep." |
| 4 | +author: jovinson-ms |
| 5 | +ms.author: jovinson |
| 6 | +ms.service: azure-health-data-services |
| 7 | +ms.subservice: deidentification-service |
| 8 | +ms.topic: quickstart-bicep |
| 9 | +ms.custom: subject-bicepqs |
| 10 | +ms.date: 11/06/2024 |
| 11 | +--- |
| 12 | + |
| 13 | +# Quickstart: Deploy the Azure Health Data Services de-identification service (preview) with Bicep |
| 14 | + |
| 15 | +In this quickstart, you use a Bicep definition to deploy a de-identification service (preview). |
| 16 | + |
| 17 | +[!INCLUDE [About Bicep](~/reusable-content/ce-skilling/azure/includes/resource-manager-quickstart-bicep-introduction.md)] |
| 18 | + |
| 19 | +If your environment meets the prerequisites and you're familiar with using Bicep, select the |
| 20 | +**Deploy to Azure** button. The template opens in the Azure portal. |
| 21 | + |
| 22 | +:::image type="content" source="~/reusable-content/ce-skilling/azure/media/template-deployments/deploy-to-azure-button.svg" alt-text="Button to deploy the Bicep definition to Azure." border="false" link="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2Fquickstarts%2Fmicrosoft.healthdataaiservices%2Fdeidentification-service-create%2Fazuredeploy.json"::: |
| 23 | + |
| 24 | +## Prerequisites |
| 25 | + |
| 26 | +- If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin. |
| 27 | +[!INCLUDE [include](~/reusable-content/azure-cli/azure-cli-prepare-your-environment-no-header.md)] |
| 28 | +[!INCLUDE [include](~/reusable-content//azure-powershell/azure-powershell-requirements-no-header.md)] |
| 29 | + |
| 30 | +## Review the Bicep file |
| 31 | + |
| 32 | +The Bicep file used in this quickstart is from |
| 33 | +[Azure Quickstart Templates](/samples/azure/azure-quickstart-templates/deidentification-service-create/). |
| 34 | + |
| 35 | +:::code language="bicep" source="~/quickstart-templates/quickstarts/microsoft.healthdataaiservices/deidentification-service-create/main.bicep"::: |
| 36 | + |
| 37 | +The following Azure resources are defined in the Bicep file: |
| 38 | + |
| 39 | +- [Microsoft.HealthDataAIServices/deidServices](/azure/templates) |
| 40 | + |
| 41 | +## Deploy the Bicep file |
| 42 | + |
| 43 | +1. Save the Bicep file as `main.bicep` to your local computer. |
| 44 | + |
| 45 | +1. Deploy the Bicep file by using either Azure CLI or Azure PowerShell, replacing `<deid-service-name>` with a name for your de-identification service. |
| 46 | + |
| 47 | + # [Azure CLI](#tab/azure-cli) |
| 48 | + |
| 49 | + This command requires Azure CLI version 2.6 or later. You can check the currently installed version by running `az --version`. |
| 50 | + |
| 51 | + ```azurecli |
| 52 | + az group create --name exampleRG --location eastus |
| 53 | + az deployment group create --resource-group exampleRG --template-file main.bicep --parameters deidServiceName=<deid-service-name> |
| 54 | + ``` |
| 55 | + |
| 56 | + # [Azure PowerShell](#tab/azure-powershell) |
| 57 | + |
| 58 | + ```azurepowershell |
| 59 | + New-AzResourceGroup -Name exampleRG -Location eastus |
| 60 | + New-AzResourceGroupDeployment -ResourceGroupName exampleRG -TemplateFile ./main.bicep -deidServiceName "<deid-service-name>" |
| 61 | + ``` |
| 62 | +--- |
| 63 | +
|
| 64 | +## Review deployed resources |
| 65 | +
|
| 66 | +Use the Azure portal, the Azure CLI, or Azure PowerShell to list the deployed resources in the resource group. |
| 67 | +
|
| 68 | +# [Azure CLI](#tab/azure-cli) |
| 69 | +
|
| 70 | +```azurecli |
| 71 | +az resource list --resource-group exampleRG |
| 72 | +``` |
| 73 | + |
| 74 | +# [Azure PowerShell](#tab/azure-powershell) |
| 75 | + |
| 76 | +```azurepowershell |
| 77 | +Get-AzResource -ResourceGroupName exampleRG |
| 78 | +``` |
| 79 | + |
| 80 | +--- |
| 81 | + |
| 82 | +## Clean up resources |
| 83 | + |
| 84 | +When you no longer need the resources, use the Azure portal, the Azure CLI, or Azure PowerShell to delete the resource group. |
| 85 | + |
| 86 | +# [Azure CLI](#tab/azure-cli) |
| 87 | + |
| 88 | +```azurecli |
| 89 | +az group delete --name exampleRG |
| 90 | +``` |
| 91 | + |
| 92 | +# [Azure PowerShell](#tab/azure-powershell) |
| 93 | + |
| 94 | +```azurepowershell |
| 95 | +Remove-AzResourceGroup -Name exampleRG |
| 96 | +``` |
| 97 | + |
| 98 | +--- |
| 99 | + |
| 100 | +## Next steps |
| 101 | + |
| 102 | +> [!div class="nextstepaction"] |
| 103 | +> [Quickstart: Azure Health De-identification client library for .NET](quickstart-sdk-net.md) |
0 commit comments