Skip to content

Latest commit

 

History

History
17 lines (16 loc) · 2.06 KB

RegisterSandboxEnvironment.md

File metadata and controls

17 lines (16 loc) · 2.06 KB

#3 Register a customer sandbox environment for Continuous Deployment using S2S

Prerequisites: A completed scenario 2, an AAD App, and an online sandbox environment called QA with the setup for S2S as specified in task 1 and 2 here Using Service to Service Authentication - Business Central | Microsoft Docs completed. You will also need the BcContainerHelper PowerShell module installed on your computer.

Note: Environments are only supported in public repositories or with GitHub Enterprise license (see https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment). We are considering adding a secondary option for listing environments.

  1. On github.com, open Settings and Environments in your project. Click New Environment and specify the name of the environment you have created in your tenant. Add Environment
  2. Under Environment secrets, choose the Add Secret action. Create a secret called AUTHCONTEXT, and enter a COMPRESSED JSON construct with 3 values: TenantID (where the environment lives), ClientID, and ClientSecret (from the pre-requisites), like: {"TenantID":"<TenantID>","ClientID":"<theClientID>","ClientSecret":"<theClientSecret>"} Add Environment
  3. Navigate to Actions, select the Publish To Environment workflow and choose Run workflow. Enter latest in the App version field and the name of your environment or keep the * in the environment to receive the new version field. Click Run workflow. Add Environment
  4. When the workflow completes, you can inspect the output of the workflow. Add Environment
  5. And/or you can open the QA environment, navigate to Customers and see that your very own Hello World message appears. Add Environment

back