Skip to content

Commit 637d557

Browse files
committed
Update shell to sh for setSPObjectId.ps1 script in azure.yaml
1 parent b62b6f1 commit 637d557

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

ai-services/gpt-video-analysis-in-a-box/azure.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ hooks:
1111
interactive: true
1212
continueOnError: false
1313
posix:
14-
shell: pwsh
15-
run: ./scripts/setSPObjectId.ps1
14+
shell: sh
15+
run: ./scripts/setSPObjectId.sh
1616
interactive: true
1717
continueOnError: false
1818

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
# Get the signed-in user's ID
4+
spid=$(az ad signed-in-user show --query id --output tsv)
5+
6+
# Set the environment variable AZURE_SP_OBJECT_ID
7+
export AZURE_SP_OBJECT_ID="$spid"
8+
9+

0 commit comments

Comments
 (0)