Skip to content

Conversation

bahramr
Copy link

@bahramr bahramr commented Aug 22, 2025

Purpose

The bicep deployment fails because of trailing hidden characters. So added "| tr -d '\r\n'" to the ofllowing line: PRINCIPAL_ID=$(az ad signed-in-user show --query id -o tsv)

Does this introduce a breaking change?

[ ] Yes
[X] No

Pull Request Type

What kind of change does this Pull Request introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[X] Documentation content changes
[ ] Other... Please describe:

How to Test

Rerun the infrastructure deployment steps

What to Check

Verify that the bicep deployment successfully completes

The bicep deployment fails because of trailing hidden characters. So added "| tr -d '\r\n'" to the ofllowing line:
PRINCIPAL_ID=$(az ad signed-in-user show --query id -o tsv)
@@ -111,7 +111,7 @@ The following steps are required to deploy the infrastructure from the command l
RESOURCE_GROUP=rg-chat-basic-${BASE_NAME}
az group create -l $LOCATION -n $RESOURCE_GROUP

PRINCIPAL_ID=$(az ad signed-in-user show --query id -o tsv)
PRINCIPAL_ID=$(az ad signed-in-user show --query id -o tsv| tr -d '\r\n')
Copy link
Member

@ckittel ckittel Aug 22, 2025 β€’

Choose a reason for hiding this comment

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

IIRC, only time this would ever be a problem is if you were in WSL but using the az binary from windows. -- Which the instructions above specifically say is not supported. We won't be adding a workaround to work around people working around the instructions.

If you're executing this from WSL, be sure the Azure CLI is installed in WSL and is not using the version installed in Windows. which az should show /usr/bin/az.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants