Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
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/workflows/CAdeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:
set -e
az deployment group create \
--resource-group ${{ env.RESOURCE_GROUP_NAME }} \
--template-file infra/bicep/main.bicep \
--template-file infra/main.bicep \
--parameters solutionPrefix=${{ env.SOLUTION_PREFIX }} cosmosLocation=${{ env.AZURE_LOCATION }}

- name: List KeyVaults and Store in Array
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/build-clientadvisor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ jobs:
- app_name: byc-wa-app
dockerfile: src/App/WebApp.Dockerfile
password_secret: DOCKER_PASSWORD
- app_name: byc-wa-fn
dockerfile: src/AzureFunction/Dockerfile
password_secret: DOCKER_PASSWORD

uses: ./.github/workflows/build-docker.yml
with:
Expand Down
5 changes: 0 additions & 5 deletions azure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ metadata:
template: build-your-own-copilot-solution-accelerator@1.0
name: build-your-own-copilot-solution-accelerator@1.0

infra:
provider: bicep
path: infra/bicep
module: main

hooks:
postprovision:
windows:
Expand Down
1 change: 1 addition & 0 deletions infra/deploy_ai_foundry.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ resource aiServices 'Microsoft.CognitiveServices/accounts@2021-10-01' = {
apiProperties: {
statisticsEnabled: false
}
publicNetworkAccess: 'Enabled'
}
}

Expand Down
43 changes: 0 additions & 43 deletions infra/deploy_ai_search_service.bicep

This file was deleted.

29 changes: 0 additions & 29 deletions infra/deploy_aihub_scripts.bicep

This file was deleted.

75 changes: 72 additions & 3 deletions infra/deploy_app_service.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ param AzureOpenAIEmbeddingEndpoint string = ''
param WebAppEnableChatHistory string = 'False'

@description('Use Azure Function')
param USE_AZUREFUNCTION string = 'True'
param USE_INTERNAL_STREAM string = 'True'

@description('Azure Function Endpoint')
param STREAMING_AZUREFUNCTION_ENDPOINT string = ''
Expand Down Expand Up @@ -163,6 +163,22 @@ param userassignedIdentityId string
param userassignedIdentityClientId string
param applicationInsightsId string

@secure()
param azureSearchAdminKey string
param azureSearchServiceEndpoint string

@description('Azure Function App SQL System Prompt')
param sqlSystemPrompt string
@description('Azure Function App CallTranscript System Prompt')
param callTranscriptSystemPrompt string
@description('Azure Function App Stream Text System Prompt')
param streamTextSystemPrompt string

@secure()
param aiProjectConnectionString string
param useAIProjectClientFlag string = 'false'
param aiProjectName string

// var WebAppImageName = 'DOCKER|byoaiacontainer.azurecr.io/byoaia-app:latest'

// var WebAppImageName = 'DOCKER|ncwaappcontainerreg1.azurecr.io/ncqaappimage:v1.0.0'
Expand Down Expand Up @@ -347,8 +363,8 @@ resource Website 'Microsoft.Web/sites@2020-06-01' = {
value: SQLDB_PASSWORD
}

{name: 'USE_AZUREFUNCTION'
value: USE_AZUREFUNCTION
{name: 'USE_INTERNAL_STREAM'
value: USE_INTERNAL_STREAM
}

{name: 'STREAMING_AZUREFUNCTION_ENDPOINT'
Expand Down Expand Up @@ -386,6 +402,42 @@ resource Website 'Microsoft.Web/sites@2020-06-01' = {
name: 'SQLDB_USER_MID'
value: userassignedIdentityClientId
}
{
name: 'OPENAI_API_VERSION'
value: AzureOpenAIApiVersion
}
{
name: 'AZURE_AI_SEARCH_API_KEY'
value: azureSearchAdminKey
}
{
name: 'AZURE_AI_SEARCH_ENDPOINT'
value: azureSearchServiceEndpoint
}
{
name: 'SQLDB_CONNECTION_STRING'
value: 'TBD'
}
{
name: 'AZURE_SQL_SYSTEM_PROMPT'
value: sqlSystemPrompt
}
{
name: 'AZURE_CALL_TRANSCRIPT_SYSTEM_PROMPT'
value: callTranscriptSystemPrompt
}
{
name: 'AZURE_OPENAI_STREAM_TEXT_SYSTEM_PROMPT'
value: streamTextSystemPrompt
}
{
name: 'AZURE_AI_PROJECT_CONN_STRING'
value: aiProjectConnectionString
}
{
name: 'USE_AI_PROJECT_CLIENT'
value: useAIProjectClientFlag
}
]
linuxFxVersion: WebAppImageName
}
Expand Down Expand Up @@ -422,4 +474,21 @@ module cosmosUserRole 'core/database/cosmos/cosmos-role-assign.bicep' = {
]
}

resource aiHubProject 'Microsoft.MachineLearningServices/workspaces@2024-01-01-preview' existing = {
name: aiProjectName
}

resource aiDeveloper 'Microsoft.Authorization/roleDefinitions@2022-04-01' existing = {
name: '64702f94-c441-49e6-a78b-ef80e0188fee'
}

resource aiDeveloperAccessProj 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid(Website.name, aiHubProject.id, aiDeveloper.id)
scope: aiHubProject
properties: {
roleDefinitionId: aiDeveloper.id
principalId: Website.identity.principalId
}
}

output webAppUrl string = 'https://${WebsiteName}.azurewebsites.net'
37 changes: 0 additions & 37 deletions infra/deploy_azure_ai_service.bicep

This file was deleted.

Loading