Skip to content

Commit f449c20

Browse files
authored
Checkpoint
1 parent a695299 commit f449c20

File tree

3 files changed

+18
-12
lines changed

3 files changed

+18
-12
lines changed

README.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -182,24 +182,30 @@ The following steps are required to deploy the infrastructure from the command l
182182

183183
### 2. Deploy an agent in the Azure AI Agent service
184184

185-
TODO: Write these instructions
185+
To test this scenario, you'll be deploying a configured 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 Azure AI Foundry. In this architecture, a network perimeter is established, and you must interact with the Azure AI Foundry portal and its resources from within the network.
186186
187-
To test this scenario, you'll be deploying a pre-built prompt flow. The prompt flow is called "Chat with Wikipedia" which adds a Wikipedia search as grounding data. Deploying a prompt flow requires data plane and control plane access. In this architecture, a network perimeter is established, and you must interact with the Azure AI Foundry portal and its resources from the network.
187+
The AI agent definition would likely be deployed from your application's pipeline running from a build agent in your workload's network or it could be deployed via singleton code in your web application. In this deployment, you'll create the agent from the jump box, which most closely simulates pipeline-based creation.
188188

189-
1. Connect to the virtual network via [Azure Bastion and the jump box](https://learn.microsoft.com/azure/bastion/bastion-connect-vm-rdp-windows#rdp) or through a force-tunneled VPN or virtual network peering that you manually configure.
189+
1. Connect to the virtual network via the deployed [Azure Bastion and the jump box](https://learn.microsoft.com/azure/bastion/bastion-connect-vm-rdp-windows#rdp). Alternatively, you can connect through a force-tunneled VPN or virtual network peering that you manually configure apart from these instructions.
190190

191-
The username for the Windows jump box deployed in this solution is `vmadmin`.
191+
The username for the Windows jump box deployed in this solution is `vmadmin`. You provided the password during the deployment.
192192

193193
| :computer: | Unless otherwise noted, the following steps are performed from the jump box or from your VPN-connected workstation. The instructions are written as if you are using the provided Windows jump box.|
194194
| :--------: | :------------------------- |
195195

196-
1. Open the Azure portal to your subscription and navigate to the Azure AI project named **aiproj-chat** in your resource group.
196+
1. Open the Azure portal to your subscription.
197+
198+
You'll need to sign in to the Azure portal, and resolve any Entra ID Conditional Acces policies on your account, if this is the first time you are connecting through the jump box.
199+
200+
1. Navigate to the Azure AI Foundry project named **projchat** in your resource group and open the Azure AI Foundry portal by clicking the **Go to Azure AI Foundry portal** button.
201+
202+
This will take you directly into the 'Chat project'. In the future, you can find all your AI Foundry accounts and projects by going to <https://ai.azure.com>.
197203
198-
You'll need to sign in if this is the first time you are connecting through the jump box.
204+
This deployment guide doesn't require you to perform any clicking in the Azure portal or the Azure AI Foundry portal. You launched the portal simply to test network connectivity from within the your virtual network.
199205

200-
1. Open the Azure AI Foundry portal by clicking the **Launch studio** button.
206+
1. Install the Azure CLI in your jump box.
201207

202-
This will take you directly into the 'Chat with Wikipedia project'. In the future, you can find all your AI Foundry hubs and projects by going to <https://ai.azure.com>.
208+
You'll be using this to deploy the agent.
203209
204210
1. Click on **Prompt flow** in the left navigation.
205211
@@ -333,11 +339,11 @@ az cognitiveservices account purge -g $RESOURCE_GROUP -l $LOCATION -n aif${BASE_
333339
```
334340

335341
> [!TIP]
336-
> The `vnet-workload` and associated networking resources are typically blocked from being deleted with the above instructions. This is because the Azure AI Agent subnet (`snet-agentsEgress`) retains a latent Microsoft-managed deletgated connection (`serviceAssociationLink`) to the deleted AI Agent Service backend. The virtual network and associated resources typically become free to delete about an hour after purging the Azure AI Foundry account.
342+
> The `vnet-workload` and associated networking resources are sometimes blocked from being deleted with the above instructions. This is because the Azure AI Agent subnet (`snet-agentsEgress`) retains a latent Microsoft-managed deletgated connection (`serviceAssociationLink`) to the deleted AI Agent Service backend. The virtual network and associated resources typically become free to delete about an hour after purging the Azure AI Foundry account.
337343
>
338344
> The lingering resources do not have a cost associated with them existing in your subscription.
339345
>
340-
> Reexeucte the `az group delete -n $RESOURCE_GROUP -y` command after an hour to complete the cleanup.
346+
> If the resource group didn't fully delete, reexeucte the `az group delete -n $RESOURCE_GROUP -y` command after an hour to complete the cleanup.
341347
342348
## Contributions
343349

infra-as-code/bicep/ai-agent-blob-storage.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ resource agentStorageAccount 'Microsoft.Storage/storageAccounts@2024-01-01' = {
7171
}
7272
}
7373
networkAcls: {
74-
bypass: 'None' // 'AzureServices' // TODO: Can we make this 'None'?
74+
bypass: 'AzureServices' // TODO: Can we make this 'None'?
7575
defaultAction: 'Deny'
7676
virtualNetworkRules: []
7777
ipRules: []

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ resource appServicePlan 'Microsoft.Web/serverfarms@2024-04-01' = {
137137
capacity: 3
138138
}
139139
properties: {
140-
// TODO zoneRedundant: true
140+
zoneRedundant: false // TODO true
141141
reserved: true
142142
}
143143
}

0 commit comments

Comments
 (0)