Skip to content

Commit aa4a3a6

Browse files
authored
Merge pull request #236 from microsoft/readme-aitemplate
docs: update the readme deployment
2 parents dab3d80 + 886da63 commit aa4a3a6

File tree

2 files changed

+34
-35
lines changed

2 files changed

+34
-35
lines changed

README.md

Lines changed: 29 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ To deploy this solution accelerator, you will need access to an [Azure subscript
5050

5151
Please check the link [Azure Products by Region](https://azure.microsoft.com/en-us/explore/global-infrastructure/products-by-region/?products=all&regions=all) and choose a region where Azure AI Foundry, Azure OpenAI Services, Azure AI Search, Azure AI Content Understanding, Embedding Deployment Capacity and GPT Model Capacity are available. Recommended regions are eastus, eastus2.
5252

53-
When you start the deployment using one of the options below, most parameters will have a default name set already. You can update the following settings:
53+
> When you start the deployment using one of the options below, most parameters will have a default name set already. You can update the following settings:
5454
5555
- Azure region where the resources will be created in
5656

@@ -83,9 +83,9 @@ You can run this solution accelerator virtually by using GitHub Codespaces. The
8383
1. Open the solution accelerator (this may take several minutes):
8484

8585
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/microsoft/Conversation-Knowledge-Mining-Solution-Accelerator)
86-
87-
2. Open a terminal window
88-
3. Continue with the [deploying steps](#deploying)
86+
2. Accept the default values on the create Codespaces page
87+
3. Open a terminal window if it is not already open
88+
4. Continue with the [deploying steps](#deploying)
8989

9090
</details>
9191

@@ -148,7 +148,9 @@ If you're not using one of the above options for opening the project, then you'l
148148

149149
### Deploying
150150

151-
Once you've opened the project in [Codespaces](#github-codespaces), in [Dev Containers](#vs-code-dev-containers), or [locally](#local-environment), you can deploy it to Azure.
151+
Once you've opened the project in [Codespaces](#github-codespaces), in [Dev Containers](#vs-code-dev-containers), or [locally](#local-environment),
152+
153+
you can deploy it to Azure.
152154
153155
### Azure account setup
154156
@@ -157,66 +159,58 @@ Once you've opened the project in [Codespaces](#github-codespaces), in [Dev Cont
157159
* Your Azure account must have `Microsoft.Authorization/roleAssignments/write` permissions, such as [Role Based Access Control Administrator](https://learn.microsoft.com/azure/role-based-access-control/built-in-roles#role-based-access-control-administrator-preview), [User Access Administrator](https://learn.microsoft.com/azure/role-based-access-control/built-in-roles#user-access-administrator), or [Owner](https://learn.microsoft.com/azure/role-based-access-control/built-in-roles#owner).
158160
* Your Azure account also needs `Microsoft.Resources/deployments/write` permissions on the subscription level.
159161
160-
You can view the permissions for your account and subscription by going to Azure portal, clicking 'Subscriptions' under 'Navigation' and then choosing your subscription from the list. If you try to search for your subscription and it does not come up, make sure no filters are selected. After selecting your subscription, select 'Access control (IAM)' and you can see the roles that are assigned to your account for this subscription. If you want to see more information about the roles, you can go to the 'Role assignments' tab and search by your account name and then click the role you want to view more information about.
161-
162-
## Customizing resource names
163-
164-
By default this template will use a default naming convention to prevent naming collisions within Azure.
165-
To override default naming conventions the following can be set.
166-
167-
* `AZURE_ENV_CU_LOCATION` - The name of the Content Understanding Location
168-
* `AZURE_ENV_SECONDARY_LOCATION` - The name of the Secondary Location
169-
* `AZURE_ENV_MODEL_DEPLOYMENT_TYPE` - The name of the Model Deployment Type
170-
* `AZURE_ENV_MODEL_NAME` - The name of the Model Name
171-
* `AZURE_ENV_MODEL_CAPACITY` - The name of the Model Capacity
172-
* `AZURE_ENV_EMBEDDING_MODEL_NAME` - The name of the Embedding Model
173-
* `AZURE_ENV_EMBEDDING_MODEL_CAPACITY` - The name of the Embedding Deployment Capacity
162+
You can view the permissions for your account and subscription by following the steps below:
163+
- Navigate to the [Azure Portal](https://portal.azure.com/) and click on `Subscriptions` under 'Navigation'
164+
- Select the subscription you are using for this accelerator from the list.
165+
- If you try to search for your subscription and it does not come up, make sure no filters are selected.
166+
- Select `Access control (IAM)` and you can see the roles that are assigned to your account for this subscription.
167+
- If you want to see more information about the roles, you can go to the `Role assignments`
168+
tab and search by your account name and then click the role you want to view more information about.
174169
175-
To override any of those resource names, run `azd env set <key> <value>` before running `azd up`.
170+
### [Optional]: Customizing resource names
176171
177-
## Customizing deployments
172+
By default this template will use the environment name as the prefix to prevent naming collisions within Azure. The parameters below show the default values. You only need to run the statements below if you need to change the values.
178173
179-
Note: Environment name, a 3-10 characters alphanumeric value that will be used to prefix resources
180174
181-
To customize the deployments, you can set the following environment variables:
175+
> To override any of the parameters, run `azd env set <key> <value>` before running `azd up`. On the first azd command, it will prompt you for the environment name. Be sure to choose 3-10 charaters alphanumeric unique name.
182176
183-
Change the Content Understanding Location:
177+
Change the Content Understanding Location (allowed values: West US, Sweden Central, Australia East)
184178
185179
```shell
186180
azd env set AZURE_ENV_CU_LOCATION 'West US'
187181
```
188182
189-
Change the Secondary Location:
183+
Change the Secondary Location (example: eastus2, westus2, etc.)
190184
191185
```shell
192186
azd env set AZURE_ENV_SECONDARY_LOCATION eastus2
193187
```
194188
195-
Change the Model Deployment Type:
189+
Change the Model Deployment Type (allowed values: Standard, GlobalStandard)
196190
197191
```shell
198192
azd env set AZURE_ENV_MODEL_DEPLOYMENT_TYPE GlobalStandard
199193
```
200194
201-
Set the Model Name:
195+
Set the Model Name (allowed values: gpt-4o-mini, gpt-4o, gpt-4)
202196
203197
```shell
204198
azd env set AZURE_ENV_MODEL_NAME gpt-4o-mini
205199
```
206200
207-
Change the Model Capacity:
201+
Change the Model Capacity (choose a number based on available GPT model capacity in your subscription)
208202
209203
```shell
210204
azd env set AZURE_ENV_MODEL_CAPACITY 100
211205
```
212206
213-
Change the Embedding Model:
207+
Change the Embedding Model
214208
215209
```shell
216210
azd env set AZURE_ENV_EMBEDDING_MODEL_NAME text-embedding-ada-002
217211
```
218212
219-
Change the Embedding Deployment Capacity:
213+
Change the Embedding Deployment Capacity (choose a number based on available embedding model capacity in your subscription)
220214
221215
```shell
222216
azd env set AZURE_ENV_EMBEDDING_MODEL_CAPACITY 80
@@ -236,11 +230,13 @@ azd env set AZURE_ENV_EMBEDDING_MODEL_CAPACITY 80
236230
azd up
237231
```
238232
239-
It will prompt you to provide an `azd` environment name (like "azureaiapp"), select a subscription from your Azure account, and select a location which has quota for all the resources. Then it will provision the resources in your account and deploy the latest code. If you get an error or timeout with deployment, changing the location can help, as there may be availability constraints for the resources.
233+
3. Provide an `azd` environment name (like "ckmapp")
234+
4. Select a subscription from your Azure account, and select a location which has quota for all the resources.
235+
* Then it will provision the resources in your account and deploy the latest code. If you get an error or timeout with deployment, changing the location can help, as there may be availability constraints for the resources.
240236
241-
3. Open [Azure Portal](https://portal.azure.com/), go to the deployed resource group, find the App Service and get the app URL from Default Domain.
237+
5. Open the [Azure Portal](https://portal.azure.com/), go to the deployed resource group, find the App Service and get the app URL from `Default domain`.
242238
243-
4. You can now proceed to run the [development server](#development-server) to test the app locally, or if you are done trying out the app, you can delete the resources by running `azd down`.
239+
6. You can now proceed to run the [development server](#development-server) to test the app locally, or if you are done trying out the app, you can delete the resources by running `azd down`.
244240
245241
<br/>
246242
<h2>

azure.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
# # yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json
2-
2+
# metadata:
3+
# template: [email protected]
34
environment:
45
name: conversation-knowledge-mining
56
location: eastus
6-
7+
metadata:
8+
9+
710
parameters:
811
solutionPrefix:
912
type: string

0 commit comments

Comments
 (0)