Skip to content

Commit 38a380c

Browse files
committed
Merge branch 'main' of https://github.com/microsoft/Modernize-your-code-solution-accelerator into updateContinerName
2 parents fb873c8 + 6a5cf17 commit 38a380c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+1921
-1297
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<!--
2+
IF SUFFICIENT INFORMATION IS NOT PROVIDED VIA THE FOLLOWING TEMPLATE THE ISSUE MIGHT BE CLOSED WITHOUT FURTHER CONSIDERATION OR INVESTIGATION
3+
-->
4+
> Please provide us with the following information:
5+
> ---------------------------------------------------------------
6+
7+
### This issue is for a: (mark with an `x`)
8+
```
9+
- [ ] bug report -> please search issues before submitting
10+
- [ ] feature request
11+
- [ ] documentation issue or request
12+
- [ ] regression (a behavior that used to work and stopped in a new release)
13+
```
14+
15+
### Minimal steps to reproduce
16+
>
17+
18+
### Any log messages given by the failure
19+
>
20+
21+
### Expected/desired behavior
22+
>
23+
24+
### OS and Version?
25+
> Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)
26+
27+
### azd version?
28+
> run `azd version` and copy paste here.
29+
30+
### Versions
31+
>
32+
33+
### Mention any other details that might be useful
34+
35+
> ---------------------------------------------------------------
36+
> Thanks! We'll be in touch soon.

README.md

Lines changed: 19 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ The sample data used in this repository is synthetic and generated using Azure O
6161

6262
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. 
6363

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.*
6565

6666
**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.
6767

@@ -75,28 +75,24 @@ This diagram double-clicks into the agentic framework for the code conversion pr
7575
QUICK DEPLOY
7676
</h2>
7777

