You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/templates/deploy-github-actions.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Deploy Resource Manager templates by using GitHub Actions
3
3
description: Describes how to deploy Azure Resource Manager templates (ARM templates) by using GitHub Actions.
4
4
ms.topic: conceptual
5
-
ms.date: 10/13/2020
5
+
ms.date: 02/07/2022
6
6
ms.custom: github-actions-azure
7
7
---
8
8
@@ -16,8 +16,8 @@ Use the [Deploy Azure Resource Manager Template Action](https://github.com/marke
16
16
17
17
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
18
18
- A GitHub account. If you don't have one, sign up for [free](https://github.com/join).
19
-
- A GitHub repository to store your Resource Manager templates and your workflow files. To create one, see [Creating a new repository](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-new-repository).
20
19
20
+
- A GitHub repository to store your Resource Manager templates and your workflow files. To create one, see [Creating a new repository](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-new-repository).
21
21
22
22
## Workflow file overview
23
23
@@ -32,7 +32,6 @@ The file has two sections:
32
32
33
33
## Generate deployment credentials
34
34
35
-
36
35
You can create a [service principal](../../active-directory/develop/app-objects-and-service-principals.md#service-principal-object) with the [az ad sp create-for-rbac](/cli/azure/ad/sp#az_ad_sp_create_for_rbac) command in the [Azure CLI](/cli/azure/). Run this command with [Azure Cloud Shell](https://shell.azure.com/) in the Azure portal or by selecting the **Try it** button.
37
36
38
37
Create a resource group if you do not already have one.
@@ -62,8 +61,6 @@ In the example above, replace the placeholders with your subscription ID and res
62
61
> [!IMPORTANT]
63
62
> It is always a good practice to grant minimum access. The scope in the previous example is limited to the resource group.
64
63
65
-
66
-
67
64
## Configure the GitHub secrets
68
65
69
66
You need to create secrets for your Azure credentials, resource group, and subscriptions.
@@ -126,6 +123,7 @@ The workflow file must be stored in the **.github/workflows** folder at the root
> You can specify a JSON format parameters file instead in the ARM Deploy action (example: `.azuredeploy.parameters.json`).
131
129
@@ -147,6 +145,7 @@ Because the workflow is configured to be triggered by either the workflow file o
147
145
1. Select **Run ARM deploy** from the menu to verify the deployment.
148
146
149
147
## Clean up resources
148
+
150
149
When your resource group and repository are no longer needed, clean up the resources you deployed by deleting the resource group and your GitHub repository.
0 commit comments