Skip to content

Commit b74ce2a

Browse files
committed
edits
1 parent 7200032 commit b74ce2a

File tree

1 file changed

+18
-20
lines changed

1 file changed

+18
-20
lines changed

articles/deployment-environments/how-to-create-configure-dev-center.md

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
11
---
22
title: Create and configure a dev center for Azure Deployment Environments by using the Azure CLI
33
titleSuffix: Azure Deployment Environments
4-
description: Learn how to create and access a dev center for Azure Deployment Environments project using the Azure CLI.
4+
description: Learn how to create and configure a dev center for an Azure Deployment Environments project by using the Azure CLI.
55
author: renato-marciano
66
ms.author: remarcia
77
ms.service: azure-deployment-environments
88
ms.custom: devx-track-azurecli, build-2023
99
ms.topic: quickstart
1010
ms.date: 03/20/2025
11+
12+
#customer intent: As a platform engineer, I want to create and configure a dev center so that my teams can deploy applications.
1113
---
1214

1315
# Create and configure a dev center for Azure Deployment Environments by using the Azure CLI
1416

15-
This quickstart guide shows you how to create and configure a dev center in Azure Deployment Environments.
17+
In this quickstart, you create and configure a dev center in Azure Deployment Environments.
1618

1719
A platform engineering team typically sets up a dev center, attaches external catalogs to the dev center, creates projects, and provides access to development teams. Development teams can then create [environments](concept-environments-key-concepts.md#environments) by using [environment definitions](concept-environments-key-concepts.md#environment-definitions), connect to individual resources, and deploy applications.
1820

1921
## Prerequisites
2022

21-
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
22-
- Azure role-based access control role with permissions to create and manage resources in the subscription, such as [Contributor](../role-based-access-control/built-in-roles.md#contributor) or [Owner](../role-based-access-control/built-in-roles.md#owner).
23-
- Install the [Azure CLI devcenter extension](how-to-install-devcenter-cli-extension.md).
24-
- A GitHub account and a [personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) with repo access.
23+
|Category|Requirements|
24+
|-|-|
25+
|Azure|- An [Azure subscription](https://azure.microsoft.com/free/).<br>- An Azure role-based access control role that has permissions to create and manage resources in the subscription, such as [Contributor](../role-based-access-control/built-in-roles.md#contributor) or [Owner](../role-based-access-control/built-in-roles.md#owner).<br>-The [Azure CLI devcenter extension](how-to-install-devcenter-cli-extension.md).|
26+
|GitHub|A GitHub account and a [personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) with repo access.|
2527

2628
## Create a dev center
2729

@@ -45,7 +47,7 @@ To create and configure a dev center in Azure Deployment Environments:
4547
az account set --subscription <subscriptionName>
4648
```
4749

48-
1. Configure the default location where you want to create the dev center. Make sure to choose an [available region for Azure Deployment Environments](https://azure.microsoft.com/explore/global-infrastructure/products-by-region/?products=deployment-environments&regions=all):
50+
1. Configure the default location where you want to create the dev center. Make sure to choose a [region that supports Azure Deployment Environments](https://azure.microsoft.com/explore/global-infrastructure/products-by-region/?products=deployment-environments&regions=all).
4951

5052
```azurecli
5153
az configure --defaults location=eastus
@@ -106,6 +108,11 @@ You need an Azure Key Vault to store the GitHub personal access token (PAT) that
106108
> You might get the following error:
107109
`Code: VaultAlreadyExists Message: The vault name 'kv-devcenter-unique' is already in use. Vault names are globally unique so it is possible that the name is already taken.` You must use a globally unique key vault name.
108110

111+
1. Assign yourself the Key Vault Secrets Officer RBAC role:
112+
113+
```azurecli
114+
az role assignment create --assignee <YourPrincipalId> --role "Key Vault Secrets Officer" --scope /subscriptions/<YourSubscriptionId>/resourceGroups/<YourResourceGroupName>/providers/Microsoft.KeyVault/vaults/<YourKeyVaultName>
115+
109116
1. Add the GitHub PAT to Key Vault as a secret:
110117
111118
```azurecli
@@ -128,20 +135,11 @@ To attach a system-assigned managed identity to your dev center:
128135

129136
### Give the system-assigned managed identity access to the key vault secret
130137

131-
Make sure that the identity has access to the key vault secret that contains the GitHub PAT to access your repository. Key Vaults support two methods of access; Azure role-based access control or vault access policy. In this quickstart, you use a vault access policy.
132-
133-
1. Retrieve the Object ID of your dev center's identity:
134-
135-
```azurecli
136-
OID=$(az ad sp list --display-name <devcenterName> --query [].id -o tsv)
137-
echo $OID
138-
```
139-
140-
1. Add a Key Vault policy to allow the dev center to get secrets from Key Vault:
138+
Make sure that the identity has access to the key vault secret that contains the GitHub PAT to access your repository. Key Vaults support two methods of access; Azure role-based access control (RBAC) or vault access policy. In this quickstart, you use RBAC:
141139

142-
```azurecli
143-
az keyvault set-policy -n <keyvaultName> --secret-permissions get --object-id $OID
144-
```
140+
```azurecli
141+
az role assignment create --role "Key Vault Secrets Officer" --assignee <devCenterManagedIdentityObjectID> --scope /subscriptions/<subscriptionID>/resourcegroups/<resourceGroupName/providers/Microsoft.KeyVault/vaults/<keyVaultName>
142+
```
145143

146144
## Add a catalog to the dev center
147145

0 commit comments

Comments
 (0)