{"id":17981817,"url":"https://github.com/ljtill/bicep-scaffold","last_synced_at":"2025-03-25T18:31:30.585Z","repository":{"id":114502389,"uuid":"354528095","full_name":"ljtill/bicep-scaffold","owner":"ljtill","description":"Ready to use Bicep templates for building, validating, and deploying Azure resources with GitHub Actions","archived":false,"fork":false,"pushed_at":"2025-02-19T17:17:11.000Z","size":68,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-20T17:23:05.804Z","etag":null,"topics":["azure","bicep","github","template"],"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/ljtill.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":"2021-04-04T11:38:20.000Z","updated_at":"2025-02-19T17:17:16.000Z","dependencies_parsed_at":"2023-05-17T09:45:21.957Z","dependency_job_id":"b4bf4fd2-3a65-4847-a2b0-7f13b9b855be","html_url":"https://github.com/ljtill/bicep-scaffold","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljtill%2Fbicep-scaffold","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljtill%2Fbicep-scaffold/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljtill%2Fbicep-scaffold/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ljtill%2Fbicep-scaffold/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ljtill","download_url":"https://codeload.github.com/ljtill/bicep-scaffold/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245520001,"owners_count":20628813,"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":["azure","bicep","github","template"],"created_at":"2024-10-29T18:12:13.237Z","updated_at":"2025-03-25T18:31:25.574Z","avatar_url":"https://github.com/ljtill.png","language":"Bicep","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scaffold\n\nUse this template to quickly set up a new repository with pre-configured automation for deploying Azure services.\n\nThe workflow consists of three main stages: build, test, and deploy. These stages are flexible and can be adjusted to suit various deployment scenarios.\n\nIn the `src/` directory, you'll find the following components:\n\n- `main.bicep`: This Bicep file orchestrates the deployment of resource groups and resources.\n- `functions/`: This directory contains a set of reusable functions, such as resource name generation.\n- `modules/`:  In this directory, you'll find reusable scope and resource modules.\n- `parameters/`: This directory holds parameter files for environment-specific configurations.\n- `types/`: Contains type definitions for both templates and parameter files.\n\n---\n\n## Getting Started\n\n### Deployment\n\n#### Azure CLI\n\n```bash\naz stack sub create \\\n    --name 'Scaffold' \\\n    --template-file './src/main.bicep' \\\n    --parameters './src/parameters/main.bicepparam' \\\n    --action-on-unmanage 'deleteAll' \\\n    --deny-settings-mode 'denyWriteAndDelete' \\\n    --yes\n\n```\n\n```bash\naz stack sub delete \\\n    --name 'Scaffold' \\\n    --delete-all \\\n    --yes\n```\n\n#### GitHub Actions\n\nEntra ID - Application\n\n- Browse to the Entra admin center\n- Navigate to the 'Identity', 'Applications', 'App registrations' blade\n- Select 'New registration' and provide a Name for the application\n- Select the newly created application and select 'Certificates \u0026 secrets'\n- Select 'Federated credentials' and 'Add credential'\n- Choose 'GitHub Actions deploying Azure resources'\n- Provide the 'Organization (username)' and Repository for the credential\n- Select 'Entity type' - Branch and provide 'main'\n- Repeat process for 'Entity type' - Pull Request\n\nAzure Resource Manager - Role Assignment\n\n- Navigate to the Subscription in the Azure portal\n- Select 'Access control (IAM)' and 'Add' - 'Add role assignment'\n- Select Role - Contributor and select 'Members'\n- Provide the 'Name' of the application from the previous steps\n\nGitHub Actions - Secrets\n\n- Navigate to 'Settings' on the repository\n- Select 'Secrets' and 'Actions' link\n- Select 'New repository secret' and create secrets for the following:\n  - AZURE_TENANT_ID\n  - AZURE_SUBSCRIPTION_ID\n  - AZURE_CLIENT_ID\n\n---\n\n### Links\n\n- [Bicep](https://github.com/Azure/bicep)\n- [Templates](https://docs.microsoft.com/azure/templates)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fljtill%2Fbicep-scaffold","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fljtill%2Fbicep-scaffold","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fljtill%2Fbicep-scaffold/lists"}