Skip to content

Commit 9bc3aec

Browse files
committed
edits
1 parent 8bc82d8 commit 9bc3aec

File tree

2 files changed

+34
-33
lines changed

2 files changed

+34
-33
lines changed

articles/deployment-environments/how-to-configure-use-cli.md

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Configure and use the Deployment Environments Azure CLI extension
2+
title: Configure Deployment Environments by using the Azure CLI extension
33
titleSuffix: Azure Deployment Environments
44
description: Learn how to set up and use the Azure Deployment Environments Preview Azure CLI extension to configure the Deployment Environments service.
55
ms.service: deployment-environments
@@ -10,44 +10,45 @@ ms.date: 10/26/2022
1010
ms.topic: how-to
1111
---
1212

13-
# Configure Azure Deployment Environments service using Azure CLI
13+
# Configure Azure Deployment Environments by using the Azure CLI extension
1414

15-
This article shows you how to use the Deployment Environments Azure CLI extension to configure an Azure Deployment Environments Preview service. In Azure Deployment Environments Preview, you'll use Deployment Environments Azure CLI extension to create [environments](./concept-environments-key-concepts.md#environments).
15+
This article shows you how to use the Azure Deployment Environments Preview Azure CLI extension to configure a Deployment Environments service. In Deployment Environments, you'll use Deployment Environments Azure CLI extension to create and work with [environments](./concept-environments-key-concepts.md#environments).
1616

1717
> [!IMPORTANT]
1818
> Azure Deployment Environments is currently in preview. For legal terms that apply to Azure features that are in beta, in preview, or otherwise not yet released into general availability, see the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
1919
2020
## Setup
2121

22-
1. Install the Deployment Environments Azure CLI Extension:
22+
1. Install the Deployment Environments Azure CLI extension:
2323

2424
1. [Download and install the Azure CLI](/cli/azure/install-azure-cli).
2525
1. Install the Deployment Environments AZ CLI extension:
2626

27-
- **Automated installation**
27+
- **Automated installation**
2828

29-
Execute the script https://aka.ms/DevCenter/Install-DevCenterCli.ps1 directly in PowerShell to install:
29+
To install, execute the script https://aka.ms/DevCenter/Install-DevCenterCli.ps1 directly in PowerShell:
3030

31-
```powershell
32-
iex "& { $(irm https://aka.ms/DevCenter/Install-DevCenterCli.ps1 ) }"
33-
```
31+
```powershell
32+
iex "& { $(irm https://aka.ms/DevCenter/Install-DevCenterCli.ps1 ) }"
33+
```
3434
35-
Any existing dev center extension is uninstalled and the latest version is installed.
35+
Any existing dev center extension is uninstalled and the latest version is installed.
3636
3737
- **Manual installation**
3838
39-
- Run the following command in the Azure CLI:
40-
```azurecli
41-
az extension add --source https://fidalgosetup.blob.core.windows.net/cli-extensions/devcenter-0.1.0-py3-none-any.whl
42-
```
39+
In the Azure CLI, run the following command:
40+
41+
```azurecli
42+
az extension add --source https://fidalgosetup.blob.core.windows.net/cli-extensions/devcenter-0.1.0-py3-none-any.whl
43+
```
4344
4445
1. Sign in to the Azure CLI:
4546
4647
```azurecli
4748
az login
4849
```
4950
50-
1. Set the default subscription to the subscription in which you'll create your specific Deployment Environment resources.
51+
1. Set the default subscription to the subscription you'll use to create your specific Deployment Environment resources:
5152
5253
```azurecli
5354
az account set --subscription {subscriptionId}
@@ -61,7 +62,7 @@ This article shows you how to use the Deployment Environments Azure CLI extensio
6162
az group create -l <region-name> -n <resource-group-name>
6263
```
6364

64-
Optionally, set defaults (which means there is no need to pass the argument into each command):
65+
Optionally, set defaults so that you don't need to pass the argument into each command:
6566

