Skip to content

Commit 6d40eb7

Browse files
authored
Update instructions for locating service connection ID (Azure#47338)
* Update instructions for locating service connection ID * Edit
1 parent ae7b12b commit 6d40eb7

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed
80.7 KB
Loading

sdk/identity/Azure.Identity/samples/OtherCredentialSamples.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ To use `AzurePipelinesCredential`, configure the following values in the constru
1111

1212
1. `clientId`: Client ID from your user-assigned managed identity OR Application (client) ID from your app registration.
1313
2. `tenantId`: Tenant ID from your user-assigned managed identity OR Directory (tenant) ID from your app registration.
14-
3. `serviceConnectionId`: The service connection ID is the **GUID representing your service connection**. The value is obtained by looking at the browser's address bar when you navigate to a service connection in the Azure Pipelines. It's the `resourceId` value, as found in the URL's query string.
15-
![resourceId value, as found in the query string of the Azure Resource Manager service connection created in Azure Pipelines](exampleServiceConnectionUrl.png)
16-
4. `systemAccessToken`: [See how to configure the predefined system variable System.AccessToken for the Azure Pipelines task](https://learn.microsoft.com/azure/devops/pipelines/build/variables?view=azure-devops&tabs=yaml#systemaccesstoken). This is the value you'll pass to the credential's constructor.
14+
3. `serviceConnectionId`: The service connection ID is the **GUID representing your service connection**. Once you navigate to an Azure Pipelines service connection details page, the value is obtained in one of the following ways:
15+
1. Copy the **ID:** value that appears below the service connection name.
16+
1. Copy the `resourceId` value from the querystring of the page's URL.
17+
![Places to locate the Azure Resource Manager service connection ID](../images/AzPipelinesServiceConnectionId.png)
18+
1. `systemAccessToken`: [See how to configure the predefined system variable System.AccessToken for the Azure Pipelines task](https://learn.microsoft.com/azure/devops/pipelines/build/variables?view=azure-devops&tabs=yaml#systemaccesstoken). This is the value you'll pass to the credential's constructor.
1719

1820
## Example of using an Azure Pipelines task
1921

@@ -62,7 +64,6 @@ var client = new SecretClient(new Uri("https://keyvault-name.vault.azure.net/"),
6264

6365
***Note:*** This credential is **not** included in the `DefaultAzureCredential` chain.
6466

65-
6667
# OnBehalfOfCredential with Managed Identity FIC Example
6768

6869
This example demonstrates the use of the `OnBehalfOfCredential` to authenticate the Key Vault `SecretClient` using a managed identity as the client assertion. More information about the On Behalf Of Flow can be found [here](https://learn.microsoft.com/entra/identity-platform/v2-oauth2-on-behalf-of-flow).
Binary file not shown.

0 commit comments

Comments
 (0)