78-
79-
| [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/microsoft/Modernize-your-Code-Solution-Accelerator) | [![Open in Dev Containers](https://img.shields.io/static/v1?style=for-the-badge&label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/Modernize-your-Code-Solution-Accelerator) | [![Deploy to Azure](https://aka.ms/deploytoazurebutton)](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-
8278
### **Prerequisites**
8379

8480
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)
8581

8682
Check the [Azure Products by Region](https://azure.microsoft.com/en-us/explore/global-infrastructure/products-by-region/?products=all&regions=all) page and select a **region** where the following services are available:
8783

8884
- Azure AI Foundry
89-
- Azure OpenAI Service
90-
- Embedding Deployment Capacity
85+
- Azure OpenAI Service
9186
- GPT Model Capacity
9287

9388
Here are some example regions where the services are available: East US, East US2, Japan East, UK South, Sweden Central.
9489

95-
This accelerator can be deployed with or without authentication.
90+
### ⚠️ Important: Check Azure OpenAI Quota Availability
9691

97-
* 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+
| [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/microsoft/Modernize-your-Code-Solution-Accelerator) | [![Open in Dev Containers](https://img.shields.io/static/v1?style=for-the-badge&label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/Modernize-your-Code-Solution-Accelerator) |
95+
|---|---|
10096

10197
### **Configurable Deployment Settings**
10298

@@ -106,16 +102,20 @@ When you start the deployment, most parameters will have **default values**, but
106102
|------------|----------------| ------------|
107103
| **Azure Region** | The region where resources will be created. | East US|
108104
| **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.
111113

112114
### [Optional] Quota Recommendations
113115
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.**
117117
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)
119119

120120
### Deployment Options
121121
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
178178

179179
4. Continue with the [deploying steps](#deploying).
180180

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 for this accelerator directly in your Azure Subscription.
188-
189-
[![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fmarktayl1%2Ftestdeploy%2Frefs%2Fheads%2Fmain%2FCodeGenDeploy.json)
190-
191181
</details>
192182

193183
### Deploying
@@ -246,8 +236,7 @@ Responsible AI Transparency FAQ
246236
247237
Please refer to [Transparency FAQ](./TRANSPARENCY_FAQ.md) for responsible AI transparency details of this solution accelerator.
248238
249-
<h2><img src="./docs/images/read_me/supportingDocuments.png" width="64" style="max-width: 100%;">
250-
</br>
239+
<h2>
251240
Supporting Documentation
252241
</h2>
253242
@@ -262,7 +251,7 @@ You can try the [Azure pricing calculator](https://azure.microsoft.com/en-us/pri
262251
* Azure AI Foundry: Free tier. [Pricing](https://azure.microsoft.com/pricing/details/ai-studio/)
263252
* Azure Storage Account: Standard tier, LRS. Pricing is based on storage and operations. [Pricing](https://azure.microsoft.com/pricing/details/storage/blobs/)
264253
* 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/)
266255
* 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/)
267256
* Azure Container Registry: Basic tier. [Pricing](https://azure.microsoft.com/pricing/details/container-registry/)
268257
* Log analytics: Pay-as-you-go tier. Costs based on data ingested. [Pricing](https://azure.microsoft.com/pricing/details/monitor/)

docs/AzureAccountSetUp.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
## Azure account setup
2+
3+
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.

docs/AzureGPTQuotaSettings.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## How to Check & Update Quota
2+
3+
1. **Navigate** to the [Azure AI Foundry portal](https://ai.azure.com/).
4+
2. **Select** the AI Project associated with this accelerator.
5+
3. **Go to** the `Management Center` from the bottom-left navigation menu.
6+
4. Select `Quota`
7+
- Click on the `GlobalStandard` dropdown.
8+
- Select the required **GPT model** (`GPT-4, GPT-4o`).
9+
- Choose the **region** where the deployment is hosted.
10+
5. Request More Quota or delete any unused model deployments as needed.

docs/CustomizingAzdParameters.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
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)
19+
20+
```shell
21+
azd env set AZURE_ENV_MODEL_CAPACITY 30
22+
```
23+

docs/DeleteResourceGroup.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Deleting Resources After a Failed Deployment in Azure Portal
2+
3+
If your deployment fails and you need to clean up the resources manually, follow these steps in the Azure Portal.
4+
5+
---
6+
7+
## **1. Navigate to the Azure Portal**
8+
1. Open [Azure Portal](https://portal.azure.com/).
9+
2. Sign in with your Azure account.
10+
11+
---
12+
13+
## **2. Find the Resource Group**
14+
1. In the search bar at the top, type **"Resource groups"** and select it.
15+
2. Locate the **resource group** associated with the failed deployment.
16+
17+
![Resource Groups](images/delete_resource/resourcegroup.png)
18+
19+
![Resource Groups](images/delete_resource/resource-groups.png)
20+
21+
---
22+
23+
## **3. Delete the Resource Group**
24+
1. Click on the **resource group name** to open it.
25+
2. Click the **Delete resource group** button at the top.
26+
27+
![Delete Resource Group](images/delete_resource/DeleteRG.png)
28+
29+
3. Type the resource group name in the confirmation box and click **Delete**.
30+
31+
📌 **Note:** Deleting a resource group will remove all resources inside it.
32+
33+
---
34+
35+
## **4. Delete Individual Resources (If Needed)**
36+
If you don’t want to delete the entire resource group, follow these steps:
37+
38+
1. Open **Azure Portal** and go to the **Resource groups** section.
39+
2. Click on the specific **resource group**.
40+
3. Select the **resource** you want to delete (e.g., App Service, Storage Account).
41+
4. Click **Delete** at the top.
42+
43+
![Delete Individual Resource](images/delete_resource/deleteservices.png)
44+
45+
---
46+
47+
## **5. Verify Deletion**
48+
- After a few minutes, refresh the **Resource groups** page.
49+
- Ensure the deleted resource or group no longer appears.
50+
51+
📌 **Tip:** If a resource fails to delete, check if it's **locked** under the **Locks** section and remove the lock.

docs/EXAMPLE-CustomizingAzdParameters.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ Change the Content Understanding Location (allowed values: Sweden Central, Austr
1111
azd env set AZURE_ENV_CU_LOCATION 'swedencentral'
1212
```
1313

14-
Change the Secondary Location (example: eastus2, westus2, etc.)
15-
16-
```shell
17-
azd env set AZURE_ENV_SECONDARY_LOCATION eastus2
18-
```
19-
2014
Change the Model Deployment Type (allowed values: Standard, GlobalStandard)
2115

2216
```shell
@@ -34,15 +28,3 @@ Change the Model Capacity (choose a number based on available GPT model capacity
3428
```shell
3529
azd env set AZURE_ENV_MODEL_CAPACITY 30
3630
```
37-
38-
Change the Embedding Model
39-
40-
```shell
41-
azd env set AZURE_ENV_EMBEDDING_MODEL_NAME text-embedding-ada-002
42-
```
43-
44-
Change the Embedding Deployment Capacity (choose a number based on available embedding model capacity in your subscription)
45-
46-
```shell
47-
azd env set AZURE_ENV_EMBEDDING_MODEL_CAPACITY 80
48-
```
-5.5 KB
Loading
14.4 KB
Loading
-2.24 KB
Loading

0 commit comments

Comments
 (0)