{"id":20381690,"url":"https://github.com/briandenicola/azure-developer-cli-demo","last_synced_at":"2026-03-19T15:34:20.567Z","repository":{"id":45463989,"uuid":"513610793","full_name":"briandenicola/azure-developer-cli-demo","owner":"briandenicola","description":"Using the Azure Developer Cli and DevContainers with Codespaces ","archived":false,"fork":false,"pushed_at":"2023-01-25T00:20:54.000Z","size":242,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-15T07:39:07.320Z","etag":null,"topics":["azd","bicep","containerapps","devcontainer"],"latest_commit_sha":null,"homepage":"","language":"Bicep","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/briandenicola.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}},"created_at":"2022-07-13T17:22:14.000Z","updated_at":"2023-01-18T15:01:27.000Z","dependencies_parsed_at":"2023-02-14T03:02:56.158Z","dependency_job_id":null,"html_url":"https://github.com/briandenicola/azure-developer-cli-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/briandenicola%2Fazure-developer-cli-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/briandenicola%2Fazure-developer-cli-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/briandenicola%2Fazure-developer-cli-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/briandenicola%2Fazure-developer-cli-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/briandenicola","download_url":"https://codeload.github.com/briandenicola/azure-developer-cli-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241933716,"owners_count":20044769,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["azd","bicep","containerapps","devcontainer"],"created_at":"2024-11-15T02:14:56.533Z","updated_at":"2025-10-23T15:11:38.340Z","avatar_url":"https://github.com/briandenicola.png","language":"Bicep","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Overview\nThis repo is a simple example to show how to use the [Azure Developer Cli](https://docs.microsoft.com/en-us/azure/developer/azure-developer-cli/reference) for inner loop development in Azure.  \nIt leverages Github Codespaces as a hosted developer environment. \n\n## Github Action\nThe repo also has two Github Action workflows that would be used to promote code into upper environments after changes are merged into the main branch. \n* Create Azure Container Apps Environment \n* Update a deployment to Azure Container Apps\n\n### Required Action Secrets\n| Variable | Usage |\n--------------- | --------------- \n| SIMPLE_AZURE_CREDENTIALS | [Creds to access Azure](https://docs.microsoft.com/en-us/azure/developer/github/connect-from-azure?tabs=azure-portal%2Cwindows)| \n| CONTAINER_APP_RG | Resource Group Name for the Upper Environment  | \n| CONTAINER_APP_NAME | Container App Environment Name for the Upper Environment | \n| DOCKER_REPO | Container Registry for Upper Environment |\n| SIMPLE_REGISTRY_USERNAME | User name for Container Registry | \n| SIMPLE_REGISTRY_PASSWORD | User password for Container Registry | \n\n## Prerequisite \n* Azure Subscrption\n* Github Codespaces\n\n## Deployed Azure Resources \n* Azure Container Registry \n* Azure Container Environment \n* Azure Container App\n* Azure PostgreSQL\n\n# Deploy Environment\n``` bash\n    git checkout -b branch/feature1\n    azd login --tenant-id $ARM_TENANT_ID --client-id $ARM_CLIENT_ID --client-secret $ARM_CLIENT_SECRET\n    azd init \n        - Environment Name: dev\n        - Azure Location: (US) Southcentral US\n        - Azure Subscription: \u003cENTER\u003e \n    azd up\n    ./scripts/update-ui.sh\n```\n\n# Validate\n```bash\n    ./scripts/validate.sh\n```\n\n# Update Deployment\n```C#\n    //Update line 9 from \n    app.MapGet( \"/\", () =\u003e  $\"Hello World! The time now is {DateTime.Now}\" );\n    //To \n    app.MapGet( \"/\", () =\u003e  $\"Hello World, Updated! The time now is {DateTime.Now}\" );\n```\n\n## Redeploy and Validate \n``` bash\n    azd deploy \n    ./scripts/validate.sh\n```\n\n## Pull Request\n* At this point, a developer would commit the code upstream to their branch and create a pull request. After approved then the _Update a deployment to Azure Container Apps_ Github Action workflow will deploy the change to the upper environments. \n\n# Clean Up\n``` bash\n    azd down\n```\n\n# Backlog\n- [X] Create script to build and push docker image\n- [X] Create script to upate Container App with latest image\n- [X] Migrate to Dapr/PostgreSQL from InMemory Database","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbriandenicola%2Fazure-developer-cli-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbriandenicola%2Fazure-developer-cli-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbriandenicola%2Fazure-developer-cli-demo/lists"}