Skip to content

Commit 2edc9d3

Browse files
authored
sanitized parameter file
1 parent 9daded3 commit 2edc9d3

File tree

3 files changed

+29
-8
lines changed

3 files changed

+29
-8
lines changed

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,15 @@
22
.vs
33
.venv
44
__pycache__
5+
6+
# Azure Developer CLI (azd)
7+
.azure/
8+
9+
# Local environment files
10+
.env
11+
.env.*
12+
!.env.example
13+
14+
# Local-only Bicep parameter overrides
15+
infra/*.local.bicepparam
16+
infra/*.local.bicepparam.json

README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Follow the deployment guide to deploy this solution to your own Azure subscripti
9292

9393
<br/>
9494

95-
> ⚠️ **Important: This repository uses git submodules**
95+
> **Important: This repository uses git submodules**
9696
> <br/>Clone with submodules included:
9797
> ```bash
9898
> git clone --recurse-submodules https://github.com/microsoft/Deploy-Your-AI-Application-In-Production.git
@@ -105,7 +105,18 @@ Follow the deployment guide to deploy this solution to your own Azure subscripti
105105
106106
<br/>
107107
108-
> ⚠️ **Important: Check Azure OpenAI Quota Availability**
108+
> **Important: Keep environment-specific values local**
109+
> <br/>This repo reads some settings from your local `azd` environment to avoid committing tenant/subscription-specific values.
110+
> ```bash
111+
> # Stored locally under .azure/ (gitignored)
112+
> azd env set FABRIC_CAPACITY_ADMINS '["[email protected]"]'
113+
> azd env set AISEARCH_ADDITIONAL_ACCESS_OBJECT_IDS '["<entraObjectId1>","<entraObjectId2>"]'
114+
> azd env set PURVIEW_ACCOUNT_RESOURCE_ID '/subscriptions/<sub>/resourceGroups/<rg>/providers/Microsoft.Purview/accounts/<name>'
115+
> ```
116+
117+
<br/>
118+
119+
> **Important: Check Azure OpenAI Quota Availability**
109120
> <br/>To ensure sufficient quota is available in your subscription, please follow the [quota check instructions guide](./docs/quota_check.md) before deploying.
110121
111122
<br/>
@@ -137,7 +148,7 @@ Follow the deployment guide to deploy this solution to your own Azure subscripti
137148
| Microsoft Fabric | F8 Capacity | [Pricing](https://azure.microsoft.com/pricing/details/microsoft-fabric/) |
138149
| Virtual Network + Bastion | Standard | [Pricing](https://azure.microsoft.com/pricing/details/azure-bastion/) |
139150
140-
> 💡 **Cost Optimization:** Fabric capacity can be paused when not in use. Use `az fabric capacity suspend` to stop billing.
151+
> **Cost Optimization:** Fabric capacity can be paused when not in use. Use `az fabric capacity suspend` to stop billing.
141152
142153
Use the [Azure Pricing Calculator](https://azure.microsoft.com/pricing/calculator/) for detailed estimates.
143154

infra/main.bicepparam

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ param aiSearchDefinition = {
7777
disableLocalAuth: true
7878
}
7979

80-
param aiSearchAdditionalAccessObjectIds = ['2e3ad864-1202-48a0-8eeb-e3e66a6fcbae','0d60355b-dcae-4331-b55f-283d80aabde5']
80+
param aiSearchAdditionalAccessObjectIds = json(readEnvironmentVariable('AISEARCH_ADDITIONAL_ACCESS_OBJECT_IDS', '[]'))
8181

8282
// ========================================
8383
// FABRIC CAPACITY PARAMETERS
@@ -90,16 +90,14 @@ param deployFabricCapacity = true
9090
param fabricCapacitySku = 'F8'
9191

9292
// Fabric capacity admin members (email addresses or object IDs).
93-
param fabricCapacityAdmins = [
94-
95-
]
93+
param fabricCapacityAdmins = json(readEnvironmentVariable('FABRIC_CAPACITY_ADMINS', '[]'))
9694

9795
// ========================================
9896
// PURVIEW PARAMETERS (Optional)
9997
// ========================================
10098

10199
// Existing Purview account resource ID (in different subscription if needed).
102-
param purviewAccountResourceId = '/subscriptions/48ab3756-f962-40a8-b0cf-b33ddae744bb/resourceGroups/Governance/providers/Microsoft.Purview/accounts/swantekPurview'
100+
param purviewAccountResourceId = readEnvironmentVariable('PURVIEW_ACCOUNT_RESOURCE_ID', '')
103101

104102
// Purview collection name (leave empty to auto-generate from environment name).
105103
param purviewCollectionName = ''

0 commit comments

Comments
 (0)