Skip to content

Commit

Permalink
Respect ENV values for resource group and index name (Azure-Samples#469)
Browse files Browse the repository at this point in the history
* Respect ENV values for resource group and index name

* Updated based on comments

* Update infra/main.parameters.json

Co-authored-by: Pamela Fox <[email protected]>

* Update infra/main.bicep

Co-authored-by: Pamela Fox <[email protected]>

* Update abbreviations.json

---------

Co-authored-by: Pamela Fox <[email protected]>
  • Loading branch information
Patrick-Davis-MSFT and pamelafox authored Jul 28, 2023
1 parent ce42409 commit e290962
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ param searchServiceResourceGroupName string = ''
param searchServiceResourceGroupLocation string = location

param searchServiceSkuName string = 'standard'
param searchIndexName string = 'gptkbindex'
param searchIndexName string // Set in main.parameters.json

param storageAccountName string = ''
param storageResourceGroupName string = ''
Expand Down
6 changes: 6 additions & 0 deletions infra/main.parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"environmentName": {
"value": "${AZURE_ENV_NAME}"
},
"resourceGroupName": {
"value": "${AZURE_RESOURCE_GROUP}"
},
"location": {
"value": "${AZURE_LOCATION}"
},
Expand All @@ -29,6 +32,9 @@
"formRecognizerSkuName": {
"value": "S0"
},
"searchIndexName": {
"value": "${AZURE_SEARCH_INDEX=gptkbindex}"
},
"searchServiceName": {
"value": "${AZURE_SEARCH_SERVICE}"
},
Expand Down

0 comments on commit e290962

Please sign in to comment.