Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.

Commit 7554483

Browse files
committed
rename environment variable to align with standard azure naming conventions
1 parent 84f2770 commit 7554483

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/DEPLOYMENT-GUIDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ In the `deploy.parameters.json` file, provide values for the following required
8989
`RESOURCE_GROUP` | <my_resource_group> | Yes | The resource group that GraphRAG will be deployed in. Will get created automatically if the resource group does not exist.
9090
`GRAPHRAG_IMAGE` | graphrag:backend | No | The name and tag of the graphrag docker image in the container registry. Will default to `graphrag:backend` and be hosted at `my_container_registry_name>.azurecr.io/graphrag:backend`.
9191
`CONTAINER_REGISTRY_NAME` | <my_container_registry_name> | No | Name of an Azure Container Registry where the `graphrag` backend docker image will be hosted. Leave off `.azurecr.io` from the name. If not provided, a unique name will be generated (recommended).
92-
`GRAPHRAG_COGNITIVE_SERVICES_ENDPOINT` | | No | Endpoint for cognitive services identity authorization. Will default to `https://cognitiveservices.azure.com/.default` for Azure Commercial cloud but should be defined for deployments in other Azure clouds.
92+
`COGNITIVE_SERVICES_AUDIENCE` | | No | Endpoint for cognitive services identity authorization. Will default to `https://cognitiveservices.azure.com/.default` for Azure Commercial cloud but should be defined for deployments in other Azure clouds.
9393
`APIM_NAME` | | No | Hostname of the API. Must be a globally unique name. The API will be accessible at `https://<APIM_NAME>.azure-api.net`. If not provided a unique name will be generated.
9494
`APIM_TIER` | | No | The [APIM tier](https://azure.microsoft.com/en-us/pricing/details/api-management) to use. Must be either `Developer` or `StandardV2`. Will default to `Developer` for cost savings.
9595
`RESOURCE_BASE_NAME` | | No | Suffix to apply to all azure resource names. If not provided a unique suffix will be generated.

infra/deploy.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ GRAPHRAG_IMAGE=""
1616
PUBLISHER_EMAIL=""
1717
PUBLISHER_NAME=""
1818
RESOURCE_BASE_NAME=""
19-
GRAPHRAG_COGNITIVE_SERVICES_ENDPOINT=""
19+
COGNITIVE_SERVICES_AUDIENCE=""
2020
CONTAINER_REGISTRY_NAME=""
2121

2222
requiredParams=(
@@ -239,9 +239,9 @@ populateOptionalParams () {
239239
if [ ! -z "$RESOURCE_BASE_NAME" ]; then
240240
printf "\tsetting RESOURCE_BASE_NAME=$RESOURCE_BASE_NAME\n"
241241
fi
242-
if [ -z "$GRAPHRAG_COGNITIVE_SERVICES_ENDPOINT" ]; then
243-
GRAPHRAG_COGNITIVE_SERVICES_ENDPOINT="https://cognitiveservices.azure.com/.default"
244-
printf "\tsetting GRAPHRAG_COGNITIVE_SERVICES_ENDPOINT=$GRAPHRAG_COGNITIVE_SERVICES_ENDPOINT\n"
242+
if [ -z "$COGNITIVE_SERVICES_AUDIENCE" ]; then
243+
COGNITIVE_SERVICES_AUDIENCE="https://cognitiveservices.azure.com/.default"
244+
printf "\tsetting COGNITIVE_SERVICES_AUDIENCE=$COGNITIVE_SERVICES_AUDIENCE\n"
245245
fi
246246
if [ -z "$GRAPHRAG_IMAGE" ]; then
247247
GRAPHRAG_IMAGE="graphrag:backend"
@@ -455,7 +455,7 @@ installGraphRAGHelmChart () {
455455
--set "graphragConfig.COSMOS_URI_ENDPOINT=$cosmosEndpoint" \
456456
--set "graphragConfig.GRAPHRAG_API_BASE=$GRAPHRAG_API_BASE" \
457457
--set "graphragConfig.GRAPHRAG_API_VERSION=$GRAPHRAG_API_VERSION" \
458-
--set "graphragConfig.GRAPHRAG_COGNITIVE_SERVICES_ENDPOINT=$GRAPHRAG_COGNITIVE_SERVICES_ENDPOINT" \
458+
--set "graphragConfig.COGNITIVE_SERVICES_AUDIENCE=$COGNITIVE_SERVICES_AUDIENCE" \
459459
--set "graphragConfig.GRAPHRAG_LLM_MODEL=$GRAPHRAG_LLM_MODEL" \
460460
--set "graphragConfig.GRAPHRAG_LLM_DEPLOYMENT_NAME=$GRAPHRAG_LLM_DEPLOYMENT_NAME" \
461461
--set "graphragConfig.GRAPHRAG_EMBEDDING_MODEL=$GRAPHRAG_EMBEDDING_MODEL" \

0 commit comments

Comments
 (0)