You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/sample_app_setup.md
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,8 @@ The client ID and client secret are required for authenticating your application
20
20
21
21
## Deployment Steps
22
22
23
+
### Setup Environment Variables
24
+
23
25
In order to have the sample application infrastructure deployed, certain parameter requirements must be met. Set specific environment variables listed in the below AZD command block prior to running `azd up` to properly deploy the sample application.
24
26
25
27
```sh
@@ -33,6 +35,15 @@ azd env set AZURE_AUTH_CLIENT_SECRET <your-client-secret>
33
35
34
36
Replace `<your-app-id>`, `<your-client-id>`, and `<your-client-secret>` with your actual Azure credentials.
35
37
38
+
### AI Models Parameter Requirements
39
+
40
+
Also, the `aiModelDeployments` parameter in the [main.parameters.json](/infra/main.parameters.json) must contain two AI model deployments in this specific order (Note: the default setup meets these requirements):
41
+
42
+
1. Text Embedding model (e.g., `text-embedding-ada-002`, `text-embedding-3-small`, `text-embedding-3-large`)
43
+
2. Chat Completion model (e.g., `gpt-4`, `gpt-4o`, `gpt-4o-mini`)
44
+
45
+
### Deploy
46
+
36
47
Follow the [standard deployment guide](./local_environment_steps.md).
AUTH_CLIENT_SECRET: '@Microsoft.KeyVault(VaultName=${keyVault.name};SecretName=${authProvider.clientSecretName})'// NOTE: This secret should be created in Key Vault with the name provided in authProvider.clientSecretName.
163
171
AZURE_CLIENT_ID: userAssignedIdentity.properties.clientId// NOTE: This is the client ID of the managed identity, not the Entra application, and is needed for the App Service to access the Cosmos DB account.
@description('Specifies whether network isolation is enabled. This will create a private endpoint for the Key Vault and link the private DNS zone.')
20
20
paramnetworkIsolationbool = true
21
21
22
-
@description('Specifies the object id of a Microsoft Entra ID user. In general, this the object id of the system administrator who deploys the Azure resources. This defaults to the deploying user.')
23
-
paramuserObjectIdstring
22
+
@description('Optional. Array of role assignments to create.')
23
+
paramroleAssignmentsroleAssignmentType[]?
24
+
25
+
@description('Optional. Array of secrets to create in the Key Vault.')
26
+
paramsecretssecretType[]?
24
27
25
28
moduleprivateDnsZone'br/public:avm/res/network/private-dns-zone:0.7.0' = if (networkIsolation) {
26
29
name: 'private-dns-keyvault-deployment'
@@ -37,7 +40,7 @@ module privateDnsZone 'br/public:avm/res/network/private-dns-zone:0.7.0' = if (n
0 commit comments