Skip to content

Commit 88699f4

Browse files
authored
Merge pull request #192710 from schaffererin/0323-cognitive-search-quickstart
Adding parameters to Bicep quickstart for Cognitive Search
2 parents 0ece2ca + 4a41127 commit 88699f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/search/search-get-started-bicep.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,20 @@ The Azure resource defined in this Bicep file:
3939

4040
```azurecli
4141
az group create --name exampleRG --location eastus
42-
az deployment group create --resource-group exampleRG --template-file main.bicep
42+
az deployment group create --resource-group exampleRG --template-file main.bicep --parameters serviceName=<service-name>
4343
```
4444
4545
# [PowerShell](#tab/PowerShell)
4646
4747
```azurepowershell
4848
New-AzResourceGroup -Name exampleRG -Location eastus
49-
New-AzResourceGroupDeployment -ResourceGroupName exampleRG -TemplateFile ./main.bicep
49+
New-AzResourceGroupDeployment -ResourceGroupName exampleRG -TemplateFile ./main.bicep -serviceName "<service-name>"
5050
```
5151
5252
---
5353
5454
> [!NOTE]
55-
> You'll be prompted to enter a service name. The service name must only contain lowercase letters, digits, or dashes. You can't use a dash as the first two characters or the last character. The name has a minimum length of 2 characters and a maximum length of 60 characters.
55+
> Replace **\<service-name\>** with the name of the Search service. The service name must only contain lowercase letters, digits, or dashes. You can't use a dash as the first two characters or the last character. The name has a minimum length of 2 characters and a maximum length of 60 characters.
5656
5757
When the deployment finishes, you should see a message indicating the deployment succeeded.
5858

0 commit comments

Comments
 (0)