You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-30Lines changed: 19 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ The sample data used in this repository is synthetic and generated using Azure O
61
61
62
62
This diagram double-clicks into the agentic framework for the code conversion process. The conversion uses an agentic approach with each agent playing a specialized role in the process. The system gets a list of SQL files which are targeted for conversion.
63
63
64
-
**Step 1:** The system loops through the list of SQL files, converting each file, starting by passing the SQL to the Migrator agent. This agent will create several candidate SQL files that should be equivalent. It does this to ensure that the system acknowledges that most of these queries could be converted in a number of different ways. *Note that the processing time can vary depending on OpenAI and cloud services.*
64
+
**Step 1:** The system loops through the list of SQL files, converting each file, starting by passing the SQL to the Migrator agent. This agent will create several candidate SQL files that should be equivalent. It does this to ensure that the system acknowledges that most of these queries could be converted in a number of different ways. *Note that the processing time can vary depending on Azure OpenAI service and cloud services.*
65
65
66
66
**Step 2:** The Picker agent then examines these various possibilities and picks the one it believes is best using criteria such as simplicity, clarity of syntax, etc.
67
67
@@ -75,28 +75,24 @@ This diagram double-clicks into the agentic framework for the code conversion pr
75
75
QUICK DEPLOY
76
76
</h2>
77
77
78
-
79
-
|[](https://codespaces.new/microsoft/Modernize-your-Code-Solution-Accelerator)|[](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/Modernize-your-Code-Solution-Accelerator)|[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2FModernize-your-code-solution-accelerator%2Frefs%2Fheads%2Fmain%2Finfra%2Fmain.json)|
80
-
|---|---|---|
81
-
82
78
### **Prerequisites**
83
79
84
80
To deploy this solution accelerator, ensure you have access to an [Azure subscription](https://azure.microsoft.com/free/) with the necessary permissions to create **resource groups and resources**. Follow the steps in [Azure Account Set Up](./docs/AzureAccountSetUp.md)
85
81
86
82
Check the [Azure Products by Region](https://azure.microsoft.com/en-us/explore/global-infrastructure/products-by-region/?products=all®ions=all) page and select a **region** where the following services are available:
87
83
88
84
- Azure AI Foundry
89
-
- Azure OpenAI Service
90
-
- Embedding Deployment Capacity
85
+
- Azure OpenAI Service
91
86
- GPT Model Capacity
92
87
93
88
Here are some example regions where the services are available: East US, East US2, Japan East, UK South, Sweden Central.
94
89
95
-
This accelerator can be deployed with or without authentication.
* To install with authentication requires that the installer have the rights to create and register an application identity in their Azure environment.
98
-
After installation is complete, follow the directions in the [App Authentication](./docs/AddAuthentication.md) document to enable authentication.
99
-
* Note: If you install with authentication, all processing history and current processing will be performed for your specific user. If you deploy without authentication, all batch history from the tool will be visible to all users.
92
+
➡️ To ensure sufficient quota is available in your subscription, please follow **[Quota check instructions guide](./docs/quota_check.md)** before you deploy the solution.
93
+
94
+
|[](https://codespaces.new/microsoft/Modernize-your-Code-Solution-Accelerator)|[](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/Modernize-your-Code-Solution-Accelerator)|
95
+
|---|---|
100
96
101
97
### **Configurable Deployment Settings**
102
98
@@ -106,16 +102,20 @@ When you start the deployment, most parameters will have **default values**, but
106
102
|------------|----------------| ------------|
107
103
|**Azure Region**| The region where resources will be created. | East US|
108
104
|**Resource Prefix**| Prefix for all resources created by this template. This prefix will be used to create unique names for all resources. The prefix must be unique within the resource group. | None |
109
-
|**Ai Location**| Location for all Ai services resources. This location can be different from the resource group location | None |
110
-
|**Capacity**| Configure capacity for **GPT models**. | 5k |
105
+
|**AI Location**| Location for all AI services resources. This location can be different from the resource group location | None |
106
+
|**Capacity**| Configure capacity for **gpt-4o**. | 5k |
107
+
108
+
This accelerator can be configured to use authentication.
109
+
110
+
* To use authentication the installer must have the rights to create and register an application identity in their Azure environment.
111
+
After installation is complete, follow the directions in the [App Authentication](./docs/AddAuthentication.md) document to enable authentication.
112
+
* Note: If you enable authentication, all processing history and current processing will be performed for your specific user. Without authentication, all batch history from the tool will be visible to all users.
111
113
112
114
### [Optional] Quota Recommendations
113
115
By default, the **GPT model capacity** in deployment is set to **5k tokens**.
114
-
> **We recommend increasing the capacity to 30k tokens for optimal performance.**
115
-
116
-
To adjust quota settings, follow these [steps](./docs/AzureGPTQuotaSettings.md)
116
+
> **We recommend increasing the capacity to 200k tokens for optimal performance.**
117
117
118
-
**⚠️ Warning:****Insufficient quota can cause application errors.** Please ensure you have the recommended capacity or request for additional capacity before deploying this solution.
118
+
To adjust quota settings, follow these [steps](./docs/AzureGPTQuotaSettings.md)
119
119
120
120
### Deployment Options
121
121
Pick from the options below to see step-by-step instructions for: GitHub Codespaces, VS Code Dev Containers, Local Environments, and Bicep deployments.
@@ -178,16 +178,6 @@ If you're not using one of the above options for opening the project, then you'l
178
178
179
179
4. Continue with the [deploying steps](#deploying).
180
180
181
-
</details>
182
-
<details>
183
-
<summary><b>Deploy with Bicep/ARM template</b></summary>
184
-
185
-
### Bicep
186
-
187
-
Click the following deployment button to create the required resources forthis accelerator directlyin your Azure Subscription.
188
-
189
-
[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fmarktayl1%2Ftestdeploy%2Frefs%2Fheads%2Fmain%2FCodeGenDeploy.json)
190
-
191
181
</details>
192
182
193
183
### Deploying
@@ -246,8 +236,7 @@ Responsible AI Transparency FAQ
246
236
247
237
Please refer to [Transparency FAQ](./TRANSPARENCY_FAQ.md) for responsible AI transparency details of this solution accelerator.
@@ -262,7 +251,7 @@ You can try the [Azure pricing calculator](https://azure.microsoft.com/en-us/pri
262
251
* Azure AI Foundry: Free tier. [Pricing](https://azure.microsoft.com/pricing/details/ai-studio/)
263
252
* Azure Storage Account: Standard tier, LRS. Pricing is based on storage and operations. [Pricing](https://azure.microsoft.com/pricing/details/storage/blobs/)
264
253
* Azure Key Vault: Standard tier. Pricing is based on the number of operations. [Pricing](https://azure.microsoft.com/pricing/details/key-vault/)
265
-
* Azure AI Services: S0 tier, defaults to gpt-4o-mini and text-embedding-ada-002 models. Pricing is based on token count. [Pricing](https://azure.microsoft.com/pricing/details/cognitive-services/)
254
+
* Azure AI Services: S0 tier, defaults to gpt-4o-mini. Pricing is based on token count. [Pricing](https://azure.microsoft.com/pricing/details/cognitive-services/)
266
255
* Azure Container App: Consumption tier with 0.5 CPU, 1GiB memory/storage. Pricing is based on resource allocation, and each month allows for a certain amount of free usage. [Pricing](https://azure.microsoft.com/pricing/details/container-apps/)
1. Sign up for a [free Azure account](https://azure.microsoft.com/free/) and create an Azure Subscription.
4
+
2. Check that you have the necessary permissions:
5
+
* 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).
6
+
* Your Azure account also needs `Microsoft.Resources/deployments/write` permissions on the subscription level.
7
+
8
+
You can view the permissions for your account and subscription by following the steps below:
9
+
- Navigate to the [Azure Portal](https://portal.azure.com/) and click on `Subscriptions` under 'Navigation'
10
+
- Select the subscription you are using for this accelerator from the list.
11
+
- If you try to search for your subscription and it does not come up, make sure no filters are selected.
12
+
- Select `Access control (IAM)` and you can see the roles that are assigned to your account for this subscription.
13
+
- If you want to see more information about the roles, you can go to the `Role assignments`
14
+
tab and search by your account name and then click the role you want to view more information about.
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.
2
+
3
+
4
+
> 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-20 charaters alphanumeric unique name.
5
+
6
+
Change the Model Deployment Type (allowed values: Standard, GlobalStandard)
7
+
8
+
```shell
9
+
azd env set AZURE_ENV_MODEL_DEPLOYMENT_TYPE Standard
10
+
```
11
+
12
+
Set the Model Name (allowed values: gpt-4)
13
+
14
+
```shell
15
+
azd env set AZURE_ENV_MODEL_NAME gpt-4
16
+
```
17
+
18
+
Change the Model Capacity (choose a number based on available GPT model capacity in your subscription)
0 commit comments