Skip to content

Commit 6604652

Browse files
Merge pull request #3377 from HeidiSteen/heidist-feb
Removed CLI option for creating service in CMK doc
2 parents 248240d + 0ff337a commit 6604652

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

articles/search/search-security-manage-encryption-keys.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ A policy that's assigned to a resource group in your subscription is effective i
347347
348348
For new search services, create them with [SearchEncryptionWithCmk](/rest/api/searchmanagement/services/create-or-update?view=rest-searchmanagement-2023-11-01&tabs=HTTP#searchencryptionwithcmk&preserve-view=true) set to `Enabled`.
349349
350-
Neither the Azure portal nor the command line tools (the Azure CLI and Azure PowerShell) provide this property natively, but you can use [Management REST API](/rest/api/searchmanagement/services/create-or-update) to provision a search service with a CMK policy definition. You can also use the Azure CLI `az resource create` or `update` command to set properties as name-value pairs.
350+
Neither the Azure portal nor the command line tools (the Azure CLI and Azure PowerShell) provide this property natively, but you can use [Management REST API](/rest/api/searchmanagement/services/create-or-update) to provision a search service with a CMK policy definition.
351351
352352
### [**Management REST API**](#tab/mgmt-rest-create)
353353
@@ -376,22 +376,22 @@ PUT https://management.azure.com/subscriptions/{{subscriptionId}}/resourceGroups
376376
}
377377
}
378378
```
379-
379+
<!--
380380
### [**Azure CLI**](#tab/azure-cli-create)
381381
382-
1. Create your search service using the examples in [Manage your Azure AI Search service with the Azure CLI](search-manage-azure-cli.md).
382+
These instructions assume you have a Deny policy defined for the resource group into which you're deploying a new search service.
383383
384-
1. Patch your service using the update command, substituting valid values for an existing search service and resource group.
384+
Run the following [`az resource`](/cli/azure/resource) command to create a new search service with CMK enforcement enabled. Substitute valid values for the name of the new search service and name of the existing resource group. The command includes eastus for a region so that you can see how regions are specified (lower case, no spaces).
385385
386-
```azurecli
387-
az resource update --name SEARCH-SERVICE-PLACEHOLDER --resource-group RESOURCE-GROUP-PLACEHOLDER --resource-type searchServices --namespace Microsoft.Search --set properties.encryptionWithCmk.enforcement=Enabled
388-
```
386+
```azurecli
387+
az resource create --name SEARCH-SERVICE-PLACEHOLDER --location eastus --resource-group RESOURCE-GROUP-PLACEHOLDER --resource-type searchServices --namespace Microsoft.Search --set properties.encryptionWithCmk.enforcement=Enabled
388+
``` -->
389389

390390
---
391391

392392
#### Update an existing search service
393393

394-
For existing search services that are now non-compliant, patch them using [Services - Update API](/rest/api/searchmanagement/services/update). Patching the services restores the ability to update search service properties.
394+
For existing search services that are now non-compliant, patch them using [Services - Update API](/rest/api/searchmanagement/services/update) or the Azure CLI [az resource update](/cli/azure/resource?view=azure-cli-latest#az-resource-update&preserve-view=true) command. Patching the services restores the ability to update search service properties.
395395

396396
### [**Management REST API**](#tab/mgmt-rest-update)
397397

0 commit comments

Comments
 (0)