Skip to content

Commit 804e084

Browse files
exp issues fix
1 parent b94068c commit 804e084

File tree

8 files changed

+86
-7
lines changed

8 files changed

+86
-7
lines changed

docs/CustomizingAzdParameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ By default this template will use the environment name as the prefix to prevent
1313
| `AZURE_ENV_OPENAI_LOCATION` | string | `<User selects during deployment>` | Specifies the region for OpenAI resource deployment. |
1414
| `AZURE_ENV_MODEL_DEPLOYMENT_TYPE` | string | `GlobalStandard` | Defines the deployment type for the AI model (e.g., Standard, GlobalStandard). |
1515
| `AZURE_ENV_MODEL_NAME` | string | `gpt-4o` | Specifies the name of the GPT model to be deployed. |
16-
| `AZURE_ENV_FOUNDRY_PROJECT_ID` | string | `<Existing Workspace Id>` | Set this if you want to reuse an AI Foundry Project instead of creating a new one. |
16+
| `AZURE_EXISTING_AI_PROJECT_RESOURCE_ID` | string | `<Existing Workspace Id>` | Set this if you want to reuse an AI Foundry Project instead of creating a new one. |
1717
| `AZURE_ENV_MODEL_VERSION` | string | `2024-08-06` | Version of the GPT model to be used for deployment. |
1818
| `AZURE_ENV_MODEL_CAPACITY` | int | `150` | Sets the GPT model capacity. |
1919
| `AZURE_ENV_IMAGETAG` | string | `latest` | Docker image tag used for container deployments. |

docs/TroubleShootingSteps.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,5 +297,35 @@ The subscription 'xxxx-xxxx' cannot have more than 1 Container App Environments
297297

298298
</details>
299299

300+
<details>
301+
<summary><b>EncryptionAtHostFeatureNotEnabled</b></summary>
302+
303+
This error appears when a resource (typically a Virtual Machine or scale set) sets the property <code>encryptionAtHost: true</code> but the subscription isn't enabled for the feature <code>Microsoft.Compute/EncryptionAtHost</code> in that region.
304+
305+
Example error snippet:
306+
307+
<pre>
308+
{"code":"InvalidTemplateDeployment","message":"The template deployment failed with error: 'The feature Microsoft.Compute/EncryptionAtHost is not enabled for subscription <sub-id> in location <region>.'"}
309+
</pre>
310+
311+
Why it happens:
312+
- The host-level encryption capability is a gated feature. Subscriptions must register the feature (and sometimes wait for registration to complete) before provisioning VMs with it enabled.
313+
- Attempting to force it on before registration completes blocks deployment.
314+
315+
How to fix:
316+
1. Set the subscription
317+
- Run: <code>az account set --subscription "yourSubIDHere"</code>
318+
2. Register the feature (one time per subscription):
319+
- Run: <code>az feature register --name EncryptionAtHost --namespace Microsoft.Compute</code>
320+
3. Check status until it shows "Registered":
321+
- <code>az feature show --name EncryptionAtHost --namespace Microsoft.Compute</code>
322+
4. Re-run the deployment.
323+
324+
Reference docs:
325+
- Azure Host Encryption: https://learn.microsoft.com/en-us/azure/virtual-machines/disks-enable-host-based-encryption-portal?tabs=azure-cli
326+
327+
</details>
328+
<br/>
329+
<br/>
300330
💡 Note: If you encounter any other issues, you can refer to the [Common Deployment Errors](https://learn.microsoft.com/en-us/azure/azure-resource-manager/troubleshooting/common-deployment-errors) documentation.
301331
If the problem persists, you can also raise an bug in our [MACAE Github Issues](https://github.com/microsoft/Multi-Agent-Custom-Automation-Engine-Solution-Accelerator/issues) for further support.

docs/re-use-foundry-project.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ In the left-hand menu of the project blade:
3636
### 6. Set the Foundry Project Resource ID in Your Environment
3737
Run the following command in your terminal
3838
```bash
39-
azd env set AZURE_ENV_FOUNDRY_PROJECT_ID '<Existing Foundry Project Resource ID>'
39+
azd env set AZURE_EXISTING_AI_PROJECT_RESOURCE_ID '<Existing Foundry Project Resource ID>'
4040
```
4141
Replace `<Existing Foundry Project Resource ID>` with the value obtained from Step 5.
4242

infra/main.bicep

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ module logAnalyticsWorkspace 'br/public:avm/res/operational-insights/workspace:0
232232
features: { enableLogAccessUsingOnlyResourcePermissions: true }
233233
diagnosticSettings: [{ useThisWorkspace: true }]
234234
// WAF aligned configuration for Redundancy
235-
dailyQuotaGb: enableRedundancy ? 10 : null //WAF recommendation: 10 GB per day is a good starting point for most workloads
235+
dailyQuotaGb: enableRedundancy ? 150 : null //WAF recommendation: 150 GB per day is a good starting point for most workloads
236236
replication: enableRedundancy
237237
? {
238238
enabled: true
@@ -799,6 +799,26 @@ module windowsVmDataCollectionRules 'br/public:avm/res/insights/data-collection-
799799
name: 'perfCounterDataSource60'
800800
}
801801
]
802+
windowsEventLogs: [
803+
{
804+
name: 'SecurityAuditEvents'
805+
streams: [
806+
'Microsoft-WindowsEvent'
807+
]
808+
eventLogName: 'Security'
809+
eventTypes: [
810+
{
811+
eventType: 'Audit Success'
812+
}
813+
{
814+
eventType: 'Audit Failure'
815+
}
816+
]
817+
xPathQueries: [
818+
'Security!*[System[(EventID=4624 or EventID=4625)]]'
819+
]
820+
}
821+
]
802822
}
803823
destinations: {
804824
logAnalytics: [
@@ -856,7 +876,7 @@ module virtualMachine 'br/public:avm/res/compute/virtual-machine:0.17.0' = if (e
856876
bypassPlatformSafetyChecksOnUserSchedule: true
857877
maintenanceConfigurationResourceId: maintenanceConfiguration!.outputs.resourceId
858878
enableAutomaticUpdates: true
859-
encryptionAtHost: false
879+
encryptionAtHost: true
860880
availabilityZone: virtualMachineAvailabilityZone
861881
proximityPlacementGroupResourceId: proximityPlacementGroup!.outputs.resourceId
862882
imageReference: {
@@ -1498,6 +1518,7 @@ module webSite 'modules/web-sites.bicep' = {
14981518
vnetImagePullEnabled: enablePrivateNetworking ? true : false
14991519
virtualNetworkSubnetId: enablePrivateNetworking ? virtualNetwork!.outputs.subnetResourceIds[4] : null
15001520
publicNetworkAccess: 'Enabled' // Always enabling the public network access for Web App
1521+
e2eEncryptionEnabled: true
15011522
}
15021523
}
15031524

infra/main.parameters.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"value": "${AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID}"
3737
},
3838
"existingAiFoundryAiProjectResourceId": {
39-
"value": "${AZURE_ENV_FOUNDRY_PROJECT_ID}"
39+
"value": "${AZURE_EXISTING_AI_PROJECT_RESOURCE_ID}"
4040
}
4141
}
4242
}

