|
| 1 | +# Deploying Kernel Memory infrastructure to Azure using AZD (Azure Developer CLI) |
| 2 | + |
| 3 | +To deploy the Kernel Memory infrastructure to Azure, you can also use the azd up command from |
| 4 | +[Azure Developer CLI](https://learn.microsoft.com/azure/developer/azure-developer-cli/overview). |
| 5 | +This will create all the necessary resources. |
| 6 | + |
| 7 | +## Deployment |
| 8 | + |
| 9 | +The deployment process may take up to 20 minutes. |
| 10 | + |
| 11 | +First you will need to install AZD, you can find how to do this on different platforms on this |
| 12 | +[Install or update the Azure Developer CLI](https://learn.microsoft.com/azure/developer/azure-developer-cli/install-azd). |
| 13 | +For example, on Windows you can use this command: |
| 14 | + |
| 15 | + winget install microsoft.azd |
| 16 | + |
| 17 | +After AZD installation, you'll need to log in with your Azure Account and then you can start the deployment. |
| 18 | + |
| 19 | +To authenticate, execute: |
| 20 | + |
| 21 | + azd auth login |
| 22 | + |
| 23 | +It'll open Azure's login screen. Complete your authentication process. Remember that depending on your Tenant configuration |
| 24 | +Two-Factor Authentication may be required. |
| 25 | + |
| 26 | +### Before starting the deployment for the first time |
| 27 | + |
| 28 | +Kernel Memory deployment bicep uses Resource Group Scoped Deployment feature, and it has to be enabled using this command: |
| 29 | + |
| 30 | + azd config set alpha.resourceGroupDeployments on |
| 31 | + |
| 32 | +### Deployment |
| 33 | + |
| 34 | +To start the actual deployment of Kernel Memory, navigate to the root of your local clone of the Kernel Memory repository |
| 35 | +and execute: |
| 36 | + |
| 37 | + azd up |
| 38 | + |
| 39 | +After hitting Enter, you will need to fill parameters. |
| 40 | + |
| 41 | +> You can find more info about parameters here: [README.md](README.md). |
| 42 | +
|
| 43 | +The deployment takes about 20 minutes to complete. |
| 44 | + |
| 45 | +### Clean Up Resources |
| 46 | + |
| 47 | +To clean up resources and uninstall Kernel Memory from your Subscription, execute this command: |
| 48 | + |
| 49 | + azd down |
| 50 | + |
| 51 | +You'll be asked to confirm the deletion of the resource group, and after that you'll be asked to confirm deletion of |
| 52 | +your Azure AI Services. After that, all resources will be deleted. |
| 53 | + |
| 54 | +## AZD Resources |
| 55 | + |
| 56 | +> You can find more information about AZD on these links: |
| 57 | +> - [Installation guide](https://learn.microsoft.com/azure/developer/azure-developer-cli/install-azd) for Azure Developer CLI. |
| 58 | +> - [Quickstart:](https://learn.microsoft.com/azure/developer/azure-developer-cli/get-started) Deploy an Azure Developer CLI template. |
0 commit comments