6667
```azurecli
6768
az configure --defaults group=<resource-group-name>
@@ -79,30 +80,30 @@ az devcenter dev <command> --help
7980

8081
### Dev centers
8182

82-
#### Create a dev center with user-assigned identity
83+
#### Create a dev center by using a user-assigned identity
8384

8485
```azurecli
8586
az devcenter admin devcenter create --identity-type "UserAssigned" --user-assigned-identity
8687
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/identityGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testidentity1" --location <location-name> -g <resource-group-name> - <name>
8788
```
8889

89-
#### Create a dev center with system-assigned identity
90+
#### Create a dev center by using a system-assigned identity
9091

9192
```azurecli
9293
az devcenter admin devcenter create --location <location-name> -g <resource-group-name> -n <name> \
9394
--identity-type "SystemAssigned"
9495
```
9596

96-
#### List dev centers (in the selected subscription if resource group is not specified or configured in defaults)
97+
#### List dev centers (in the specified resource group)
9798

9899
```azurecli
99-
az devcenter admin devcenter list --output table
100+
az devcenter admin devcenter list -g <resource-group-name>
100101
```
101102

102-
#### List dev centers (in the specified resource group)
103+
#### List dev centers (in the selected subscription if resource group isn't specified or configured in defaults)
103104

104105
```azurecli
105-
az devcenter admin devcenter list -g <resource-group-name>
106+
az devcenter admin devcenter list --output table
106107
```
107108

108109
#### Get a specific dev center
@@ -156,7 +157,7 @@ az devcenter admin environment-type delete --dev-center-name <devcenter-name> --
156157
az devcenter dev environment list --dev-center <devcenter-name> --project-name <project-name>
157158
```
158159

159-
### Project Environment Types
160+
### Project environment types
160161

161162
#### Create project environment types
162163

@@ -196,13 +197,13 @@ az devcenter admin project-allowed-environment-type list --project-name <project
196197

197198
### Catalogs
198199

199-
#### Create a catalog with a GitHub repository
200+
#### Create a catalog that uses a GitHub repository
200201

201202
```azurecli
202203
az devcenter admin catalog create --git-hub secret-identifier="https://<key-vault-name>.azure-int.net/secrets/<secret-name>" uri=<git-clone-uri> branch=<git-branch> -g <resource-group-name> --name <name> --dev-center-name <devcenter-name>
203204
```
204205

205-
#### Create a catalog with a Azure DevOps repository
206+
#### Create a catalog that uses an Azure DevOps repository
206207

207208
```azurecli
208209
az devcenter admin catalog create --ado-git secret-identifier="https://<key-vault-name>.azure-int.net/secrets/<secret-name>" uri=<git-clone-uri> branch=<git-branch> -g <resource-group-name> --name <name> --dev-center-name <devcenter-name>
@@ -228,7 +229,7 @@ az devcenter admin catalog delete -g <resource-group-name> --dev-center-name <de
228229

229230
### Catalog items
230231

231-
#### List catalog items available in a project
232+
#### List catalog items that are available in a project
232233

233234
```azurecli
234235
az devcenter dev catalog-item list --dev-center-name <devcenter-name> --project-name <name>
@@ -242,16 +243,16 @@ az devcenter dev catalog-item list --dev-center-name <devcenter-name> --project-
242243
az devcenter admin project create -g <resource-group-name> -n <project-name> --dev-center-id <devcenter-resource-id>
243244
```
244245

245-
#### List projects (in the selected subscription if resource group is not specified or configured in defaults)
246+
#### List projects (in the specified resource group)
246247

247248
```azurecli
248-
az graph query -q "Resources | where type =~ 'microsoft.devcenter/projects' | project id, name"
249+
az devcenter admin project list -g <resource-group-name>
249250
```
250251

251-
#### List projects (in the specified resource group)
252+
#### List projects (in the selected subscription if resource group isn't specified or configured in defaults)
252253

253254
```azurecli
254-
az devcenter admin project list -g <resource-group-name>
255+
az graph query -q "Resources | where type =~ 'microsoft.devcenter/projects' | project id, name"
255256
```
256257

257258
#### Delete a project
@@ -278,7 +279,7 @@ az devcenter environment deploy-action --action-id "deploy" --dev-center <devcen
278279
-g <resource-group-name> --project-name <project-name> -n <name> --parameters <parameters-json-string>
279280
```
280281

281-
### List environments in a project
282+
### List the environments in a project
282283

283284
```azurecli
284285
az devcenter dev environment list --dev-center <devcenter-name> --project-name <project-name>

articles/deployment-environments/how-to-manage-environments.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ You can delete your environment completely when you don't need it anymore.
100100

101101
## Manage an environment by using the Azure CLI
102102

103-
The Azure CLI provides a command line interface for speed and efficiency when creating multiple similar environments, or for platforms where resources like memory are limited. You can use the following commands to create, list, deploy, or delete an environment.
103+
The Azure CLI provides a command-line interface for speed and efficiency when you create multiple similar environments, or for platforms where resources like memory are limited. You can use the following commands to create, list, deploy, or delete an environment.
104104

105-
To learn how to Deployment Environments Azure CLI Extension, refer to [Configure Azure Deployment Environments service using Azure CLI](how-to-configure-use-cli.md).
105+
To learn how to Deployment Environments Azure CLI extension, see [Configure Azure Deployment Environments service using Azure CLI](how-to-configure-use-cli.md).
106106

107107
### Create an environment
108108

0 commit comments

Comments
 (0)