Skip to content

Commit e6552bf

Browse files
committed
Updated links for create-service
1 parent 3900c59 commit e6552bf

File tree

3 files changed

+28
-5
lines changed

3 files changed

+28
-5
lines changed

articles/search/search-create-service-portal.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ author: HeidiSteen
88
ms.author: heidist
99
ms.service: cognitive-search
1010
ms.topic: conceptual
11-
ms.date: 10/13/2022
11+
ms.date: 01/25/2023
1212
---
1313

1414
# Create an Azure Cognitive Search service in the portal
@@ -17,7 +17,7 @@ ms.date: 10/13/2022
1717

1818
If you have an Azure subscription, including a [trial subscription](https://azure.microsoft.com/pricing/free-trial/?WT.mc_id=A261C142F), you can create a search service for free. Free services have limitations, but you can complete all of the quickstarts and most tutorials.
1919

20-
The easiest way to create search service is using the [Azure portal](https://portal.azure.com/), which is covered in this article. You can also use [Azure PowerShell](search-manage-powershell.md), [Azure CLI](/cli/azure/search), the [Management REST API](/rest/api/searchmanagement/), an [Azure Resource Manager service template](https://azure.microsoft.com/resources/templates/azure-search-create/), or a [Bicep file](search-get-started-bicep.md).
20+
The easiest way to create search service is using the [Azure portal](https://portal.azure.com/), which is covered in this article. You can also use [Azure PowerShell](search-manage-powershell.md#create-or-delete-a-service), [Azure CLI](search-manage-azure-cli.md#create-or-delete-a-service), the [Management REST API](search-manage-rest.md#create-or-update-a-service), an [Azure Resource Manager service template](search-get-started-arm.md), or a [Bicep file](search-get-started-bicep.md).
2121

2222
[![Animated GIF](./media/search-create-service-portal/AnimatedGif-AzureSearch-small.gif)](./media/search-create-service-portal/AnimatedGif-AzureSearch.gif#lightbox)
2323

articles/search/search-manage-azure-cli.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.author: magottei
88
ms.service: cognitive-search
99
ms.devlang: azurecli
1010
ms.topic: how-to
11-
ms.date: 01/05/2023
11+
ms.date: 01/25/2023
1212
---
1313

1414
# Manage your Azure Cognitive Search service with the Azure CLI
@@ -151,6 +151,13 @@ Results should look similar to the following output:
151151
}
152152
```
153153

154+
[**az search service delete**](/cli/azure/search/service?view=azure-cli-latest#az-search-service-delete-required-parameters) removes the service and its data.
155+
156+
```azurecli-interactive
157+
az search service delete --name <service-name> \
158+
--resource-group <search-service-resource-group-name> \
159+
```
160+
154161
### Create a service with IP rules
155162

156163
Depending on your security requirements, you may want to create a search service with an [IP firewall configured](service-configure-firewall.md). To do so, pass the Public IP (v4) addresses or CIDR ranges to the `ip-rules` argument as shown below. Rules should be separated by a comma (`,`) or semicolon (`;`).

articles/search/search-manage-powershell.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.author: heidist
99
ms.service: cognitive-search
1010
ms.devlang: powershell
1111
ms.topic: how-to
12-
ms.date: 06/08/2022
12+
ms.date: 01/25/2023
1313
ms.custom: devx-track-azurepowershell
1414
---
1515

@@ -193,9 +193,10 @@ ResourceId : /subscriptions/<alphanumeric-subscription-ID>/resourceGroups
193193
```azurepowershell-interactive
194194
New-AzSearchService -ResourceGroupName <resource-group-name> -Name <search-service-name> -Sku "Standard" -Location "West US" -PartitionCount 3 -ReplicaCount 3 -HostingMode Default
195195
```
196+
196197
Results should look similar to the following output.
197198

198-
```
199+
```azurepowershell
199200
ResourceGroupName : demo-westus
200201
Name : my-demo-searchapp
201202
Id : /subscriptions/<alphanumeric-subscription-ID>/demo-westus/providers/Microsoft.Search/searchServices/my-demo-searchapp
@@ -207,6 +208,21 @@ HostingMode : Default
207208
Tags
208209
```
209210

211+
[**Remove-AzSearchService**](/powershell/module/az.search/remove-azsearchservice) is used to delete a service and its data.
212+
213+
```azurepowershell-interactive
214+
Remove-AzSearchService -ResourceGroupName <resource-group-name> -Name <search-service-name>
215+
```
216+
217+
You'll be asked to confirm the action.
218+
219+
```azurepowershell
220+
Confirm
221+
Are you sure you want to remove Search Service 'pstestazuresearch01'?
222+
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): y
223+
```
224+
225+
210226
### Create a service with IP rules
211227

212228
Depending on your security requirements, you may want to create a search service with an [IP firewall configured](service-configure-firewall.md). To do so, first define the IP Rules and then pass them to the `IPRuleList` parameter as shown below.

0 commit comments

Comments
 (0)