Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
e17f770
Merge pull request #605 from microsoft/dev
Roopan-Microsoft Nov 10, 2025
19ef66a
Added Deploy-v2 pipeline with manual dispatch and input parameter sup…
Vamshi-Microsoft Nov 10, 2025
f0923b4
Update the ReadMe and Added role assignment for Cognitive Services Op…
Vamshi-Microsoft Nov 11, 2025
de7b0cb
refactor: Moved entry for AZURE_ENV_ACR_NAME
Prajwal-Microsoft Nov 12, 2025
fb27575
Merge pull request #607 from microsoft/psl-deploy-v2
Prajwal-Microsoft Nov 12, 2025
d16a5a6
Add disclaimer for AI solutions in README
Atulku-Microsoft Nov 14, 2025
e29f2a1
Merge pull request #608 from microsoft/psl-disclaimer-dg
Roopan-Microsoft Nov 14, 2025
82ee815
Remove AI solutions disclaimer from README
Harmanpreet-Microsoft Nov 14, 2025
0bb20b4
Merge pull request #610 from microsoft/psl-removediscalmer
Roopan-Microsoft Nov 14, 2025
1437d69
Add disclaimer for AI solutions and compliance
Harmanpreet-Microsoft Nov 14, 2025
bff65f0
Merge pull request #611 from microsoft/psl-disclaimer-1
Roopan-Microsoft Nov 14, 2025
707caf8
Update README.md
Roopan-Microsoft Nov 14, 2025
5c0b95b
Merge pull request #612 from microsoft/psl-disclaimer-1
Roopan-Microsoft Nov 14, 2025
50fd6b9
Update README.md
Roopan-Microsoft Nov 14, 2025
45e35e3
Merge pull request #613 from microsoft/psl-disclaimer-1
Roopan-Microsoft Nov 14, 2025
3068839
added files for vs code web
Ragini-Microsoft Nov 20, 2025
bd8c181
docs: added files for vs code web
Avijit-Microsoft Nov 20, 2025
440df02
add vscode web button in readme
Ragini-Microsoft Nov 20, 2025
3d7a346
docs: add vscode web button in readme
Avijit-Microsoft Nov 20, 2025
0f9b766
chore: added AZURE_DEV_COLLECT_TELEMETRY environment variable to pipe…
Vamshi-Microsoft Nov 21, 2025
f793108
Merge pull request #618 from microsoft/psl-set-telemetry
Roopan-Microsoft Nov 21, 2025
a2fa414
Updated the code owners
Prekshith-Microsoft Nov 24, 2025
6871b2c
Merge pull request #622 from microsoft/dev
Roopan-Microsoft Nov 24, 2025
c01cea8
Merge pull request #621 from microsoft/psl-update-codeowner
Prajwal-Microsoft Nov 24, 2025
c03ddc0
commented Azure location env var in vs code web
Ragini-Microsoft Nov 25, 2025
fe089e2
added branch for validation
Ragini-Microsoft Nov 25, 2025
255969f
Revert "added branch for validation"
Ragini-Microsoft Nov 25, 2025
38e92cb
chore: Commented the location env var in vs code web
Avijit-Microsoft Nov 25, 2025
54190fc
Update Deployment Guide to include Visual Studio Code (WEB) deploymen…
Ragini-Microsoft Nov 27, 2025
de23626
Update Azure CLI login method to use device code for authentication
Ragini-Microsoft Nov 27, 2025
fd7ed1d
docs: Update Deployment Guide to include Visual Studio Code (WEB) dep…
Avijit-Microsoft Nov 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# Each line is a file pattern followed by one or more owners.

# These owners will be the default owners for everything in the repo.
* @toherman-msft @Avijit-Microsoft @Roopan-Microsoft @Prajwal-Microsoft @Vinay-Microsoft @malrose07 @aniaroramsft
* @toherman-msft @Avijit-Microsoft @Roopan-Microsoft @Prajwal-Microsoft @Vinay-Microsoft @malrose07 @aniaroramsft @nchandhi

853 changes: 853 additions & 0 deletions .github/workflows/deploy-v2.yml

Large diffs are not rendered by default.

