{"id":23459415,"url":"https://github.com/devkimchi/azdevfying-dotnet-apps-on-aca","last_synced_at":"2026-03-12T14:41:28.171Z","repository":{"id":255608918,"uuid":"849668648","full_name":"devkimchi/azdevfying-dotnet-apps-on-aca","owner":"devkimchi","description":"This provides sample .NET apps to be deployed onto Azure Container Apps through azd CLI","archived":false,"fork":false,"pushed_at":"2024-09-05T02:48:31.000Z","size":533,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-26T21:21:00.580Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devkimchi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-30T02:47:48.000Z","updated_at":"2024-09-05T11:51:16.000Z","dependencies_parsed_at":"2024-09-06T09:44:40.499Z","dependency_job_id":null,"html_url":"https://github.com/devkimchi/azdevfying-dotnet-apps-on-aca","commit_stats":null,"previous_names":["devkimchi/azdevfying-dotnet-apps-on-aca"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devkimchi/azdevfying-dotnet-apps-on-aca","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devkimchi%2Fazdevfying-dotnet-apps-on-aca","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devkimchi%2Fazdevfying-dotnet-apps-on-aca/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devkimchi%2Fazdevfying-dotnet-apps-on-aca/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devkimchi%2Fazdevfying-dotnet-apps-on-aca/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devkimchi","download_url":"https://codeload.github.com/devkimchi/azdevfying-dotnet-apps-on-aca/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devkimchi%2Fazdevfying-dotnet-apps-on-aca/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30428589,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T14:34:45.044Z","status":"ssl_error","status_checked_at":"2026-03-12T14:09:33.793Z","response_time":114,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-24T06:14:29.065Z","updated_at":"2026-03-12T14:41:28.115Z","avatar_url":"https://github.com/devkimchi.png","language":"CSS","readme":"# azdevfying .NET apps on Azure Container Apps\n\nThis provides sample .NET apps to be deployed onto Azure Container Apps through [Azure Developer CLI](https://learn.microsoft.com/azure/developer/azure-developer-cli/install-azd?WT.mc_id=dotnet-149302-juyoo).\n\n## Prerequisites\n\n- [Visual Studio 2022 17.10+](https://visualstudio.microsoft.com/vs/?WT.mc_id=dotnet-149302-juyoo) or [Visual Studio Code](https://code.visualstudio.com/?WT.mc_id=dotnet-149302-juyoo) with [C# Dev Kit](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csdevkit\u0026WT.mc_id=dotnet-149302-juyoo)\n- [Azure Developer CLI](https://learn.microsoft.com/azure/developer/azure-developer-cli/install-azd?WT.mc_id=dotnet-149302-juyoo)\n- [Azure Functions Core Tools](https://learn.microsoft.com/azure/azure-functions/functions-run-local?WT.mc_id=dotnet-149302-juyoo)\n- [Docker Desktop](https://docs.docker.com/desktop/)\n\n## Architecture\n\n![Overall architecture](./images/architecture.png)\n\nThree .NET apps are provided in this repository:\n\n- [Blazor web app](./WebApp/) as a frontend\n- [ASP.NET Core Web API](./ApiApp/) as a backend\n- [Azure Functions](./FuncApp/) as a backend\n\n## Getting Started\n\n\u003e **NOTE**: You can see the complete example including all the Bicep files by switching to the [`azdevfied`](https://github.com/devkimchi/azdevfying-dotnet-apps-on-aca/tree/azdevfied) branch.\n\n1. Login to Azure through Azure Developer CLI.\n\n    ```bash\n    azd auth login\n    ```\n\n1. Run the following command to initialise `azd`. It will ask you to choose options how to initialise. Follow the instructions.\n\n    ```bash\n    azd init\n    ```\n\n   Once initialised, you will have both `.azure` and `infra` directories and both `next-steps.md` and `azure.yaml` files.\n\n   At this stage, the web app doesn't know where the API and Functions apps are. Therefore, you need to update the `main.bicep` file to pass the API and Functions app URLs to the web app.\n\n1. Open `infra/main.bicep` file and update the following section:\n\n    ```bicep\n    module webApp './app/WebApp.bicep' = {\n      name: 'WebApp'\n      params: {\n        ...\n    \n        // Add the following two lines\n        apiEndpointUrl: apiApp.outputs.uri\n        funcEndpointUrl: funcApp.outputs.uri\n      }\n      scope: rg\n    }\n    ```\n\n1. Open `infra/app/WebApp.bicep` file and add the parameters:\n\n    ```bicep\n    ...\n    @secure()\n    param appDefinition object\n    \n    // Add the following two lines\n    param apiEndpointUrl string\n    param funcEndpointUrl string\n    ...\n    ```\n\n1. Update the `env` variable:\n\n    ```bicep\n    // Before\n    var env = map(filter(appSettingsArray, i =\u003e i.?secret == null), i =\u003e {\n      name: i.name\n      value: i.value\n    })\n    \n    // After\n    var env = union(map(filter(appSettingsArray, i =\u003e i.?secret == null), i =\u003e {\n      name: i.name\n      value: i.value\n    }), [\n      {\n        name: 'API_ENDPOINT_URL'\n        value: apiEndpointUrl\n      }\n      {\n        name: 'FUNC_ENDPOINT_URL'\n        value: funcEndpointUrl\n      }\n    ])\n    ```\n\n1. Run the following command to provision and deploy all the apps to Azure Container Apps.\n\n    ```bash\n    azd up\n    ```\n\n   \u003e **NOTE**: Make sure that Docker Desktop should be up and running before entering this command.\n\n1. Once the deployment is completed, you will see the output like below:\n\n    ```bash\n    Deploying services (azd deploy)\n    \n      (✓) Done: Deploying service ApiApp\n      - Endpoint: https://ca-apiapp-{{random-string}}.{{random-string}}.{{location}}.azurecontainerapps.io/\n    \n      (✓) Done: Deploying service FuncApp\n      - Endpoint: https://ca-funcapp-{{random-string}}.{{random-string}}.{{location}}.azurecontainerapps.io/\n    \n      (✓) Done: Deploying service WebApp\n      - Endpoint: https://ca-webapp-{{random-string}}.{{random-string}}.{{location}}.azurecontainerapps.io/\n    ```\n\n1. Click the web app URL above to see the deployed web app, and navigate to the `/weather` page. Then you will see the screen like below:\n\n    ![Web app](./images/webapp.png)\n\n   The weather data is fetched from the ASP.NET Core Web API while the greetings message is fetched from the Azure Functions.\n\n## More Information\n\n- [Azure Container Apps](https://learn.microsoft.com/azure/container-apps/overview?WT.mc_id=dotnet-149302-juyoo)\n- [Deployment options to Azure Container Apps](https://learn.microsoft.com/azure/container-apps/code-to-cloud-options?WT.mc_id=dotnet-149302-juyoo)\n- [Publish .NET apps to ACA via Azure CLI](https://learn.microsoft.com/azure/container-apps/quickstart-code-to-cloud?tabs=bash%2Ccsharp\u0026WT.mc_id=dotnet-149302-juyoo)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevkimchi%2Fazdevfying-dotnet-apps-on-aca","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevkimchi%2Fazdevfying-dotnet-apps-on-aca","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevkimchi%2Fazdevfying-dotnet-apps-on-aca/lists"}