27 lines
1.3 KiB
Markdown
27 lines
1.3 KiB
Markdown
# Azure Image Chooser
|
|
|
|
Azure Image Chooser is a [Streamlit](https://streamlit.io) application that allows users to select Azure VM images from the Azure Marketplace.
|
|
|
|
It is in its preliminary version and is subject to development and change. It is provided here for you convenience and may not include all features or functionality of the final product.
|
|
|
|
Azure Image Chooser is written in Python and requires Python interpreter. At the time of writing this, Python 3.13 is the latest. Execute the following commands to run the app:
|
|
|
|
```shell
|
|
python3 -m venv .venv
|
|
.venv/bin/python -m pip install pip --upgrade
|
|
.venv/bin/pip install streamlit azure-identity azure-mgmt-compute
|
|
.venv/bin/streamlit run image-chooser.py
|
|
```
|
|
|
|
You have to be authenticated in Azure CLI. The app will block terminal and start a web server. Follow the instructions in the terminal to access the app.
|
|
|
|
## Add Certificate Binding
|
|
|
|
```shell
|
|
# Find the certificate name
|
|
CERTIFICATE_LOWERCASE_NAME=$(az containerapp env certificate list -g $RESOURCE_GROUP -n $ENVIRONMENT --query '[].name' -o tsv)
|
|
|
|
# Bind the certificate to the container app
|
|
az containerapp hostname bind --hostname $DOMAIN_NAME -g $RESOURCE_GROUP -n $CONTAINER_APP --environment $ENVIRONMENT --certificate $CERTIFICATE_LOWERCASE_NAME --validation-method CNAME
|
|
```
|