https://github.com/asizikov/aci-echo
Sample dockerized .NET6 API with Azure Container Instances as a deployment target.
https://github.com/asizikov/aci-echo
azure azure-container-instances docker dotnet-core dotnet6 web-api-core
Last synced: about 2 months ago
JSON representation
Sample dockerized .NET6 API with Azure Container Instances as a deployment target.
- Host: GitHub
- URL: https://github.com/asizikov/aci-echo
- Owner: asizikov
- License: mit
- Created: 2020-07-29T13:51:29.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-09-01T20:39:02.000Z (over 3 years ago)
- Last Synced: 2025-03-13T22:41:42.684Z (about 1 year ago)
- Topics: azure, azure-container-instances, docker, dotnet-core, dotnet6, web-api-core
- Language: C#
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README

Build and run docker container:
`docker build -t local . && docker run -p 8081:80 --name echo-api local `
Verify that it's up and running:
```bash
curl -GET http://localhost:8081/echo\?message\=Hi
{"message":"Hi"}
```
Make sure you have Azure CLI installed:
```bash
az --version
```
Create a resource group
```bash
az group create \
--name rg-aci-echo \
--location westeurope
```
then create ACI resource
```bash
az container create --resource-group rg-aci-echo \
--location westeurope \
--name aci-echo-api \
--image asizikov/echo-api:latest \
--cpu 1 --memory 0.5 \
--dns-name-label echo-api \
--ip-address Public
```
verify that it's up and running:
```bash
curl -GET $(az container show -g rg-aci-echo -n aci-echo-api --query "ipAddress.fqdn" -o tsv)/echo\?message\=Hi
```