-
Notifications
You must be signed in to change notification settings - Fork 818
Run as a Web App for Containers
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 App Service - Web App: Microsoft Docs reference
- Mount the file share as local storage for the Azure App Service: Microsoft Docs reference
- Deploy the image from the Azure Container Registry to the Azure App Service: Microsoft Docs reference
- 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