Skip to content

Commit df372f7

Browse files
committed
Read through changes
1 parent db8ef59 commit df372f7

1 file changed

Lines changed: 9 additions & 11 deletions

File tree

articles/dev-box/how-to-customizations-connect-resource-repository.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -110,27 +110,25 @@ tasks:
110110
pat: "{{https://contoso-vault.vault.azure.net/secrets/github-pat}}"
111111
```
112112

113-
Or, you can reference the secret directly in the `pat` parameter, as shown in the following example:
113+
Or, you can reference the secret in-line with a built-in task, as shown in the following example:
114114

115115
```yaml
116-
$schema: "1.0"
116+
$schema: "1.0"
117117
name: "example-image-definition"
118118
image: microsoftvisualstudio_visualstudioplustools_vs-2022-ent-general-win11-m365-gen2
119-
description: "Clones a private repository by using a PAT stored in Azure Key Vault"
119+
description: "Clones a public example Git repository"
120120
121-
tasks:
122-
- name: git-clone
123-
description: Clone this repository into C:\workspaces
124-
parameters:
125-
repositoryUrl: https://dev.azure.com/<org>/<project>/_git/<repo>
126-
directory: C:\workspaces
127-
pat: "{{https://<key-vault-name>.vault.azure.net/secrets/<secret-name>}}"
121+
tasks:
122+
- name: git-clone
123+
description: Clone this repository into C:\Workspaces
124+
parameters:
125+
command: MyCommand –MyParam "{{KEY_VAULT_SECRET_URI}}"
128126
```
129127

130128

131129
### User customizations example
132130

133-
User customizations let you obtain an Azure DevOps token to clone private repositories without explicitly specifying a PAT from the key vault. The service automatically exchanges your Azure token for an Azure DevOps token at run time.
131+
User customizations let you obtain an Azure DevOps token to clone private repositories without explicitly specifying a PAT from the key vault.
134132

135133
This example shows the ADO shorthand (`{{ado://...}}`). The service exchanges your Azure token for an Azure DevOps token at runtime, so you don't need to store a PAT in Key Vault.
136134

0 commit comments

Comments
 (0)