![]() ![]() You will need an SPN with contributor access and the attributes specified in these instructions to use with your GitHub Actions.Īs a user of Azure Stack Hub you do not have the permission to create the SPN. Get service principalĪn SPN provides role-based credentials so that processes outside of Azure can connect to and interact with resources. You can use both Azure Active Directory (Azure AD) or Active Directory Federated Services (AD FS) as your identity provider.Īlthough this is out of the scope of this article, your self-hosted runner can also use a virtual private network to connect to your Azure Stack Hub behind a firewall. The workflow is triggered in a GitHub repository. The following diagram shows the different environments and their relationships.Ī limitation of using GitHub Actions with Azure Stack Hub is that the process requires using an Azure Stack Hub connected to the web. Configuring a Windows 2016 Server core machine as GitHub Actions self-hosted runner to work with Azure Stack Hub.Instructions on creating and validating your SPN.You can create you a virtual machine (VM) as your runner in Azure, in Azure Stack Hub, or elsewhere. GitHub allows you to use any machine that can be reached by GitHub in your GitHub Actions. ![]() In this article, you will create a self-hosted runner. To use GitHub Actions with Azure Stack Hub, you must use a service principal (SPN) with specific requirements. You can perform common DevOps automation tasks such as testing, deployment, and continuous integration. You can trigger the workflows with events in your GitHub development process. GitHub Actions are workflows composed of actions that enable automation right inside of your code repository. For now, this article will help you get oriented with GitHub Actions and Azure Stack Hub. For example by adding some other actions you might use this workflow along with an Azure Resource Manager template to provision a VM, validate an application repository, and then deploy an application to that VM every time you merge to specific branch in GitHub. With this workflow, you can automate building, testing, and deploying your solution so that you can focus on writing code. You can use this as the basis of a continuous integration, continuous deployment (CI/CD) workflow for your solution with Azure Stack Hub. You can set up GitHub Actions to sign in to your Azure Stack Hub instance, run PowerShell, and then run an Azure CLI script. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |