Skip to content

Commit a123e87

Browse files
Merge pull request #302130 from jasminemehndir/automation-update-02July
Added a pointer to an existing Note
2 parents a82d2ce + 53a4ee2 commit a123e87

File tree

1 file changed

+21
-18
lines changed

1 file changed

+21
-18
lines changed

articles/automation/source-control-integration.md

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Use source control integration in Azure Automation
2+
title: Use Source Control Integration in Azure Automation
33
description: This article tells you how to synchronize Azure Automation source control with other repositories.
44
services: automation
55
ms.subservice: process-automation
@@ -18,7 +18,8 @@ author: jasminemehndir
1818
Source control integration lets you easily collaborate with your team, track changes, and roll back to earlier versions of your runbooks. For example, source control allows you to synchronize different branches in source control with your development, test, and production Automation accounts.
1919

2020
> [!NOTE]
21-
> Source control synchronization jobs are run under the user's Automation account and are billed at the same rate as other Automation jobs. Additionally, Azure Automation Jobs do not support MFA (Multi-Factor Authentication).
21+
> * Source control synchronization jobs are run under the user's Automation account and are billed at the same rate as other Automation jobs. Additionally, Azure Automation Jobs do not support Multi-Factor Authentication (MFA).
22+
> * Source control integration is supported for PowerShell 5.1 runbooks only.
2223
2324
## Source control types
2425

@@ -41,7 +42,7 @@ Azure Automation supports three types of source control:
4142
>
4243
> If you have both a Run As account and managed identity enabled, then managed identity is given preference.
4344
44-
> [!Important]
45+
> [!IMPORTANT]
4546
> Azure Automation Run As Account has retired on **September 30, 2023**. We recommend that you use [Managed Identities](migrate-run-as-accounts-managed-identity.md).
4647
4748
> [!NOTE]
@@ -55,6 +56,8 @@ This section tells how to configure source control for your Automation account.
5556

5657
This example uses Azure PowerShell to show how to assign the Contributor role in the subscription to the Azure Automation account resource.
5758

59+
To assign managed identity to Contributor role, follow these steps:
60+
5861
1. Open a PowerShell console with elevated privileges.
5962
1. Sign in to Azure by running the command `Connect-AzAccount`.
6063
1. To assign the managed identity to the **Contributor** role, run the following command.
@@ -68,27 +71,27 @@ This example uses Azure PowerShell to show how to assign the Contributor role in
6871
6972
### Configure source control in Azure portal
7073
71-
Use this procedure to configure source control using the Azure portal.
74+
To configure source control using the Azure portal, follow these steps:
7275
73-
1. In your Automation account, select **Source Control** and click **Add**.
76+
1. In your Automation account, select **Source Control** and select **Add**.
7477
7578
![Select source control](./media/source-control-integration/select-source-control.png)
7679
77-
2. Choose **Source Control type**, then click **Authenticate**.
80+
2. Choose **Source Control type**, then select **Authenticate**.
7881
7982
3. A browser window opens and prompts you to sign in. Follow the prompts to complete authentication.
8083
81-
4. On the Source Control Summary page, use the fields to fill in the source control properties defined below. Click **Save** when finished.
84+
4. On the **Source Control Summary** page, use the fields to fill in the source control properties defined below. Select **Save** when finished.
8285
8386
|Property |Description |
8487
|---------|---------|
8588
|Source control name | A friendly name for the source control. This name must contain only letters and numbers. |
8689
|Source control type | Type of source control mechanism. Available options are:</br> * GitHub</br>* Azure DevOps (Git)</br> * Azure DevOps (TFVC) |
87-
|Repository | Name of the repository or project. The first 200 repositories are retrieved. To search for a repository, type the name in the field and click **Search on GitHub**.|
90+
|Repository | Name of the repository or project. The first 200 repositories are retrieved. To search for a repository, type the name in the field and select **Search on GitHub**.|
8891
|Branch | Branch from which to pull the source files. Branch targeting isn't available for the TFVC source control type. |
8992
|Folder path | Folder that contains the runbooks to synchronize, for example, **/Runbooks**. Only runbooks in the specified folder are synchronized. Recursion isn't supported. |
9093
|Auto Sync<sup>1</sup> | Setting that turns on or off automatic synchronization when a commit is made in the source control repository or GitHub repo. |
91-
|Publish Runbook | Setting of On if runbooks are automatically published after synchronization from source control, and Off otherwise. |
94+
|Publish Runbook | Setting of On, if runbooks are automatically published after synchronization from source control, and Off otherwise. |
9295
|Description | Text specifying additional details about the source control. |
9396
9497
<sup>1 To enable Auto Sync when configuring the source control integration with Azure DevOps, you must be the Project Administrator or the GitHub repo owner. Collaborators can only configure Source Control without Auto Sync.</sup></br>
@@ -138,7 +141,7 @@ Source control requires some minimum permissions for PATs. The following subsect
138141

139142
##### Minimum PAT permissions for GitHub
140143

141-
The following table defines the minimum PAT permissions required for GitHub. For more information about creating a PAT in GitHub, see [Creating a personal access token for the command line](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/).
144+
The following table defines the minimum PAT permissions required for GitHub. For more information about creating a PAT in GitHub, see [Create a personal access token for the command line](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/).
142145

143146
|Scope |Description |
144147
|---------|---------|
@@ -169,19 +172,19 @@ The following list defines the minimum PAT permissions required for Azure DevOps
169172

170173
## Synchronize with source control
171174

172-
Follow these steps to synchronize with source control.
175+
To synchronize with source control, follow these steps:
173176

174-
1. Select the source from the table on the Source control page.
177+
1. Select the source from the table on the **Source control** page.
175178

176-
2. Click **Start Sync** to start the sync process.
179+
2. Select **Start Sync** to start the sync process.
177180

178-
3. View the status of the current sync job or previous ones by clicking the **Sync jobs** tab.
181+
3. View the status of the current sync job or previous ones by selecting the **Sync jobs** tab.
179182

180183
4. On the **Source Control** dropdown menu, select a source control mechanism.
181184

182185
![Sync status](./media/source-control-integration/sync-status.png)
183186

184-
5. Clicking on a job allows you to view the job output. The following example is the output from a source control sync job.
187+
5. Selecting a job allows you to view the job output. The following example is the output from a source control sync job.
185188

186189
```output
187190
===================================================================
@@ -213,17 +216,17 @@ Follow these steps to synchronize with source control.
213216
214217
```
215218
216-
6. Additional logging is available by selecting **All Logs** on the Source Control Sync Job Summary page. These additional log entries can help you troubleshoot issues that might arise when using source control.
219+
6. Additional logging is available by selecting **All Logs** on the **Source Control Sync Job Summary** page. These additional log entries can help you troubleshoot issues that might arise when using source control.
217220
218221
## Disconnect source control
219222
220-
To disconnect from a source control repository:
223+
To disconnect from a source control repository, follow these steps:
221224
222225
1. Open **Source control** under **Account Settings** in your Automation account.
223226
224227
2. Select the source control mechanism to remove.
225228
226-
3. On the Source Control Summary page, click **Delete**.
229+
3. On the **Source Control Summary** page, select **Delete**.
227230
228231
## Handle encoding issues
229232

0 commit comments

Comments
 (0)