Skip to content

Latest commit

 

History

History
52 lines (45 loc) · 2 KB

README.md

File metadata and controls

52 lines (45 loc) · 2 KB

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