Skip to content

Commit fffc39f

Browse files
committed
Update quickstart-create-devcenter-and-project-arm.md
1 parent 1c85bf1 commit fffc39f

File tree

1 file changed

+37
-5
lines changed

1 file changed

+37
-5
lines changed

articles/deployment-environments/quickstart-create-devcenter-and-project-arm.md

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.topic: quickstart-arm
99
ms.custom: subject-armqs
1010
ms.date: 03/21/2024
1111

12-
# Customer intent: As an enterprise admin, I want a quick method to create and configure a Dev Center and Project resource to evaluate Deployment Environment.
12+
# Customer intent: As an enterprise admin, I want a quick method to create and configure a Dev Center and Project resource to evaluate Deployment Environments.
1313
---
1414

1515
# Quickstart: Create dev center and project for Azure Deployment Environments by using ARM template
@@ -21,7 +21,7 @@ This quickstart describes how to use an Azure Resource Manager template (ARM tem
2121
If your environment meets the prerequisites and you're familiar with using ARM templates, select the
2222
**Deploy to Azure** button. The template opens in the Azure portal.
2323

24-
:::image type="content" source="~/articles/reusable-content/ce-skilling/azure/media/template-deployments/deploy-to-azure-button.svg" alt-text="Button to deploy the Resource Manager template to Azure." border="false" link="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2Fquickstarts%2Fmicrosoft.devcenter%2Fenvironment-sandbox%2Fazuredeploy.json":::
24+
:::image type="content" source="~/articles/reusable-content/ce-skilling/azure/media/template-deployments/deploy-to-azure-button.svg" alt-text="Button to deploy the Resource Manager template to Azure." border="false" link="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2Fquickstarts%2Fmicrosoft.devcenter%2Fdeployment-environments%2Fazuredeploy.json":::
2525

2626
## Prerequisites
2727

@@ -32,11 +32,11 @@ If your environment meets the prerequisites and you're familiar with using ARM t
3232

3333
## Review the template
3434

35-
The template used in this quickStart is from [Azure Quickstart Templates](/samples/azure/azure-quickstart-templates/environment-sandbox/).
35+
The template used in this quickStart is from [Azure Quickstart Templates](/samples/azure/azure-quickstart-templates/deployment-environments/).
3636

37-
To view the template, see [azuredeploy.json](https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.devcenter/environment-sandbox/azuredeploy.json)
37+
To view the template, see [azuredeploy.json](https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.devcenter/deployment-environments/azuredeploy.json)
3838

39-
Azure resources defined in the template:
39+
Azure resources defined in the template:
4040

4141
- [Microsoft.DevCenter/devcenters](/azure/templates/microsoft.devcenter/devcenters): create a dev center.
4242
- [Microsoft.DevCenter/devcenters/catalogs](/azure/templates/microsoft.devcenter/devcenters/catalogs): create a catalog.
@@ -47,7 +47,39 @@ Azure resources defined in the template:
4747

4848
## Deploy the template
4949

50+
1. Select **Open Cloudshell** from the following code block to open Azure Cloud Shell, and then follow the instructions to sign in to Azure.
5051

52+
```azurepowershell-interactive
53+
$resourceGroupName = Read-Host "Please enter resource group name e.g. test-ade-rg"
54+
$userPrincipalId = Read-Host "Please enter user principal ID e.g. xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
55+
$devcenterName = Read-Host "Please enter dev center name e.g. test-dev-center"
56+
$projectName = Read-Host "Please enter project name e.g. test-project"
57+
$environmentTypeName = Read-Host "Please enter environment type name or leave it empty to default to the name 'Sandbox'"
58+
$location = Read-Host "Please enter region name e.g. eastus"
59+
$templateUri = "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.devcenter/deployment-environments/azuredeploy.json"
60+
61+
if ([string]::IsNullOrWhiteSpace($environmentTypeName)) {
62+
$environmentTypeName = "Sandbox"
63+
}
64+
65+
Write-Host "Start provisioning..."
66+
67+
New-AzDeployment -Name (New-Guid) -Location $location -TemplateUri $templateUri -resourceGroupName $resourceGroupName -userPrincipalId $userPrincipalId -devcenterName $devcenterName -projectName $projectName -environmentTypeName $environmentTypeName
68+
69+
Write-Host "Provisioning completed."
70+
71+
```
72+
73+
Wait until you see the prompt from the console.
74+
75+
2. Ensure you're set to deploy to the subscription you want.
76+
3. Select **Copy** from the previous code block to copy the PowerShell script.
77+
4. Right-click the shell console pane and then select **Paste**.
78+
5. Enter the values.
79+
80+
It takes about 30 minutes to deploy the template.
81+
82+
Azure PowerShell is used to deploy the template. You can also use the Azure portal and Azure CLI. To learn other deployment methods, see [Deploy templates](../azure-resource-manager/templates/deploy-portal.md).
5183

5284
## Review deployed resources
5385

0 commit comments

Comments
 (0)