Skip to content

Use GitHub-hosted runners with an Azure private network in your organization

Notifications You must be signed in to change notification settings

eskillarsen/github-azure-private-vnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

github-azure-private-vnet

Use GitHub-hosted runners with an Azure private network in your organization

Table of content:

Prerequisites

Register resource provider on target subscription

Check resource provider

Set-AzContext -Subscription 'landing-zone-demo-001'
Get-AzResourceProvider -ProviderNamespace "GitHub.Network" | Format-Table
ProviderNamespace RegistrationState ResourceTypes             Locations                                     ZoneMappings
----------------- ----------------- -------------             ---------                                     ------------
GitHub.Network    NotRegistered     {Operations}              {global}
GitHub.Network    NotRegistered     {networkSettings}         {East US, East US 2, West US 2, West Europe…}
GitHub.Network    NotRegistered     {registeredSubscriptions} {global}

Register resource provider

Register-AzResourceProvider -ProviderNamespace 'GitHub.Network'

Success

Get-AzResourceProvider -ProviderNamespace "GitHub.Network" | Format-Table
ProviderNamespace RegistrationState ResourceTypes             Locations                                     ZoneMappings
----------------- ----------------- -------------             ---------                                     ------------
GitHub.Network    Registered        {Operations}              {global}
GitHub.Network    Registered        {networkSettings}         {East US, East US 2, West US 2, West Europe…}
GitHub.Network    Registered        {registeredSubscriptions} {global}

Get GitHub DatabaseId

Import-Module ./src/pwsh/Get-GithubDatabaseId.psm1
Get-GithubDatabaseId.ps1 -OrganizationName myOrgHere -BearerToken $env:GH_TOKEN
    login       databaseId
    -----       ----------
    myOrgHere   123456789

About

Use GitHub-hosted runners with an Azure private network in your organization

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published