You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: "Quickstart: Create and deploy an Azure HealthInsights resource using CLI"
3
+
description: "This document explains how to create and deploy an Azure HealthInsights resource using CLI"
4
+
author: hvanhoe
5
+
ms.author: henkvanhoe
6
+
ms.service: azure-health-insights
7
+
ms.topic: quickstart #Don't change
8
+
ms.date: 04/09/2024
9
+
---
10
+
11
+
# Quickstart: Create and deploy an Azure AI Health Insights resource (CLI)
12
+
13
+
This quickstart provides step-by-step instructions to create a resource and deploy a model. You can create resources in Azure in several different ways:
14
+
15
+
- The [Azure portal](https://portal.azure.com/)
16
+
- The REST APIs, the Azure CLI, PowerShell, or client libraries
17
+
- Azure Resource Manager (ARM) templates
18
+
19
+
In this article, you review examples for creating and deploying resources with the Azure CLI.
20
+
21
+
## Prerequisites
22
+
23
+
- An Azure subscription.
24
+
- The Azure CLI. For more information, see [How to install the Azure CLI](/cli/azure/install-azure-cli).
25
+
26
+
## Sign in to the Azure CLI
27
+
28
+
[Sign in](/cli/azure/authenticate-azure-cli) to the Azure CLI or select **Open Cloudshell** in the following steps.
29
+
30
+
## Create an Azure resource group
31
+
32
+
To create an Azure Health Insights resource, you need an Azure resource group. When you create a new resource through the Azure CLI, you can also create a new resource group or instruct Azure to use an existing group. The following example shows how to create a new resource group named _HealthInsightsResourceGroup_ with the [az group create](/cli/azure/group?view=azure-cli-latest&preserve-view=true#az-group-create) command. The resource group is created in the East US location.
33
+
34
+
```azurecli
35
+
az group create \
36
+
--name HealthInsightsResourceGroup \
37
+
--location eastus
38
+
```
39
+
40
+
## Create a resource
41
+
42
+
Use the [az cognitiveservices account create](/cli/azure/cognitiveservices/account?view=azure-cli-latest&preserve-view=true#az-cognitiveservices-account-create) command to create an Azure Health Insights resource in the resource group. In the following example, you create a resource named _HealthInsightsResource_ in the _HealthInsightsResourceGroup_ resource group. When you try the example, update the code to use your desired values for the resource group and resource name, along with your Azure subscription ID.
43
+
44
+
```azurecli
45
+
az cognitiveservices account create \
46
+
--name HealthInsightsResource \
47
+
--resource-group HealthInsightsResourceGroup \
48
+
--kind HealthInsights \
49
+
--sku F0 \
50
+
--location eastus \
51
+
--custom-domain healthinsightsresource \
52
+
--subscription <subscriptionID>
53
+
```
54
+
55
+
## Retrieve information about the resource
56
+
57
+
After you create the resource, you can use different commands to find useful information about your Azure Health Insights instance. The following examples demonstrate how to retrieve the REST API endpoint base URL and the access keys for the new resource.
58
+
59
+
### Get the endpoint URL
60
+
61
+
Use the [az cognitiveservices account show](/cli/azure/cognitiveservices/account?view=azure-cli-latest&preserve-view=true#az-cognitiveservices-account-show) command to retrieve the REST API endpoint base URL for the resource. In this example, we direct the command output through the [jq](https://jqlang.github.io/jq/) JSON processor to locate the `.properties.endpoint` value.
62
+
63
+
When you try the example, update the code to use your values for the resource group and resource.
64
+
65
+
```azurecli
66
+
az cognitiveservices account show \
67
+
--name HealthInsightsResource \
68
+
--resource-group HealthInsightsResourceGroup \
69
+
| jq -r .properties.endpoint
70
+
```
71
+
72
+
### Get the primary API key
73
+
74
+
To retrieve the access keys for the resource, use the [az cognitiveservices account keys list](/cli/azure/cognitiveservices/account?view=azure-cli-latest&preserve-view=true#az-cognitiveservices-account-keys-list) command. In this example, we direct the command output through the [jq](https://jqlang.github.io/jq/) JSON processor to locate the `.key1` value.
75
+
76
+
When you try the example, update the code to use your values for the resource group and resource.
77
+
78
+
```azurecli
79
+
az cognitiveservices account keys list \
80
+
--name HealthInsightsResource \
81
+
--resource-group HealthInsightsResourceGroup \
82
+
| jq -r .key1
83
+
```
84
+
85
+
## Delete a resource or resource group
86
+
87
+
If you want to clean up after these exercises, you can remove your Azure Health Insights resource by deleting the resource through the Azure CLI.
88
+
89
+
To remove the resource, use the [az cognitiveservices account delete](/cli/azure/cognitiveservices/account/deployment?view=azure-cli-latest&preserve-view=true#az-cognitiveservices-account-delete) command. When you run this command, be sure to update the example code to use your values for the resource group and resource.
90
+
91
+
```azurecli
92
+
az cognitiveservices account delete \
93
+
--name HealthInsightsResource \
94
+
--resource-group HealthInsightsResourceGroup
95
+
```
96
+
97
+
You can also delete the resource group. If you choose to delete the resource group, all resources contained in the group are also deleted. When you run this command, be sure to update the example code to use your values for the resource group.
98
+
99
+
```azurecli
100
+
az group delete \
101
+
--name HealthInsightsResourceGroup
102
+
```
103
+
104
+
105
+
## Next steps
106
+
107
+
<!--- Access Radiology Insights with the [REST API](get-started.md). --->
title: "Quickstart: Create and deploy an Azure AI Health Insights resource using PowerShell"
3
+
description: "This document explains how to create and deploy an Azure AI Health Insights resource using PowerShell"
4
+
author: hvanhoe
5
+
ms.author: henkvanhoe
6
+
ms.service: azure-health-insights
7
+
ms.topic: quickstart #Don't change
8
+
ms.date: 04/09/2024
9
+
---
10
+
11
+
# Quickstart: Create and deploy an Azure AI Health Insights resource (PowerShell)
12
+
13
+
This quickstart provides step-by-step instructions to create a resource and deploy a model. You can create resources in Azure in several different ways:
14
+
15
+
- The [Azure portal](https://portal.azure.com/)
16
+
- The REST APIs, the Azure CLI, PowerShell, or client libraries
17
+
- Azure Resource Manager (ARM) templates
18
+
19
+
In this article, you review examples for creating and deploying resources with PowerShell.
20
+
21
+
## Prerequisites
22
+
23
+
- An Azure subscription.
24
+
- The Azure CLI. For more information, see [How to install the Azure CLI](/cli/azure/install-azure-cli).
25
+
26
+
## Sign in to the Azure PowerShell
27
+
28
+
[Sign in](/powershell/azure/authenticate-azureps) to the Azure CLI or select **Open Cloud Shell** in the following steps.
29
+
30
+
## Create an Azure resource group
31
+
32
+
To create an Azure Health Insights resource, you need an Azure resource group. When you create a new resource through Azure PowerShell, you can also create a new resource group or instruct Azure to use an existing group. The following example shows how to create a new resource group named _HealthInsightsResourceGroup_ with the [New-AzResourceGroup](/powershell/module/az.resources/new-azresourcegroup) command. The resource group is created in the East US location.
Use the [New-AzCognitiveServicesAccount](/powershell/module/az.cognitiveservices/new-azcognitiveservicesaccount) command to create an Azure Health Insights resource in the resource group. In the following example, you create a resource named _HealthInsightsResource_ in the _HealthInsightsResourceGroup_ resource group. When you try the example, update the code to use your desired values for the resource group and resource name, along with your Azure subscription ID.
After you create the resource, you can use different commands to find useful information about your Azure Health Insights Service instance. The following examples demonstrate how to retrieve the REST API endpoint base URL and the access keys for the new resource.
49
+
50
+
### Get the endpoint URL
51
+
52
+
Use the [Get-AzCognitiveServicesAccount](/powershell/module/az.cognitiveservices/get-azcognitiveservicesaccount) command to retrieve the REST API endpoint base URL for the resource. In this example, we direct the command output through the [Select-Object](/powershell/module/microsoft.powershell.utility/select-object) cmdlet to locate the `endpoint` value.
53
+
54
+
When you try the example, update the code to use your values for the resource group and resource.
To retrieve the access keys for the resource, use the [Get-AzCognitiveServicesAccountKey](/powershell/module/az.cognitiveservices/get-azcognitiveservicesaccountkey) command. In this example, we direct the command output through the [Select-Object](/powershell/module/microsoft.powershell.utility/select-object) cmdlet to locate the `Key1` value.
64
+
65
+
When you try the example, update the code to use your values for the resource group and resource.
If you want to clean up after these exercises, you can remove your Azure Health Insights resource by deleting the resource through the Azure PowerShell.
75
+
76
+
To remove the resource, use the [Remove-AzCognitiveServicesAccount](/powershell/module/az.cognitiveservices/remove-azcognitiveservicesaccount) command. When you run this command, be sure to update the example code to use your values for the resource group and resource.
You can also delete the resource group. If you choose to delete the resource group, all resources contained in the group are also deleted. When you run this command, be sure to update the example code to use your values for the resource group.
"value" : "\n\nIMPRESSION: \n\n1. Given its size, surgical \nconsultation is recommended.\n2. Recommend ultrasound.\n3. Recommend screening.\n\nRECOMMENDATION:\n\nTHIS IS A (AAA) CASE. An aneurysm follow up program has been developed to facilitate the monitoring of your patient and the next ultrasound will be arranged based on approved guidelines. \nKP NW Practice Guidelines for Surveillance of a AAA: Recommended Imaging Intervals \n<3cm No need for followup \n3-3.9cm Every 3 years \n4-4.4cm Every 2 years \n4.5-4.9cm Female every 6 months, Male every year \n5.0-5.5cm Male every 6 months \nReferral to Vascular Surgery: \nFemale >5cm \nMale <60 years of age; >5cm \nMale >61 years of age; >5.5cm.\nIf infrarenal aorta not well seen on US, repeat in 1 month with 24 hour liquid diet. If still not well seen, CT non-contrast abd/pelvis.\n"
"value" : "\n\nIMPRESSION: \n\n1. Given its size, surgical \nconsultation is recommended.\n2. Recommend ultrasound.\n3. Recommend screening.\n\nRECOMMENDATION:\n\nTHIS IS A (AAA) CASE. An aneurysm follow up program has been developed to facilitate the monitoring of your patient and the next ultrasound will be arranged based on approved guidelines. \nKP NW Practice Guidelines for Surveillance of a AAA: Recommended Imaging Intervals \n<3cm No need for followup \n3-3.9cm Every 3 years \n4-4.4cm Every 2 years \n4.5-4.9cm Female every 6 months, Male every year \n5.0-5.5cm Male every 6 months \nReferral to Vascular Surgery: \nFemale >5cm \nMale <60 years of age; >5cm \nMale >61 years of age; >5.5cm.\nIf infrarenal aorta not well seen on US, repeat in 1 month with 24 hour liquid diet. If still not well seen, CT non-contrast abd/pelvis.\n"
0 commit comments