Skip to content

Commit 1992147

Browse files
committed
Testing tabs
1 parent 05eaa97 commit 1992147

File tree

1 file changed

+1
-32
lines changed

1 file changed

+1
-32
lines changed

articles/azure-resource-manager/bicep/deploy-github-actions.md

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -42,39 +42,8 @@ New-AzResourceGroup -Name exampleRG -Location westus
4242

4343
## Configure the GitHub secrets
4444

45-
# [Service principal](#tab/userlevel)
45+
[!INCLUDE [include](~/reusable-content/github-actions/create-secrets-with-openid.md)]
4646

47-
Create secrets for your Azure credentials, resource group, and subscriptions. You use these secrets in the [Create workflow](#create-workflow) section.
48-
49-
1. In [GitHub](https://github.com/), navigate to your repository.
50-
51-
1. Select **Settings > Secrets and variables > Actions > New repository secret**.
52-
53-
1. Paste the entire JSON output from the Azure CLI command into the secret's value field. Name the secret `AZURE_CREDENTIALS`.
54-
55-
1. Create another secret named `AZURE_RG`. Add the name of your resource group to the secret's value field (`exampleRG`).
56-
57-
1. Create another secret named `AZURE_SUBSCRIPTION`. Add your subscription ID to the secret's value field (example: `aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e`).
58-
59-
# [Open ID Connect](#tab/openid)
60-
61-
You need to provide your application's **Client ID**, **Tenant ID**, and **Subscription ID** to the login action. These values can either be provided directly in the workflow or can be stored in GitHub secrets and referenced in your workflow. Saving the values as GitHub secrets is the more secure option.
62-
63-
1. Open your GitHub repository and go to **Settings**.
64-
65-
1. Select **Settings > Secrets > New secret**.
66-
67-
1. Create secrets for `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, and `AZURE_SUBSCRIPTION_ID`. Use these values from your Active Directory application for your GitHub secrets:
68-
69-
|GitHub Secret | Active Directory Application |
70-
|---------|---------|
71-
|AZURE_CLIENT_ID | Application (client) ID |
72-
|AZURE_TENANT_ID | Directory (tenant) ID |
73-
|AZURE_SUBSCRIPTION_ID | Subscription ID |
74-
75-
1. Save each secret by selecting **Add secret**.
76-
77-
---
7847

7948
## Add a Bicep file
8049

0 commit comments

Comments
 (0)