-
Notifications
You must be signed in to change notification settings - Fork 767
Run as an Azure Container App
The Azure Naming Tool requires persistent storage for the configuration files when run as a container. The following processes will explain how to create this volume for your Azure App Service Container. All configuration JSON files will be stored in the volume to ensure the configuration is persisted.
NOTE:
For many of the steps, a sample process is provided, however, there are many ways to accomplish each step.
- Scroll up to the top, left corner of this page.
- Click on the AzureNamingTool link to open the root of this repository.
- In the right menu, select the desired Release.
NOTE:
It is recommended to use the Latest Stable Release.
- Under Assets, select AzureNamingTool.zip.
- Open your Downloads folder using File Explorer.
- Extract the contents of the ZIP archive.
NOTE:
Validate the project files extracted successfully and match the contents in the GitHub repository.
- Open a Command Prompt in the extracted folder
- Run the following Docker command to build the image:
docker build -t azurenamingtool .
NOTE:
Ensure the '.' is included in the command
- Create an Azure Container Registry: Microsoft Docs reference
- Build and publish your image to the Azure Container Registry: Microsoft Docs reference
- Create an Azure Files file share for persistent storage: Microsoft Docs reference
- Create an Azure Container App: Quickstart: Deploy an existing container image with the Azure CLI
NOTE:
It is possible to deploy a container app via the portal, however, setting the volume for persistent storage is much easier using the CLI.
- Configure the Azure Container App to use an Azure Files file share for the volume: Use storage mounts in Azure Container Apps
- Access the site using your Azure App Service URL.
NOTE:
It is recommended that you enable authentication on your Container App to prevent unauthorized access. Authentication and authorization in Azure Container Apps