Skip to content

Fix variable references in deployment instructions#128294

Open
diksha-hop wants to merge 1 commit intoMicrosoftDocs:mainfrom
diksha-hop:patch-5
Open

Fix variable references in deployment instructions#128294
diksha-hop wants to merge 1 commit intoMicrosoftDocs:mainfrom
diksha-hop:patch-5

Conversation

@diksha-hop
Copy link
Contributor

No description provided.

@prmerger-automator
Copy link
Contributor

@diksha-hop : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change.

@learn-build-service-prod
Copy link
Contributor

Learn Build status updates of commit 5431fdc:

✅ Validation status: passed

File Status Preview URL Details
articles/energy-data-services/includes/how-to/how-to-deploy-gcz/deploy-gcz-on-aks.md ✅Succeeded

For more details, please refer to the build report.

@ttorble ttorble requested a review from Copilot March 10, 2026 14:30
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the GCZ-on-AKS deployment guide to use consistent variable names and correct Helm/template paths, reducing copy/paste errors during deployment.

Changes:

  • Fixes shell variable references (e.g., using $AZURE_CLIENT_SECRET consistently).
  • Standardizes image repo/name/tag variables to include $ prefixes.
  • Corrects a Helm template output path and removes an accidental duplicate YAML key; minor grammar fix.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 90 to +93
$AZURE_TENANT_ID="<TENANT_ID_of_target_OSDU_deployment>" # Entra ID tenant ID. Example: aaaabbbb-0000-cccc-1111-dddd2222eeee
$AZURE_CLIENT_ID="<CLIENT_ID_of_target_OSDU_deployment>" # App Registration client ID. Example: 00001111-aaaa-2222-bbbb-3333cccc4444
$AZURE_CLIENT_SECRET="<CLIENT_SECRET_of_target_OSDU_deployment>" # App Registration client secret. Example: Aa1Bb~2Cc3.-
$CLIENT_SECRET_B64=$(echo -n "$CLIENT_SECRET" | base64 -w0)
$CLIENT_SECRET_B64=$(echo -n "$AZURE_CLIENT_SECRET" | base64 -w0)
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bash variable assignments are written with a leading $ (e.g., $AZURE_TENANT_ID=...), which is not valid in bash and will fail when pasted into a shell. Update these lines to use AZURE_TENANT_ID=... / AZURE_CLIENT_ID=... / AZURE_CLIENT_SECRET=... / CLIENT_SECRET_B64=... (no $ on the left-hand side).

Copilot uses AI. Check for mistakes.
Comment on lines 104 to +115
$GCZ_PROVIDER_IMAGE_TAG="0.28.2"
$GCZ_TRANSFORMER_IMAGE_NAME="geospatial-transformer"
$GCZ_TRANSFORMER_IMAGE_TAG="0.28.2"
PROVIDER_IMAGE_REPO=myregistry.azurecr.io/provider
PROVIDER_IMAGE_NAME=gcz-provider
PROVIDER_IMAGE_TAG=v1.0.0
IGNITE_IMAGE_REPO=myregistry.azurecr.io/gridgain
IGNITE_IMAGE_NAME=ignite
IGNITE_IMAGE_TAG=8.9.11
TRANSFORMER_IMAGE_REPO=myregistry.azurecr.io/transformer
TRANSFORMER_IMAGE_NAME=gcz-transformer
TRANSFORMER_IMAGE_TAG=v1.0.0
$PROVIDER_IMAGE_REPO=myregistry.azurecr.io/provider
$PROVIDER_IMAGE_NAME=gcz-provider
$PROVIDER_IMAGE_TAG=v1.0.0
$IGNITE_IMAGE_REPO=myregistry.azurecr.io/gridgain
$IGNITE_IMAGE_NAME=ignite
$IGNITE_IMAGE_TAG=8.9.11
$TRANSFORMER_IMAGE_REPO=myregistry.azurecr.io/transformer
$TRANSFORMER_IMAGE_NAME=gcz-transformer
$TRANSFORMER_IMAGE_TAG=v1.0.0
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same issue as above: these are shown as bash assignments but include $ on the left-hand side, which will break when executed. Remove the $ prefix for all assignment targets (keep $VAR only when referencing variables in later commands).

Copilot uses AI. Check for mistakes.
```bash
kubectl create secret generic client-secret -n ignite \
--from-literal=clientSecret="$CLIENT_SECRET"
--from-literal=clientSecret="$AZURE_CLIENT_SECRET"
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line references $AZURE_CLIENT_SECRET, but earlier in the doc the variable is currently assigned using $AZURE_CLIENT_SECRET="..." (invalid bash). If the assignment isn’t corrected, this secret creation will fail because the variable won’t be set. Fix by correcting the earlier assignment syntax (no $ on the left-hand side).

Suggested change
--from-literal=clientSecret="$AZURE_CLIENT_SECRET"
--from-literal=clientSecret="<your-azure-client-secret>"

Copilot uses AI. Check for mistakes.

```bash
$ cat > ../transformer/templates/service.yaml << EOF
$ cat > ../provider/templates/service.yaml << EOF
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The command is shown with a leading $ prompt but also includes a leading $ before cat. In shell docs, $ should be a prompt marker, not part of the command. Remove the extra $ before cat so users can copy/paste the command successfully.

Copilot uses AI. Check for mistakes.
@ttorble
Copy link
Contributor

ttorble commented Mar 10, 2026

@EirikHaughom

Can you review the proposed changes?

IMPORTANT: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@prmerger-automator prmerger-automator bot added the aq-pr-triaged tracking label for the PR review team label Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants