-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding in prompty extension, details for workshop and updating readme.
- Loading branch information
Showing
6 changed files
with
108 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,8 @@ | |
"esbenp.prettier-vscode", | ||
"GitHub.vscode-github-actions", | ||
"ms-azuretools.azure-dev", | ||
"ms-python.black-formatter" | ||
"ms-python.black-formatter", | ||
"[email protected]" | ||
] | ||
} | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
set -e | ||
|
||
# Output environment variables to .env file using azd env get-values | ||
azd env get-values > .env | ||
|
||
# Load variables from .env file | ||
if [ -f .env ]; then | ||
source .env | ||
else | ||
echo ".env file not found!" | ||
exit 1 | ||
fi | ||
|
||
PRINCIPAL_ID=$(az ad signed-in-user show --query id -o tsv) | ||
|
||
az role assignment create \ | ||
--role "8ebe5a00-799e-43f5-93ac-243d3dce84a7" \ | ||
--assignee-object-id "${PRINCIPAL_ID}" \ | ||
--scope /subscriptions/"${AZURE_SUBSCRIPTION_ID}"/resourceGroups/"${AZURE_OPENAI_RESOURCE_GROUP}" \ | ||
--assignee-principal-type 'User' | ||
|
||
az role assignment create \ | ||
--role "1407120a-92aa-4202-b7e9-c0e197c71c8f" \ | ||
--assignee-object-id "${PRINCIPAL_ID}" \ | ||
--scope /subscriptions/"${AZURE_SUBSCRIPTION_ID}"/resourceGroups/"${AZURE_OPENAI_RESOURCE_GROUP}" \ | ||
--assignee-principal-type 'User' | ||
|
||
az role assignment create \ | ||
--role "8ebe5a00-799e-43f5-93ac-243d3dce84a7" \ | ||
--assignee-object-id "${PRINCIPAL_ID}" \ | ||
--scope /subscriptions/"${AZURE_SUBSCRIPTION_ID}"/resourceGroups/"${AZURE_OPENAI_RESOURCE_GROUP}" \ | ||
--assignee-principal-type 'User' | ||
|
||
az role assignment create \ | ||
--role "5e0bd9bd-7b93-4f28-af87-19fc36ad61bd" \ | ||
--assignee-object-id "${PRINCIPAL_ID}" \ | ||
--scope /subscriptions/"${AZURE_SUBSCRIPTION_ID}"/resourceGroups/"${AZURE_OPENAI_RESOURCE_GROUP}" \ | ||
--assignee-principal-type 'User' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters