This is a PoC about automating apps deployment on production ready environment provided by Azure Landing Zones.
In this example we are going to deploy the Azure Open AI Java reference template on top of the App Service LZA using the Azure Developer CLI
- Clone this repo.
git clone https://github.com/dantelmomsft/chat-with-your-data-java-lza-app-accelerator.git
- Run
cd chat-with-your-data-java-lza-app-accelerator/infra/app-service
- Run
azd auth login
to authenticate with your Azure subscription. - Run
azd provision
to provision the infrastructure. Provide an env name and the deployment region. So far it has been tested with France central. This will take several minutes and will:- Download the app service lza code in the folder
infra/app-service/bicep/lza-libs
. - Automatically run the app service lza code.
- Automatically run the app bicep source code in the folder
chat-with-your-data-java-lza-app-accelerator\infra\app-service\bicep\modules
. This will create the Azure supporting services (Azure AI Search, Azure Document Intelligence, Azure Storage) required by the app on top of the App Service LZA infrastructure. - Automatically create
.azure
folder with azd env configuration. you should see a folder like this:chat-with-your-data-java-lza-app-accelerator\infra\app-service\.azure
- Download the app service lza code in the folder
- Connect to the jumpbox, open a command prompt and run
git clone https://github.com/dantelmomsft/chat-with-your-data-java-lza-app-accelerator.git
- Run
cd chat-with-your-data-java-lza-app-accelerator
- To download the the chat-with-your-data-java source code run:
- Windows Power Shell -
.\scripts\download-app-source.ps1 -branch main
- Linux/Windows WSL -
./scripts/download-app-source.sh --branch main
.
- Windows Power Shell -
- Run
cd chat-with-your-data-java-lza-app-accelerator/infra/app-service
and copy here thechat-with-your-data-java-lza-app-accelerator\infra\app-service\.azure
local folder that has been created on your laptop at the end of Deploy Infrastructure phase. - Run
azd auth login
- Run
azd restore
. This is required for this code sample to ingest documents into the Azure AI search index. It will take a couple of minutes. - run
azd deploy
. This will build and deploy the java app. - From your local browser connect to the azure front door endpoint hostname.
- The jump box installation doesn't properly configure azd and maven. To fix that before running the
azd deploy
command, be sure to- Run the
D:\azd\azd-windows-amd64.msi
installer - Add to the PATH env variable the maven bin folder:
C:\Program Files\apache-maven-3.9.5\bin
- Run the