Skip to content

Commit a67bc61

Browse files
Update how-to-create-configure-dev-center.md
replace bash commands with powershell
1 parent 33c483b commit a67bc61

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ Make sure that the identity has access to the key vault secret that contains the
133133
1. Retrieve the Object ID of your dev center's identity:
134134

135135
```azurecli
136-
OID=$(az ad sp list --display-name <devcenterName> --query [].id -o tsv)
137-
echo $OID
136+
$OID = az ad sp list --display-name <devcenterName> --query [].id -o tsv
137+
Write-Output $OID
138138
```
139139

140140
1. Add a Key Vault policy to allow the dev center to get secrets from Key Vault:
@@ -171,15 +171,15 @@ You can use this [sample catalog](https://github.com/Azure/deployment-environmen
171171
1. Retrieve the secret identifier:
172172

173173
```azurecli
174-
SECRETID=$(az keyvault secret show --vault-name <keyvaultName> --name GHPAT --query id -o tsv)
175-
echo $SECRETID
174+
$SECRETID = az keyvault secret show --vault-name <keyvaultName> --name GHPAT --query id -o tsv
175+
Write-Output $SECRETID
176176
```
177177

178178
1. Add the catalog.
179179

180180
```azurecli
181181
# Sample catalog example
182-
REPO_URL="https://github.com/Azure/deployment-environments.git"
182+
$REPO_URL = "https://github.com/Azure/deployment-environments.git"
183183
az devcenter admin catalog create --git-hub path="/Environments" branch="main" secret-identifier=$SECRETID uri=$REPO_URL -n <catalogName> -d <devcenterName>
184184
```
185185

0 commit comments

Comments
 (0)