Skip to content
This repository was archived by the owner on Jan 30, 2026. It is now read-only.

Commit adf79d3

Browse files
Dongbos suggestions
1 parent b9a3a8c commit adf79d3

File tree

2 files changed

+12
-22
lines changed

2 files changed

+12
-22
lines changed

docs/development/AzureOAIDeployment/DeployingAzureOAI.md

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -76,41 +76,31 @@ instance! Simply use either Azure CLI or Azure PowerShell to deploy the bicep fi
7676

7777
```sh
7878
az deployment group create --resource-group <resource group name> --template-file ./main.bicep
79+
80+
// Get the endpoint and key of the deployment
81+
az cognitiveservices account show --name <account name> --resource-group <resource group name> | jq -r .properties.endpoint
82+
83+
az cognitiveservices account keys list --name <account name> --resource-group <resource group name> | jq -r .key1
7984
```
8085

8186
#### Using Azure PowerShell
8287

8388
```powershell
8489
New-AzResourceGroupDeployment -ResourceGroupName <resource group name> -TemplateFile ./main.bicep
85-
```
86-
87-
### 3. Configuring the agent to use the deployment
88-
89-
You will need to get the endpoint and key of the deployment you just created. You can do this using the following commands in either Azure CLI or Azure PowerShell.
90-
91-
#### Getting the endpoint
9290
93-
```powershell
91+
// Get the endpoint and key of the deployment
9492
Get-AzCognitiveServicesAccount -ResourceGroupName <resource group name> -Name <account name> | Select-Object -Property Endpoint
95-
```
9693
97-
```sh
98-
az cognitiveservices account show --name <account name> --resource-group <resource group name> | jq -r .properties.endpoint
99-
```
100-
101-
#### Getting the key
102-
103-
```powershell
10494
Get-AzCognitiveServicesAccountKey -ResourceGroupName <resource group name> -Name <account name> | Select-Object -Property Key1
10595
```
10696

107-
```sh
108-
az cognitiveservices account keys list --name <myResourceName> --resource-group <myResourceGroupName> | jq -r .key1
109-
```
97+
### 3. Configuring the agent to use the deployment
11098

111-
Now that you have the endpoint and key of the deployment, you can open up the `openai-gpt` agent and run `/agent config` to edit the json configuration file with all the details of the deployment. The example below shows the default system prompt and the fields that need to be updated.
99+
Now that you have the endpoint and key of the deployment, you can open up the `openai-gpt` agent and
100+
run `/agent config` to edit the json configuration file with all the details of the deployment. The
101+
example below shows the default system prompt and the fields that need to be updated.
112102

113-
```json
103+
```jsonc
114104
{
115105
// Declare GPT instances.
116106
"GPTs": [

docs/development/AzureOAIDeployment/main.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ resource openAIService 'Microsoft.CognitiveServices/accounts@2024-10-01' = {
3939
}
4040
}
4141

42-
resource gpt4oMiniDeployment 'Microsoft.CognitiveServices/accounts/deployments@2024-10-01' = {
42+
resource azopenaideployment 'Microsoft.CognitiveServices/accounts/deployments@2024-10-01' = {
4343
parent: openAIService
4444
name: modeldeploymentname
4545
properties: {

0 commit comments

Comments
 (0)