github quick and dirty way to setup managed identity and federate github repo

This is a quick an dirty way to setup managed identiy and federation github repo

 

SET RESOURCE_GROUP="github-rg"

SET RG_NAME="github-rg"

SET LOCATION="australiaeast"

SET IDENTITY_NAME="github-aue-dev-mi"

SET SUBSCRIPTION_ID=subscription-id

SET REPO="kepungnzai/dot-net-gw"

set IDENTITY_PRINCIPAL_ID=acf61232-246e-4782-9234-919307693969

And to federate it 


az identity federated-credential create  --name
"github-actions-main"  --identity-name %IDENTITY_NAME%  
--resource-group %RG_NAME% --issuer "https://token.actions.githubusercontent.com"  
--subject "repo:%REPO%:ref:refs/heads/*"
--audience "api://AzureADTokenExchange"





Comments

Popular posts from this blog

mongosh install properly

vllm : Failed to infer device type

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20