Skip to content

Commit a9c3edd

Browse files
authored
patch (foundry): [networking] fix the Accepted account provisioning invalid state (#82)
* workaround: took dependency against model from pe and upgrade api version closes: #76 * remove AccountProvisioningStateInvalid troubleshooting * revert model dependency since api-version update will do * Address PR Feedback: align the api version in all account resources * Revert "revert model dependency since api-version update will do" This reverts commit f12d683.
1 parent d990d2e commit a9c3edd

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,6 @@ The following steps are required to deploy the infrastructure from the command l
188188
-p yourPrincipalId=${PRINCIPAL_ID}
189189
```
190190

191-
| :warning: | Some deployments are failing with an `AccountProvisioningStateInvalid` error related to the deployment of the Microsoft Foundry private endpoint. If you receive this, the only known workaround is to directly rerun this command. We are tracking this issue, and we will remove this added instruction once there is a resolution. |
192-
| :--------: | :------------------------- |
193-
194191
### 2. Deploy an agent in the Microsoft Foundry Agent Service
195192

196193
To test this scenario, you'll be deploying an AI agent included in this repository. The agent uses a GPT model combined with a Bing search for grounding data. Deploying an AI agent requires data plane access to Foundry. In this architecture, a network perimeter is established, and you must interact with the Foundry portal and its resources from within the network.

infra-as-code/bicep/ai-foundry-project.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ resource applicationInsights 'Microsoft.Insights/components@2020-02-02' existing
8484
// ---- New resources ----
8585

8686
@description('Existing Foundry account. The project will be created as a child resource of this account.')
87-
resource foundry 'Microsoft.CognitiveServices/accounts@2025-06-01' existing = {
87+
resource foundry 'Microsoft.CognitiveServices/accounts@2025-10-01-preview' existing = {
8888
name: existingFoundryName
8989

9090
resource project 'projects' = {

infra-as-code/bicep/ai-foundry.bicep

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ resource logAnalyticsWorkspace 'Microsoft.OperationalInsights/workspaces@2025-02
5959
// ---- New resources ----
6060

6161
@description('Deploy Microsoft Foundry (account) with Foundry Agent Service capability.')
62-
resource foundry 'Microsoft.CognitiveServices/accounts@2025-06-01' = {
62+
resource foundry 'Microsoft.CognitiveServices/accounts@2025-10-01-preview' = {
6363
name: foundryName
6464
location: location
6565
kind: 'AIServices'
@@ -128,6 +128,9 @@ resource cognitiveServicesUser 'Microsoft.Authorization/roleAssignments@2022-04-
128128
resource foundryPrivateEndpoint 'Microsoft.Network/privateEndpoints@2024-05-01' = {
129129
name: 'pe-foundry'
130130
location: location
131+
dependsOn: [
132+
foundry::model
133+
]
131134
properties: {
132135
subnet: {
133136
id: privateEndpointSubnetResourceId

infra-as-code/bicep/web-app.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ resource appServiceExistingPrivateDnsZone 'Microsoft.Network/privateDnsZones@202
103103
}
104104

105105
@description('Existing Foundry account. This account is where the agents hosted in Foundry Agent Service will be deployed. The web app code calls to these agents.')
106-
resource foundry 'Microsoft.CognitiveServices/accounts@2025-04-01-preview' existing = {
106+
resource foundry 'Microsoft.CognitiveServices/accounts@2025-10-01-preview' existing = {
107107
name: existingFoundryResourceName
108108

109109
resource project 'projects' existing = {

0 commit comments

Comments
 (0)