Skip to content

Commit

Permalink
Updating github actions instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
marlenezw authored Aug 19, 2024
1 parent 62acfd7 commit 209c3b4
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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-<letters and numbers>), 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
Expand Down

0 comments on commit 209c3b4

Please sign in to comment.