Skip to content
Merged
Show file tree
Hide file tree
Changes from 124 commits
Commits
Show all changes
125 commits
Select commit Hold shift + click to select a range
d5776d2
Downgrade msal[broker] to 1.24.0b1 and azure-mgmt-resource to 23.1.0b2
Prasanjeet-Microsoft Jan 10, 2025
56f4f45
Merge pull request #282 from microsoft/downgrade-msal-azure-mgmt-reso…
Prajwal-Microsoft Jan 10, 2025
02f68ca
Downgrade azure-ai-ml package to version 1.17.1 to resolve package ve…
Prasanjeet-Microsoft Jan 13, 2025
c39f609
Upgrade azure-ai-ml package to compatible version
Prasanjeet-Microsoft Jan 13, 2025
99b5270
Merge pull request #284 from microsoft/upgrade-azure-ai-ml-package
Prajwal-Microsoft Jan 13, 2025
94b4f4c
test: Research assistant backend unit test (#286)
Pradheep-Microsoft Jan 13, 2025
b785eb6
fix: Research Assistant Deployment Issue - Prompt Flow version update…
Pradheep-Microsoft Jan 20, 2025
07bac06
Implement Consistent Versioning and Tagging for Accelerator Images (#…
Pavan-Microsoft Jan 22, 2025
0d82faa
Dev image version check
Pavan-Microsoft Jan 27, 2025
ae75bd3
Merge pull request #291 from microsoft/PSL-PK-ImageVersion
Pavan-Microsoft Jan 27, 2025
fb30c09
Revert "feat: Dev Image Version Check Test"
Pavan-Microsoft Jan 27, 2025
a582ee1
Merge pull request #292 from microsoft/revert-291-PSL-PK-ImageVersion
Pavan-Microsoft Jan 27, 2025
2adf389
update history method changes (#295)
pradeepjha-microsoft Jan 30, 2025
951fa25
fix: Fixed Asset and retirement update query (#332)
AjitPadhi-Microsoft Feb 6, 2025
6b85ef2
fixed the UI issue in Chat history list section (#335)
Mohan-Microsoft Feb 14, 2025
c412c08
Merge branch 'main' into dev
Roopan-Microsoft Feb 26, 2025
24752c7
Added code changes to handle null object error in history generate me…
Abdul-Microsoft Feb 26, 2025
ba9eb2a
build: validated and updated dependency for BYOC-ResearchAssistant Ac…
VishalS-Microsoft Feb 28, 2025
b81be42
Upgraded Package For AI_Hub Script (#419)
UtkarshMishra-Microsoft Mar 26, 2025
0d1f835
Merge branch 'main' into dev
Roopan-Microsoft Apr 1, 2025
03d13f1
package and ai-script (#426)
UtkarshMishra-Microsoft Apr 1, 2025
5c27106
resolved bug:16535 (#468)
VishalS-Microsoft Apr 4, 2025
14c770f
feat: SFI SQL Policy Changes (#469)
Abdul-Microsoft Apr 9, 2025
9cbfca2
perf: Semantic Kernel and Prompt improvement (#415)
UtkarshMishra-Microsoft Apr 9, 2025
23cbe2c
Merge branch 'main' into dev
Roopan-Microsoft Apr 10, 2025
6f60cf3
refactor: folder restructure for ca (#477)
Roopan-Microsoft Apr 10, 2025
d3b4d1b
Update README.md (#478)
Roopan-Microsoft Apr 10, 2025
091d074
fix: link updated for post deployment scripts (#480)
Roopan-Microsoft Apr 10, 2025
9599d44
chore: Removal of Power BI Integration (#481)
UtkarshMishra-Microsoft Apr 10, 2025
43551e7
updated the yml file typo
Roopan-Microsoft Apr 10, 2025
262ec7f
Merge branch 'dev' of https://github.com/microsoft/Build-your-own-cop…
Roopan-Microsoft Apr 10, 2025
8eb19b3
fix: Inject dynamic client name into Azure OpenAI host instructions (…
UtkarshMishra-Microsoft Apr 11, 2025
ca1af1a
feat: AI Foundry related bicep changes (#484)
Abdul-Microsoft Apr 11, 2025
a26e659
PromptAndLogic-fix (#485)
UtkarshMishra-Microsoft Apr 14, 2025
bf2393d
Prompt-updated (#486)
UtkarshMishra-Microsoft Apr 15, 2025
85306ef
Update run_fabric_items_scripts.sh
Roopan-Microsoft Apr 15, 2025
d026a3e
Update requirements.txt
Roopan-Microsoft Apr 15, 2025
4b10bb9
Update FabricDeployment.md
Roopan-Microsoft Apr 15, 2025
c749e03
Merge pull request #487 from microsoft/psl-pip-update-scripts
Avijit-Microsoft Apr 16, 2025
1a552fd
Fix: update icon no longer enabled when chat history name remains unc…
UtkarshMishra-Microsoft Apr 16, 2025
d2a957a
feat: Naming standard and post deployment script related bicep change…
Abdul-Microsoft Apr 16, 2025
163562f
feat: updated scripts to run manually, added azd template and devcont…
Harsh-Microsoft Apr 16, 2025
39baa6e
fix: update SQLDB_SERVER output to remove domain suffix and correct g…
Harsh-Microsoft Apr 16, 2025
56663e2
fix devcontainer.json and setup script to support initializing / node…
Dongbumlee Apr 16, 2025
a23c3ad
update path in Dockerfile
Dongbumlee Apr 16, 2025
540023e
add docker feature in devcontainer
Dongbumlee Apr 16, 2025
d705776
update script to following start.cmd
Dongbumlee Apr 16, 2025
138e006
docs: updates to the documentation and deployment scripts for Client …
Roopan-Microsoft Apr 17, 2025
44425e0
feat: Added feature to use azure_location env variable for deployment…
Abdul-Microsoft Apr 17, 2025
63d6faf
Update README.md
Roopan-Microsoft Apr 17, 2025
215357f
Add files via upload
Roopan-Microsoft Apr 17, 2025
60fddbe
fix: Enable Microsoft Entra Only Authentication in Sql Server (#497)
Abdul-Microsoft Apr 17, 2025
342cb03
Update Deployment option buttons and the version history messaging
bkeller108 Apr 17, 2025
bad916f
Create Create-Release.yml (#498)
Harmanpreet-Microsoft Apr 21, 2025
89f8370
docs: updates the documentation to improve user guidance for testing …
Roopan-Microsoft Apr 21, 2025
7157c7c
removed scripts (#501)
Harsh-Microsoft Apr 21, 2025
78efad9
added back post deployment scripts with Unix Style(LF) (#502)
Harsh-Microsoft Apr 21, 2025
0faaf9a
Update document changes
bkeller108 Apr 22, 2025
104e363
Merge pull request #503 from microsoft/ca-readme-documentation-changes
brittneek Apr 22, 2025
6633b20
update README.md
Dongbumlee Apr 22, 2025
d8526c1
Update readme
bkeller108 Apr 22, 2025
df88333
Merge pull request #509 from microsoft/ca-readme-documentation-changes
brittneek Apr 22, 2025
fb93f41
Update readme and deployment changes
bkeller108 Apr 22, 2025
85d2174
Merge pull request #510 from microsoft/ca-readme-documentation-changes
brittneek Apr 22, 2025
94a2acc
Update readme and deployment changes
bkeller108 Apr 22, 2025
3bc13f8
move the bicep files into infra folder
brittneek Apr 22, 2025
ade3789
Create azure-dev.yml
brittneek Apr 22, 2025
edfe69a
Merge pull request #511 from microsoft/ca-readme-documentation-changes
brittneek Apr 22, 2025
bc52e15
Update DeploymentGuide.md
Roopan-Microsoft Apr 23, 2025
aa573e6
Update DeploymentGuide.md
Roopan-Microsoft Apr 23, 2025
1f75256
Update DeploymentGuide.md
Roopan-Microsoft Apr 23, 2025
77b9d47
Updated, moved and renamed the Local Setup readme guide (#512)
Harsh-Microsoft Apr 23, 2025
fdb1c4b
Add files via upload
Roopan-Microsoft Apr 23, 2025
68fd90a
Update DeploymentGuide.md
Roopan-Microsoft Apr 23, 2025
57e990a
Update DeploymentGuide.md
Roopan-Microsoft Apr 23, 2025
b661adc
Add files via upload
Roopan-Microsoft Apr 23, 2025
e4cd089
feat: Code changes related to migrating azure function to App (#507)
Abdul-Microsoft Apr 23, 2025
73c3a67
Update azure-dev.yml
Roopan-Microsoft Apr 23, 2025
d2c5282
Update azure-dev.yml
Roopan-Microsoft Apr 23, 2025
3d7c77b
Update azure-dev.yml
Roopan-Microsoft Apr 23, 2025
842b759
rename azure dev yml file
brittneek Apr 23, 2025
e73d7ec
update readme
brittneek Apr 23, 2025
a277891
add launch.json for debgging
Dongbumlee Apr 24, 2025
a1e0d59
fix for async issue
Dongbumlee Apr 24, 2025
8c06b33
Update devcontainer.json
Roopan-Microsoft Apr 24, 2025
abfbcf9
Update devcontainer.json
Roopan-Microsoft Apr 24, 2025
312ce68
Update DeploymentGuide.md
Roopan-Microsoft Apr 24, 2025
00e0ef9
Update process_sample_data.sh
Roopan-Microsoft Apr 24, 2025
c3bf36a
Update DeploymentGuide.md
Roopan-Microsoft Apr 24, 2025
7551fda
Update FabricDeployment.md
Roopan-Microsoft Apr 24, 2025
5e1c41b
Update DeploymentGuide.md
Roopan-Microsoft Apr 24, 2025
4560e3c
Update quota_check.md
Roopan-Microsoft Apr 24, 2025
32c99d1
Merge branch 'main' into dev
Roopan-Microsoft Apr 24, 2025
c349c6c
Update DeploymentGuide.md
Roopan-Microsoft Apr 24, 2025
8d1cca7
Update CODEOWNERS
Roopan-Microsoft Apr 24, 2025
a1ffcc1
Update readme and documentation
brittneek Apr 24, 2025
48c67d6
Create azure-dev.yml
brittneek Apr 24, 2025
330af72
rename azure-dev file
brittneek Apr 24, 2025
340cc57
update azd
brittneek Apr 24, 2025
1dfa525
Update deploy_cosmos_db.bicep
brittneek Apr 24, 2025
8ddecfb
update bicep files for azd template
brittneek Apr 24, 2025
fd09d1e
set params as secure for kv
Dongbumlee Apr 24, 2025
26c708e
update bicep deployment files
brittneek Apr 24, 2025
9aef96d
removed output from sql_db and update main.bicep
Dongbumlee Apr 24, 2025
a5d462d
Merge branch 'dev' of https://github.com/microsoft/Build-your-own-cop…
Dongbumlee Apr 24, 2025
49702d5
update param name SQL_SERVER
Dongbumlee Apr 24, 2025
176de34
Add Manual Authentication
brittneek Apr 25, 2025
ed581b5
Update deploy_ai_foundry.bicep
brittneek Apr 25, 2025
c9a72df
revert SQL output references in Bicep files
Harsh-Microsoft Apr 25, 2025
6f2e865
Fix SQL server output format in deploy_sql_db.bicep
Harsh-Microsoft Apr 25, 2025
6503406
update azure-dev-validation file
brittneek Apr 25, 2025
65f40d4
Update README.md
brittneek Apr 25, 2025
01ccc16
Update architecture.png
brittneek Apr 25, 2025
4208057
Update main.json
brittneek Apr 25, 2025
671e12d
Merge branch 'main' into dev
Roopan-Microsoft Apr 28, 2025
7d9f912
main json file updated
Roopan-Microsoft Apr 28, 2025
243a1ec
Doc updated
Roopan-Microsoft Apr 28, 2025
fc41346
script reverted and updated
Roopan-Microsoft Apr 28, 2025
e8adcbd
Update deployment parameters in CAdeploy.yml to include environment n…
Harsh-Microsoft Apr 28, 2025
5418f46
Remove azure functions extension from devcontainer.json
Harsh-Microsoft Apr 28, 2025
0d124a1
Update architecture.png
brittneek Apr 28, 2025
57b81c3
rename azd template file
brittneek Apr 28, 2025
128ae82
Update azure-dev.yml
brittneek Apr 28, 2025
ee87b76
Changed the file to LF
brittneek Apr 28, 2025
35b002e
Merge branch 'main' of https://github.com/microsoft/Build-your-own-co…
brittneek Apr 28, 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
87 changes: 87 additions & 0 deletions .azdo/pipelines/azure-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# Run when commits are pushed to mainline branch (main or master)
# Set this to the mainline branch you are using
trigger:
- main
- master
- dev

# Azure Pipelines workflow to deploy to Azure using azd
# To configure required secrets and service connection for connecting to Azure, simply run `azd pipeline config --provider azdo`
# Task "Install azd" needs to install setup-azd extension for azdo - https://marketplace.visualstudio.com/items?itemName=ms-azuretools.azd
# See below for alternative task to install azd if you can't install above task in your organization

pool:
vmImage: ubuntu-latest

steps:
- task: setup-azd@0
displayName: Install azd

# If you can't install above task in your organization, you can comment it and uncomment below task to install azd
# - task: Bash@3
# displayName: Install azd
# inputs:
# targetType: 'inline'
# script: |
# curl -fsSL https://aka.ms/install-azd.sh | bash

# azd delegate auth to az to use service connection with AzureCLI@2
- pwsh: |
azd config set auth.useAzCliAuth "true"
displayName: Configure AZD to Use AZ CLI Authentication.

- task: AzureCLI@2
displayName: Provision Infrastructure
inputs:
azureSubscription: azconnection
scriptType: bash
scriptLocation: inlineScript
inlineScript: |
azd provision --no-prompt
env:

AZURE_SUBSCRIPTION_ID: $(AZURE_SUBSCRIPTION_ID)
AZURE_ENV_NAME: $(AZURE_ENV_NAME)
AZURE_LOCATION: $(AZURE_LOCATION)
# Project specific environment variables
# AZURE_RESOURCE_GROUP: $(AZURE_RESOURCE_GROUP)
# AZURE_AIHUB_NAME: $(AZURE_AIHUB_NAME)
# AZURE_AIPROJECT_NAME: $(AZURE_AIPROJECT_NAME)
# AZURE_AISERVICES_NAME: $(AZURE_AISERVICES_NAME)
# AZURE_SEARCH_SERVICE_NAME: $(AZURE_SEARCH_SERVICE_NAME)
# AZURE_APPLICATION_INSIGHTS_NAME: $(AZURE_APPLICATION_INSIGHTS_NAME)
# AZURE_CONTAINER_REGISTRY_NAME: $(AZURE_CONTAINER_REGISTRY_NAME)
# AZURE_KEYVAULT_NAME: $(AZURE_KEYVAULT_NAME)
# AZURE_STORAGE_ACCOUNT_NAME: $(AZURE_STORAGE_ACCOUNT_NAME)
# AZURE_LOG_ANALYTICS_WORKSPACE_NAME: $(AZURE_LOG_ANALYTICS_WORKSPACE_NAME)
# USE_CONTAINER_REGISTRY: $(USE_CONTAINER_REGISTRY)
# USE_APPLICATION_INSIGHTS: $(USE_APPLICATION_INSIGHTS)
# USE_SEARCH_SERVICE: $(USE_SEARCH_SERVICE)
# AZURE_AI_CHAT_DEPLOYMENT_NAME: $(AZURE_AI_CHAT_DEPLOYMENT_NAME)
# AZURE_AI_CHAT_DEPLOYMENT_SKU: $(AZURE_AI_CHAT_DEPLOYMENT_SKU)
# AZURE_AI_CHAT_DEPLOYMENT_CAPACITY: $(AZURE_AI_CHAT_DEPLOYMENT_CAPACITY)
# AZURE_AI_CHAT_MODEL_FORMAT: $(AZURE_AI_CHAT_MODEL_FORMAT)
# AZURE_AI_CHAT_MODEL_NAME: $(AZURE_AI_CHAT_MODEL)
# AZURE_AI_CHAT_MODEL_VERSION: $(AZURE_AI_CHAT_MODEL_VERSION)
# AZURE_AI_EMBED_DEPLOYMENT_NAME: $(AZURE_AI_EMBED_DEPLOYMENT_NAME)
# AZURE_AI_EMBED_DEPLOYMENT_SKU: $(AZURE_AI_EMBED_DEPLOYMENT_SKU)
# AZURE_AI_EMBED_DEPLOYMENT_CAPACITY: $(AZURE_AI_EMBED_DEPLOYMENT_CAPACITY)
# AZURE_AI_EMBED_MODEL_FORMAT: $(AZURE_AI_EMBED_MODEL_FORMAT)
# AZURE_AI_EMBED_MODEL_NAME: $(AZURE_AI_EMBED_MODEL_NAME)
# AZURE_AI_EMBED_MODEL_VERSION: $(AZURE_AI_EMBED_MODEL_VERSION)
# AZURE_EXISTING_AIPROJECT_CONNECTION_STRING: $(AZURE_EXISTING_AIPROJECT_CONNECTION_STRING)
- task: AzureCLI@2
displayName: Deploy Application
inputs:
azureSubscription: azconnection
scriptType: bash
scriptLocation: inlineScript
inlineScript: |
azd deploy --no-prompt
env:
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
AZURE_ENV_NAME: ${{ secrets.AZURE_ENV_NAME }}
AZURE_LOCATION: ${{ secrets.AZURE_LOCATION }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 1 addition & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
"ms-python.python",
"ms-azuretools.vscode-azcli",
"ms-azuretools.vscode-bicep",
"ms-azuretools.azure-dev",
"ms-azuretools.vscode-azurefunctions"
"ms-azuretools.azure-dev"
]
}
},
Expand Down
1 change: 0 additions & 1 deletion .devcontainer/setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ if ! command -v sqlcmd &> /dev/null; then
echo "sqlcmd is not available in the PATH. Please check the installation."
exit 1
fi

2 changes: 1 addition & 1 deletion .github/workflows/CAdeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ jobs:
az deployment group create \
--resource-group ${{ env.RESOURCE_GROUP_NAME }} \
--template-file infra/main.bicep \
--parameters AzureOpenAILocation=${{ env.AZURE_LOCATION }}
--parameters AzureOpenAILocation=${{ env.AZURE_LOCATION }} environmentName=${{ env.SOLUTION_PREFIX }} cosmosLocation=eastus2

- name: List KeyVaults and Store in Array
id: list_keyvaults
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Azure Template Validation
on:
push:
branches:
- main
- dev
workflow_dispatch:

permissions:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -403,4 +403,4 @@ scriptenv
.azure

clientdata
clienttranscripts
clienttranscripts
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ Follow the quick deploy steps on the deployment guide to deploy this solution to

<!-- Here are some example regions where the services are available: East US, East US2, Australia East, UK South, France Central. -->

| [![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Fbuild-your-own-copilot-solution-accelerator%2Fdev%2Finfra%2Fmain.json) |
|---|
<!-- | [![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2Fbuild-your-own-copilot-solution-accelerator%2Fdev%2Finfra%2Fmain.json) |
|---| -->


<br/>
Expand Down
66 changes: 66 additions & 0 deletions docs/ManualAppRegistrationConfiguration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Manual App Registration Configuration
This guide provides detailed steps to manually register both front-end and backend applications in Azure if automated registration is not an option due to security in place in your tenant and subscription.

## Prerequisites

- Access to **Microsoft Entra ID**
- Necessary permissions to create and manage **App Registrations** in your Azure tenant

## Step 1: Register the Web Application
### 1. Create App Registration
- Go to **Azure Portal** > **Microsoft Entra ID** > **Manage** > **App registrations**
- Click **+ New registration**
- Name the app (e.g., `byoc-app`)
- Under **Redirect URI**, choose **Web** and enter:

```
https://<web-app-url>azurecontainerapps.io/auth/login/aad/callback
```

To find your Web App URL:
- Navigate to your newly deployed resource group in the Azure Portal.
- Locate the web app in resource group.
- Copy the Default domain url from the Overview .

- Click **Register**
![ManualRegisterAppWeb1](./Images/ManualRegisterAppWeb1.png)



### 2. Configure Certificates and Secrets

- Go to **Certificates & secrets**
- Click **+ New client secret**
- Description: Provide a meaningful name to identify the secret
- Expires: Select from the options or define a custom range
- Start (Optional for custom range): Set the starting date of the secret's validity
- End (Optional for custom range): Set the ending date of the secret's validity
- Click **Add** and remember to copy and store the secret value securely as it will not be shown again
![ManualRegisterAppWeb3](./Images/ManualRegisterAppWeb3.png)

### 3. Get Tenant ID
- Go to **Tenant Properties** in [Azure Portal](https://portal.azure.com)
- Copy the Tenant ID (will be used in next step)

![ManualRegisterAppWeb6](./Images/ManualRegisterAppWeb6.png)

### 4. Set Up Authentication in Web Container App

- Go to your Web Container App
- Go to **Authentication**
- Click **Add Identity Provider**
- Choose **Microsoft**
- Input:
- **Client ID**: The Application (client) ID from the app registration
- **Client Secret**: The secret value you generated in Certificates & Secrets from the app registration
- **Issuer URL**: `https://sts.windows.net/<tenant_id>/v2.0`
- **Allowed Token Audiences**: Usually the Application ID URI or Client ID
- Click **Add**

![ManualRegisterAppWeb4](./Images/ManualRegisterAppWeb4.png)

---

## Conclusion

You have now manually configured Azure App Registrations.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/ManualRegisterAppWeb1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/ManualRegisterAppWeb3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/ManualRegisterAppWeb4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/ManualRegisterAppWeb6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/readMe/architecture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion infra/deploy_cosmos_db.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,3 @@ resource AZURE_COSMOSDB_ENABLE_FEEDBACK 'Microsoft.KeyVault/vaults/secrets@2021-
output cosmosAccountName string = cosmos.name
output cosmosDatabaseName string = databaseName
output cosmosContainerName string = collectionName

5 changes: 3 additions & 2 deletions infra/deploy_sql_db.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ param sqlDBName string
param location string = solutionLocation

@description('The administrator username of the SQL logical server.')
@secure()
param administratorLogin string = 'sqladmin'

@description('The administrator password of the SQL logical server.')
Expand Down Expand Up @@ -112,6 +113,6 @@ resource sqldbDatabasePwd 'Microsoft.KeyVault/vaults/secrets@2021-11-01-preview'
}
}

output sqlServerName string = '${serverName}.database.windows.net'
output sqlServerName string = serverName
output sqlDbName string = sqlDBName
output sqlDbUser string = administratorLogin
// output sqlDbUser string = administratorLogin
6 changes: 3 additions & 3 deletions infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ module appserviceModule 'deploy_app_service.bicep' = {
AzureOpenAIEmbeddingkey:keyVault.getSecret('AZURE-OPENAI-KEY')
AzureOpenAIEmbeddingEndpoint:aifoundry.outputs.aiServicesTarget
USE_INTERNAL_STREAM:'True'
SQLDB_SERVER:sqlDBModule.outputs.sqlServerName
SQLDB_SERVER:'${sqlDBModule.outputs.sqlServerName}.database.windows.net'
SQLDB_DATABASE:sqlDBModule.outputs.sqlDbName
SQLDB_USERNAME:sqlDBModule.outputs.sqlDbUser
SQLDB_USERNAME:'sqladmin'
SQLDB_PASSWORD:keyVault.getSecret('SQLDB-PASSWORD')
AZURE_COSMOSDB_ACCOUNT: cosmosDBModule.outputs.cosmosAccountName
AZURE_COSMOSDB_CONVERSATIONS_CONTAINER: cosmosDBModule.outputs.cosmosContainerName
Expand Down Expand Up @@ -256,7 +256,7 @@ output STORAGE_CONTAINER_NAME string = storageAccountModule.outputs.storageConta
output KEY_VAULT_NAME string = keyvaultModule.outputs.keyvaultName
output COSMOSDB_ACCOUNT_NAME string = cosmosDBModule.outputs.cosmosAccountName
output RESOURCE_GROUP_NAME string = resourceGroup().name
output SQLDB_SERVER string = replace(sqlDBModule.outputs.sqlServerName, '.database.windows.net','')
output SQLDB_SERVER string = sqlDBModule.outputs.sqlServerName
output SQLDB_DATABASE string = sqlDBModule.outputs.sqlDbName
output MANAGEDINDENTITY_WEBAPP_NAME string = managedIdentityModule.outputs.managedIdentityWebAppOutput.name
output MANAGEDINDENTITY_WEBAPP_CLIENTID string = managedIdentityModule.outputs.managedIdentityWebAppOutput.clientId
23 changes: 8 additions & 15 deletions infra/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"_generator": {
"name": "bicep",
"version": "0.34.44.8038",
"templateHash": "6807899313442022071"
"templateHash": "1797657337218629559"
}
},
"parameters": {
Expand Down Expand Up @@ -39,8 +39,7 @@
"type": "string",
"defaultValue": "gpt-4o-mini",
"allowedValues": [
"gpt-4o-mini",
"gpt-4o"
"gpt-4o-mini"
],
"minLength": 1,
"metadata": {
Expand Down Expand Up @@ -91,8 +90,6 @@
"eastus2",
"francecentral",
"japaneast",
"norwayeast",
"southindia",
"swedencentral",
"uksouth",
"westus",
Expand Down Expand Up @@ -1933,7 +1930,7 @@
"_generator": {
"name": "bicep",
"version": "0.34.44.8038",
"templateHash": "1848692139029312246"
"templateHash": "4179944107717925300"
}
},
"parameters": {
Expand Down Expand Up @@ -1969,7 +1966,7 @@
}
},
"administratorLogin": {
"type": "string",
"type": "securestring",
"defaultValue": "sqladmin",
"metadata": {
"description": "The administrator username of the SQL logical server."
Expand Down Expand Up @@ -2086,15 +2083,11 @@
"outputs": {
"sqlServerName": {
"type": "string",
"value": "[format('{0}.database.windows.net', parameters('serverName'))]"
"value": "[parameters('serverName')]"
},
"sqlDbName": {
"type": "string",
"value": "[parameters('sqlDBName')]"
},
"sqlDbUser": {
"type": "string",
"value": "[parameters('administratorLogin')]"
}
}
}
Expand Down Expand Up @@ -2233,13 +2226,13 @@
"value": "True"
},
"SQLDB_SERVER": {
"value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_sql_db'), '2022-09-01').outputs.sqlServerName.value]"
"value": "[format('{0}.database.windows.net', reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_sql_db'), '2022-09-01').outputs.sqlServerName.value)]"
},
"SQLDB_DATABASE": {
"value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_sql_db'), '2022-09-01').outputs.sqlDbName.value]"
},
"SQLDB_USERNAME": {
"value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_sql_db'), '2022-09-01').outputs.sqlDbUser.value]"
"value": "sqladmin"
},
"SQLDB_PASSWORD": {
"reference": {
Expand Down Expand Up @@ -3085,7 +3078,7 @@
},
"SQLDB_SERVER": {
"type": "string",
"value": "[replace(reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_sql_db'), '2022-09-01').outputs.sqlServerName.value, '.database.windows.net', '')]"
"value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_sql_db'), '2022-09-01').outputs.sqlServerName.value]"
},
"SQLDB_DATABASE": {
"type": "string",
Expand Down
2 changes: 1 addition & 1 deletion infra/scripts/quota_check_params.sh
Original file line number Diff line number Diff line change
Expand Up @@ -247,4 +247,4 @@ else
echo "➡️ To request a quota increase, visit: https://aka.ms/oai/stuquotarequest"
fi

echo "✅ Script completed."
echo "✅ Script completed."
Loading