Skip to content

Commit 609f819

Browse files
committed
feat: add support for Azure Free Trial accounts (closes #40)
1 parent 55c0475 commit 609f819

File tree

4 files changed

+26
-2
lines changed

4 files changed

+26
-2
lines changed

docs/sections/09-azure.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@ azd env set AZURE_OPENAI_URL $$proxy$$
5757

5858
</div>
5959

60+
<div class="important" data-title="Important">
61+
62+
> If you're using an Azure for Students or Free Trial account that you just created, you need to run the following command:
63+
> ```sh
64+
> azd env set USE_AZURE_FREE true
65+
> ```
66+
67+
</div>
68+
6069
#### Deploy Azure Infrastructure
6170
6271
Now it's time to deploy the Azure infrastructure for the workshop. Execute the following command:

docs/sections/qdrant/09-azure.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,15 @@ azd env set AZURE_OPENAI_URL $$proxy$$
5858

5959
</div>
6060

61+
<div class="important" data-title="Important">
62+
63+
> If you're using an Azure for Students or Free Trial account that you just created, you need to run the following command:
64+
> ```sh
65+
> azd env set USE_AZURE_FREE true
66+
> ```
67+
68+
</div>
69+
6170
#### Deploy Azure Infrastructure
6271
6372
Now it's time to deploy the Azure infrastructure for the workshop. Execute the following command:

infra/main.bicep

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ param frontendLocation string = 'eastus2'
4848
param chatModelName string // Set in main.parameters.json
4949
param chatDeploymentName string = chatModelName
5050
param chatModelVersion string // Set in main.parameters.json
51-
param chatDeploymentCapacity int = 15
51+
param chatDeploymentCapacity int = useAzureFree ? 1 : 15
5252
param embeddingsModelName string // Set in main.parameters.json
5353
param embeddingsModelVersion string // Set in main.parameters.json
5454
param embeddingsDeploymentName string = embeddingsModelName
55-
param embeddingsDeploymentCapacity int = 30
55+
param embeddingsDeploymentCapacity int = useAzureFree ? 1 : 30
5656

5757
@description('Id of the user or app to assign application roles')
5858
param principalId string = ''
@@ -63,6 +63,9 @@ param useQdrant bool = false
6363
@description('Qdrant port')
6464
param qdrantPort int // Set in main.parameters.json
6565

66+
@description('Use Azure Free tier')
67+
param useAzureFree bool = false
68+
6669
// Differentiates between automated and manual deployments
6770
param isContinuousDeployment bool = false
6871

infra/main.parameters.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@
4444
"qdrantPort": {
4545
"value": "${QDRANT_PORT=6333}"
4646
},
47+
"useAzureFree": {
48+
"value": "${AZURE_FREE=false}"
49+
},
4750
"isContinuousDeployment": {
4851
"value": "${CI=false}"
4952
}

0 commit comments

Comments
 (0)