You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to request support for a GitHub provider within Bicep to enable Infrastructure as Code (IaC) deployments for GitHub resources directly.
This integration would allow developers to provision and manage GitHub resources (such as repositories, organizations, and teams) alongside their Azure infrastructure using the same Bicep language.
Sample Bicep Implementation - creating an GitHub repo, corresponding Entra ID Groups, and granting them access to the repository:
// Parameters for the GitHub organization
param organizationName string = 'my-sample-org'
// Parameters for the GitHub repository
param repositoryName string = 'my-sample-repo'
param repositoryDescription string = 'This is a sample GitHub repository created using Bicep.'
param repositoryVisibility string = 'private' // Options: 'private' | 'public'
// Create a GitHub organization
resource githubOrganization 'GitHub.Organization@2024-10-01' = {
name: organizationName
properties: {
displayName: organizationName
}
}
// Create a GitHub repository under the organization
resource githubRepository 'GitHub.Repository@2024-10-01' = {
name: repositoryName
properties: {
organizationId: githubOrganization.id
description: repositoryDescription
visibility: repositoryVisibility
}
}
// Create Entra ID group for developers
resource developersGroup 'Microsoft.Graph/[email protected]' = {
name: '${repositoryName}-Developers'
properties: {
displayName: '${repositoryName}-Developers'
mailEnabled: false
mailNickname: '${repositoryName}-devs'
securityEnabled: true
uniqueName: '${repositoryName}-Developers'
}
}
// Assign developer group permissions to the repository
resource developerPermissions 'GitHub.RepositoryPermissions@2024-10-01' = {
name: '${repositoryName}-developer-permissions'
properties: {
repositoryId: githubRepository.id
groupId: developersGroup.id
permission: 'write'
}
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I would like to request support for a GitHub provider within Bicep to enable Infrastructure as Code (IaC) deployments for GitHub resources directly.
This integration would allow developers to provision and manage GitHub resources (such as repositories, organizations, and teams) alongside their Azure infrastructure using the same Bicep language.
Sample Bicep Implementation - creating an GitHub repo, corresponding Entra ID Groups, and granting them access to the repository:
Beta Was this translation helpful? Give feedback.
All reactions