Use GitHub-hosted runners with an Azure private network in your organization
Table of content:
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-AzResourceProvider -ProviderNamespace 'GitHub.Network'
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}
Import-Module ./src/pwsh/Get-GithubDatabaseId.psm1
Get-GithubDatabaseId.ps1 -OrganizationName myOrgHere -BearerToken $env:GH_TOKEN
login databaseId
----- ----------
myOrgHere 123456789