77 changes: 52 additions & 25 deletions .github/workflows/test-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ on:
EMAILNOTIFICATION_LOGICAPP_URL_TA:
required: false
description: "Logic App URL for email notifications"
outputs:
TEST_SUCCESS:
description: "Whether tests passed"
value: ${{ jobs.test.outputs.TEST_SUCCESS }}
TEST_REPORT_URL:
description: "URL to test report artifact"
value: ${{ jobs.test.outputs.TEST_REPORT_URL }}

env:
url: ${{ inputs.DOCGEN_URL }}
Expand All @@ -19,6 +26,9 @@ env:
jobs:
test:
runs-on: ubuntu-latest
outputs:
TEST_SUCCESS: ${{ steps.test1.outcome == 'success' || steps.test2.outcome == 'success' || steps.test3.outcome == 'success' }}
TEST_REPORT_URL: ${{ steps.upload_report.outputs.artifact-url }}
steps:
- name: Checkout repository
uses: actions/checkout@v5
Expand Down Expand Up @@ -85,32 +95,49 @@ jobs:
name: test-report
path: tests/e2e-test/report/*

- name: Send Notification


- name: Generate E2E Test Summary
if: always()
run: |
RUN_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
REPORT_URL=${{ steps.upload_report.outputs.artifact-url }}
IS_SUCCESS=${{ steps.test1.outcome == 'success' || steps.test2.outcome == 'success' || steps.test3.outcome == 'success' }}
# Construct the email body
if [ "$IS_SUCCESS" = "true" ]; then
EMAIL_BODY=$(cat <<EOF
{
"body": "<p>Dear Team,</p><p>We would like to inform you that the ${{ env.accelerator_name }} Test Automation process has completed successfully.</p><p><strong>Run URL:</strong> <a href=\"${RUN_URL}\">${RUN_URL}</a><br></p><p><strong>Test Report:</strong> <a href=\"${REPORT_URL}\">${REPORT_URL}</a></p><p>Best regards,<br>Your Automation Team</p>",
"subject": "${{ env.accelerator_name }} Test Automation - Success"
}
EOF
)
echo "## 🧪 E2E Test Job Summary" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "| Field | Value |" >> $GITHUB_STEP_SUMMARY
echo "|-------|--------|" >> $GITHUB_STEP_SUMMARY

# Determine overall test result
OVERALL_SUCCESS="${{ steps.test1.outcome == 'success' || steps.test2.outcome == 'success' || steps.test3.outcome == 'success' }}"
if [[ "$OVERALL_SUCCESS" == "true" ]]; then
echo "| **Job Status** | ✅ Success |" >> $GITHUB_STEP_SUMMARY
else
EMAIL_BODY=$(cat <<EOF
{
"body": "<p>Dear Team,</p><p>We would like to inform you that the ${{ env.accelerator_name }} Test Automation process has encountered an issue and has failed to complete successfully.</p><p><strong>Run URL:</strong> <a href=\"${RUN_URL}\">${RUN_URL}</a><br> ${OUTPUT}</p><p><strong>Test Report:</strong> <a href=\"${REPORT_URL}\">${REPORT_URL}</a></p><p>Please investigate the matter at your earliest convenience.</p><p>Best regards,<br>Your Automation Team</p>",
"subject": "${{ env.accelerator_name }} Test Automation - Failure"
}
EOF
)
echo "| **Job Status** | ❌ Failed |" >> $GITHUB_STEP_SUMMARY
fi

# Send the notification
curl -X POST "${{ secrets.EMAILNOTIFICATION_LOGICAPP_URL_TA }}" \
-H "Content-Type: application/json" \
-d "$EMAIL_BODY" || echo "Failed to send notification"

echo "| **Target URL** | [${{ env.url }}](${{ env.url }}) |" >> $GITHUB_STEP_SUMMARY
echo "| **Test Report** | [Download Artifact](${{ steps.upload_report.outputs.artifact-url }}) |" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY

echo "### 📋 Test Execution Details" >> $GITHUB_STEP_SUMMARY
echo "| Attempt | Status | Notes |" >> $GITHUB_STEP_SUMMARY
echo "|---------|--------|-------|" >> $GITHUB_STEP_SUMMARY
echo "| **Test Run 1** | ${{ steps.test1.outcome == 'success' && '✅ Passed' || '❌ Failed' }} | Initial test execution |" >> $GITHUB_STEP_SUMMARY

if [[ "${{ steps.test1.outcome }}" == "failure" ]]; then
echo "| **Test Run 2** | ${{ steps.test2.outcome == 'success' && '✅ Passed' || steps.test2.outcome == 'failure' && '❌ Failed' || '⏸️ Skipped' }} | Retry after 30s delay |" >> $GITHUB_STEP_SUMMARY
fi

if [[ "${{ steps.test2.outcome }}" == "failure" ]]; then
echo "| **Test Run 3** | ${{ steps.test3.outcome == 'success' && '✅ Passed' || steps.test3.outcome == 'failure' && '❌ Failed' || '⏸️ Skipped' }} | Final retry after 60s delay |" >> $GITHUB_STEP_SUMMARY
fi

echo "" >> $GITHUB_STEP_SUMMARY

if [[ "$OVERALL_SUCCESS" == "true" ]]; then
echo "### ✅ Test Results" >> $GITHUB_STEP_SUMMARY
echo "- End-to-end tests completed successfully" >> $GITHUB_STEP_SUMMARY
echo "- Application is functioning as expected" >> $GITHUB_STEP_SUMMARY
else
echo "### ❌ Test Results" >> $GITHUB_STEP_SUMMARY
echo "- All test attempts failed" >> $GITHUB_STEP_SUMMARY
echo "- Check the e2e-test/test job for detailed error information" >> $GITHUB_STEP_SUMMARY
fi
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ This example focuses on a generic use case - chat with your own data, generate a
</div>
<br/>

**Note:** With any AI solutions you create using these templates, you are responsible for assessing all associated risks and for complying with all applicable laws and safety standards. Learn more in the transparency documents for [Agent Service](https://learn.microsoft.com/en-us/azure/ai-foundry/responsible-ai/agents/transparency-note) and [Agent Framework](https://github.com/microsoft/agent-framework/blob/main/TRANSPARENCY_FAQ.md).
<br/>

<h2><img src="./docs/images/readme/solution-overview.png" width="48" />
Solution overview
</h2>
Expand Down Expand Up @@ -69,8 +72,8 @@ Follow the quick deploy steps on the deployment guide to deploy this solution to
[Click here to launch the deployment guide](./docs/DeploymentGuide.md)
<br/><br/>

| [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/microsoft/document-generation-solution-accelerator) | [![Open in Dev Containers](https://img.shields.io/static/v1?style=for-the-badge&label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/document-generation-solution-accelerator) |
|---|---|
| [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/microsoft/document-generation-solution-accelerator) | [![Open in Dev Containers](https://img.shields.io/static/v1?style=for-the-badge&label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/document-generation-solution-accelerator) | [![Open in Visual Studio Code Web](https://img.shields.io/static/v1?style=for-the-badge&label=Visual%20Studio%20Code%20(Web)&message=Open&color=blue&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/azure/?vscode-azure-exp=foundry&agentPayload=eyJiYXNlVXJsIjogImh0dHBzOi8vcmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbS9taWNyb3NvZnQvZG9jdW1lbnQtZ2VuZXJhdGlvbi1zb2x1dGlvbi1hY2NlbGVyYXRvci9yZWZzL2hlYWRzL21haW4vaW5mcmEvdnNjb2RlX3dlYiIsICJpbmRleFVybCI6ICIvaW5kZXguanNvbiIsICJ2YXJpYWJsZXMiOiB7ImFnZW50SWQiOiAiIiwgImNvbm5lY3Rpb25TdHJpbmciOiAiIiwgInRocmVhZElkIjogIiIsICJ1c2VyTWVzc2FnZSI6ICIiLCAicGxheWdyb3VuZE5hbWUiOiAiIiwgImxvY2F0aW9uIjogIiIsICJzdWJzY3JpcHRpb25JZCI6ICIiLCAicmVzb3VyY2VJZCI6ICIiLCAicHJvamVjdFJlc291cmNlSWQiOiAiIiwgImVuZHBvaW50IjogIiJ9LCAiY29kZVJvdXRlIjogWyJhaS1wcm9qZWN0cy1zZGsiLCAicHl0aG9uIiwgImRlZmF1bHQtYXp1cmUtYXV0aCIsICJlbmRwb2ludCJdfQ==) |
|---|---|---|

<br/>

Expand Down
2 changes: 2 additions & 0 deletions docs/CustomizingAzdParameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ By default this template will use the environment name as the prefix to prevent
| `AZURE_ENV_OPENAI_API_VERSION` | string | `2025-01-01-preview` | Specifies the API version for Azure OpenAI. |
| `AZURE_ENV_MODEL_CAPACITY` | integer | `30` | Sets the GPT model capacity (based on what's available in your subscription). |
| `AZURE_ENV_EMBEDDING_MODEL_NAME` | string | `text-embedding-ada-002` | Sets the name of the embedding model to use. |
| `AZURE_ENV_ACR_NAME` | string | `byocgacontainerreg` | Sets the Azure Container Registry name (allowed value: `byocgacontainerreg`)|
| `AZURE_ENV_IMAGETAG` | string | `latest_waf` | Set the Image tag Like (allowed values: latest_waf, dev, hotfix) |
| `AZURE_ENV_EMBEDDING_MODEL_CAPACITY` | integer | `80` | Sets the capacity for the embedding model deployment. |
| `AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID` | string | Guide to get your [Existing Workspace ID](/docs/re-use-log-analytics.md) | Reuses an existing Log Analytics Workspace instead of creating a new one. |
| `AZURE_EXISTING_AI_PROJECT_RESOURCE_ID` | string | Guid to get your existing AI Foundry Project resource ID | Reuses an existing AIFoundry and AIFoundryProject instead of creating a new one. |
| `AZURE_ENV_OPENAI_LOCATION` | string | `<User selects during deployment>` | Sets the Azure region for OpenAI resource deployment. |


## How to Set a Parameter
Expand Down
40 changes: 36 additions & 4 deletions docs/DeploymentGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ azd env set AZURE_ENV_VM_ADMIN_PASSWORD <your-password>

## Deployment Options & Steps

Pick from the options below to see step-by-step instructions for GitHub Codespaces, VS Code Dev Containers, and Local Environments.
Pick from the options below to see step-by-step instructions for GitHub Codespaces, VS Code Dev Containers, Visual Studio Code (WEB) and Local Environments.

| [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/microsoft/document-generation-solution-accelerator) | [![Open in Dev Containers](https://img.shields.io/static/v1?style=for-the-badge&label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/document-generation-solution-accelerator) |
|---|---|
| [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/microsoft/document-generation-solution-accelerator) | [![Open in Dev Containers](https://img.shields.io/static/v1?style=for-the-badge&label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/document-generation-solution-accelerator) | [![Open in Visual Studio Code Web](https://img.shields.io/static/v1?style=for-the-badge&label=Visual%20Studio%20Code%20(Web)&message=Open&color=blue&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/azure/?vscode-azure-exp=foundry&agentPayload=eyJiYXNlVXJsIjogImh0dHBzOi8vcmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbS9taWNyb3NvZnQvZG9jdW1lbnQtZ2VuZXJhdGlvbi1zb2x1dGlvbi1hY2NlbGVyYXRvci9yZWZzL2hlYWRzL21haW4vaW5mcmEvdnNjb2RlX3dlYiIsICJpbmRleFVybCI6ICIvaW5kZXguanNvbiIsICJ2YXJpYWJsZXMiOiB7ImFnZW50SWQiOiAiIiwgImNvbm5lY3Rpb25TdHJpbmciOiAiIiwgInRocmVhZElkIjogIiIsICJ1c2VyTWVzc2FnZSI6ICIiLCAicGxheWdyb3VuZE5hbWUiOiAiIiwgImxvY2F0aW9uIjogIiIsICJzdWJzY3JpcHRpb25JZCI6ICIiLCAicmVzb3VyY2VJZCI6ICIiLCAicHJvamVjdFJlc291cmNlSWQiOiAiIiwgImVuZHBvaW50IjogIiJ9LCAiY29kZVJvdXRlIjogWyJhaS1wcm9qZWN0cy1zZGsiLCAicHl0aG9uIiwgImRlZmF1bHQtYXp1cmUtYXV0aCIsICJlbmRwb2ludCJdfQ==) |
|---|---|--|

<details>
<summary><b>Deploy in GitHub Codespaces</b></summary>
Expand Down Expand Up @@ -103,6 +103,38 @@ You can run this solution in VS Code Dev Containers, which will open the project

</details>

<details>
<summary><b>Deploy in Visual Studio Code (WEB)</b></summary>

### Visual Studio Code (WEB)

You can run this solution in VS Code Web. The button will open a web-based VS Code instance in your browser:

1. Open the solution accelerator (this may take several minutes):

[![Open in Visual Studio Code Web](https://img.shields.io/static/v1?style=for-the-badge&label=Visual%20Studio%20Code%20(Web)&message=Open&color=blue&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/azure/?vscode-azure-exp=foundry&agentPayload=eyJiYXNlVXJsIjogImh0dHBzOi8vcmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbS9taWNyb3NvZnQvZG9jdW1lbnQtZ2VuZXJhdGlvbi1zb2x1dGlvbi1hY2NlbGVyYXRvci9yZWZzL2hlYWRzL21haW4vaW5mcmEvdnNjb2RlX3dlYiIsICJpbmRleFVybCI6ICIvaW5kZXguanNvbiIsICJ2YXJpYWJsZXMiOiB7ImFnZW50SWQiOiAiIiwgImNvbm5lY3Rpb25TdHJpbmciOiAiIiwgInRocmVhZElkIjogIiIsICJ1c2VyTWVzc2FnZSI6ICIiLCAicGxheWdyb3VuZE5hbWUiOiAiIiwgImxvY2F0aW9uIjogIiIsICJzdWJzY3JpcHRpb25JZCI6ICIiLCAicmVzb3VyY2VJZCI6ICIiLCAicHJvamVjdFJlc291cmNlSWQiOiAiIiwgImVuZHBvaW50IjogIiJ9LCAiY29kZVJvdXRlIjogWyJhaS1wcm9qZWN0cy1zZGsiLCAicHl0aG9uIiwgImRlZmF1bHQtYXp1cmUtYXV0aCIsICJlbmRwb2ludCJdfQ==)

2. When prompted, sign in using your Microsoft account linked to your Azure subscription.

Select the appropriate subscription to continue.

3. Once the solution opens, the **AI Foundry terminal** will automatically start running the following command to install the required dependencies:

```shell
sh install.sh
```
During this process, you’ll be prompted with the message:
```
What would you like to do with these files?
- Overwrite with versions from template
- Keep my existing files unchanged
```
Choose “**Overwrite with versions from template**” and provide a unique environment name when prompted.

4. Continue with the [deploying steps](#deploying-with-azd).

</details>

<details>
<summary><b>Deploy in your local Environment</b></summary>

Expand Down Expand Up @@ -172,7 +204,7 @@ To adjust quota settings, follow these [steps](./AzureGPTQuotaSettings.md).

### Deploying with AZD

Once you've opened the project in [Codespaces](#github-codespaces), [Dev Containers](#vs-code-dev-containers), or [locally](#local-environment), you can deploy it to Azure by following these steps:
Once you've opened the project in [Codespaces](#github-codespaces), [Dev Containers](#vs-code-dev-containers), [Visual Studio Code (WEB)](#visual-studio-code-web) or [locally](#local-environment), you can deploy it to Azure by following these steps:

1. Login to Azure:

Expand Down
6 changes: 6 additions & 0 deletions infra/main.parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@
},
"azureExistingAIProjectResourceId":{
"value": "${AZURE_EXISTING_AI_PROJECT_RESOURCE_ID}"
},
"acrName": {
"value": "${AZURE_ENV_ACR_NAME}"
},
"azureAiServiceLocation": {
"value": "${AZURE_ENV_OPENAI_LOCATION}"
}
}
}
6 changes: 6 additions & 0 deletions infra/main.waf.parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@
},
"azureExistingAIProjectResourceId":{
"value": "${AZURE_EXISTING_AI_PROJECT_RESOURCE_ID}"
},
"acrName": {
"value": "${AZURE_ENV_ACR_NAME}"
},
"azureAiServiceLocation": {
"value": "${AZURE_ENV_OPENAI_LOCATION}"
}
}
}
2 changes: 1 addition & 1 deletion infra/scripts/process_sample_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ else
else
# Use Azure CLI login if running locally
echo "Authenticating with Azure CLI..."
az login
az login --use-device-code
fi
echo "Not authenticated with Azure. Attempting to authenticate..."
fi
Expand Down
18 changes: 18 additions & 0 deletions infra/scripts/run_create_index_scripts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,24 @@ fi
echo "User already has the Azure AI User role."
fi

### Assign Cognitive Services OpenAI User role to the signed in user ###

# Check if the user has the Cognitive Services OpenAI User role
echo "Checking if user has the Cognitive Services OpenAI User role"
role_assignment=$(MSYS_NO_PATHCONV=1 az role assignment list --role 5e0bd9bd-7b93-4f28-af87-19fc36ad61bd --scope $aif_resource_id --assignee $signed_user_id --query "[].roleDefinitionId" -o tsv)
if [ -z "$role_assignment" ]; then
echo "User does not have the Cognitive Services OpenAI User role. Assigning the role."
MSYS_NO_PATHCONV=1 az role assignment create --assignee $signed_user_id --role 5e0bd9bd-7b93-4f28-af87-19fc36ad61bd --scope $aif_resource_id --output none
if [ $? -eq 0 ]; then
echo "Cognitive Services OpenAI User role assigned successfully."
else
echo "Failed to assign Cognitive Services OpenAI User role."
exit 1
fi
else
echo "User already has the Cognitive Services OpenAI User role."
fi

### Assign Search Index Data Contributor role to the signed in user ###

echo "Getting Azure Search resource id"
Expand Down
7 changes: 7 additions & 0 deletions infra/vscode_web/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
AZURE_EXISTING_AGENT_ID="<%= agentId %>"
AZURE_ENV_NAME="<%= playgroundName %>"
# AZURE_LOCATION="<%= location %>"
AZURE_SUBSCRIPTION_ID="<%= subscriptionId %>"
AZURE_EXISTING_AIPROJECT_ENDPOINT="<%= endpoint %>"
AZURE_EXISTING_AIPROJECT_RESOURCE_ID="<%= projectResourceId %>"
AZD_ALLOW_NON_EMPTY_FOLDER=true
85 changes: 85 additions & 0 deletions infra/vscode_web/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# ========== .NET ========== #
## Build results
bin/
obj/
[Bb]uild/
[Ll]ogs/
*.log
## User-specific files
*.user
*.suo
*.userosscache
*.sln.docstates
*.vsp
*.vspx
*.vspscc
## Rider / VS Code / Visual Studio
.idea/
.vscode/
.vs/
## NuGet packages
*.nupkg
packages/
*.snupkg
project.lock.json
project.assets.json
## Dotnet tools
.tools/
# ========== Java ========== #
## Compiled class files
*.class
## Logs
*.log
## Maven
target/
## Gradle
.gradle/
build/
## Eclipse
.project
.classpath
.settings/
.loadpath
## IntelliJ IDEA
*.iml
*.ipr
*.iws
out/
.idea/
# ========== Python ========== #
## Byte-compiled / cache
__pycache__/
*.py[cod]
*$py.class
## Virtual environment
env/
venv/
ENV/
.venv/
.env*
## PyInstaller
*.spec
dist/
build/
## Jupyter Notebook
.ipynb_checkpoints/
## Misc
*.log
*.pot
*.pyc
.DS_Store
*.sqlite3
# ========== General ========== #
## OS generated
Thumbs.db
ehthumbs.db
Desktop.ini
.DS_Store
*.swp
*.swo
*.bak
*.tmp
*.old
## Node (just in case mixed project)
node_modules/
# End
21 changes: 21 additions & 0 deletions infra/vscode_web/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) Microsoft Corporation.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
2 changes: 2 additions & 0 deletions infra/vscode_web/README-noazd.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# VS Code for the Web - Azure AI Foundry Templates

Loading
Loading