From 209c3b40146e585cd4ce3711e117249faf97acb4 Mon Sep 17 00:00:00 2001 From: Marlene <57748216+marlenezw@users.noreply.github.com> Date: Mon, 19 Aug 2024 15:28:31 +0100 Subject: [PATCH] Updating github actions instructions --- README.md | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/README.md b/README.md index 86fea2ff..5327c843 100644 --- a/README.md +++ b/README.md @@ -301,33 +301,6 @@ To set up CI/CD with GitHub actions on your repository, run the following comman azd pipeline config ``` -**Workaround to enable CI/CD:** in the output, look for the "Creating service principal" line and **Copy** the name of the service principal (looks like az-dev-), an example is shown below: -``` -... -(✓) Done: Creating service principal az-dev-05-19-2024-02-02-02 (62c51d5e-17f7-4b06-bfab-fza2a4e1e6d8) -... -``` - -This will create a service principal in your Azure subscription for your GitHub actions to use when running azd and evaluations. - -You will need to add a role assignment of this service principal on your tfstate storage account. Open the Azure portal, and take the following steps: - 1. In the search box at the top of the screen, search for _ENVIRONMENT_NAME-tfstate_ - 1. Select the resource group that appears - 1. Click to open the storage account in that resource group - 1. Select the **Access control (IAM)** on the left nav - 1. Then click **Add** > **Role Assignment** - 1. Search for the **Storage Blob Data Contributor** role, and select **Next** - 1. Click **+ Select Members**, and add the **az-dev-** role that you copied earlier - 1. Click **Review + Assign** twice - -Currently, when your GitHub action runs, **it will remove your access** to call the OpenAI and AI Search resources from your development environment with your user identity. It essentially takes over this azd environment for CI/CD purposes, and if you want to continue working on this repo you should create a new development environment. - -If you do want to re-enable access from your development environment, re-run the provision command: - -``` -azd provision -``` - ## Guidance ### Region Availability