infra/main.waf.parameters.json

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,34 @@
5151
"value": "${AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID}"
5252
},
5353
"existingAiFoundryAiProjectResourceId": {
54-
"value": "${AZURE_ENV_FOUNDRY_PROJECT_ID}"
54+
"value": "${AZURE_EXISTING_AI_PROJECT_RESOURCE_ID}"
55+
},
56+
"customerManagedKey": {
57+
"value": {
58+
"keyVaultResourceId": "/subscriptions/1d5876cd-7603-407a-96d2-ae5ca9a9c5f3/resourceGroups/macae-keyvault/providers/Microsoft.KeyVault/vaults/macae-cmk",
59+
"keyName": "macae-key",
60+
"keyVersion": "c9c62b36289342eca6fffb111f3634be",
61+
"userAssignedIdentityResourceId": "/subscriptions/1d5876cd-7603-407a-96d2-ae5ca9a9c5f3/resourceGroups/macae-keyvault/providers/Microsoft.ManagedIdentity/userAssignedIdentities/macae-identity"
62+
}
63+
},
64+
"allowedFqdnList": {
65+
"value": [
66+
"mcr.microsoft.com",
67+
"openai.azure.com",
68+
"cognitiveservices.azure.com",
69+
"login.microsoftonline.com",
70+
"management.azure.com",
71+
"aiinfra.azure.com",
72+
"aiinfra.azure.net",
73+
"aiinfra.azureedge.net",
74+
"blob.core.windows.net",
75+
"database.windows.net",
76+
"vault.azure.net",
77+
"monitoring.azure.com",
78+
"dc.services.visualstudio.com",
79+
"azconfig.io",
80+
"azconfig.azure.net"
81+
]
5582
}
5683
}
5784
}

infra/modules/web-sites.bicep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ resource app 'Microsoft.Web/sites@2024-04-01' = {
207207
vnetImagePullEnabled: vnetImagePullEnabled
208208
vnetRouteAllEnabled: vnetRouteAllEnabled
209209
scmSiteAlsoStopped: scmSiteAlsoStopped
210+
// Always enforce end to end encryption
210211
endToEndEncryptionEnabled: e2eEncryptionEnabled
211212
dnsConfiguration: dnsConfiguration
212213
autoGeneratedDomainNameLabelScope: autoGeneratedDomainNameLabelScope

infra/old/08-2025/main.parameters.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"value": "${AZURE_ENV_MODEL_CAPACITY}"
4141
},
4242
"existingFoundryProjectResourceId": {
43-
"value": "${AZURE_ENV_FOUNDRY_PROJECT_ID}"
43+
"value": "${AZURE_EXISTING_AI_PROJECT_RESOURCE_ID}"
4444
},
4545
"imageTag": {
4646
"value": "${AZURE_ENV_IMAGE_TAG}"

0 commit comments

Comments
 (0)