|
| 1 | +--- |
| 2 | +title: Create dev center and project for Azure Deployment Environment by using Azure Resource Manager template (ARM template) |
| 3 | +description: Learn how to create and configure Dev Center and Project for Azure Deployment Environment by using Azure Resource Manager template (ARM template). |
| 4 | +services: deployment-environments |
| 5 | +ms.service: deployment-environments |
| 6 | +author: thophan-microsoft |
| 7 | +ms.author: thophan |
| 8 | +ms.topic: quickstart-arm |
| 9 | +ms.custom: subject-armqs |
| 10 | +ms.date: 03/21/2024 |
| 11 | + |
| 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. |
| 13 | +--- |
| 14 | + |
| 15 | +# Quickstart: Create dev center and project for Azure Deployment Environments by using ARM template |
| 16 | + |
| 17 | +This quickstart describes how to use an Azure Resource Manager template (ARM template) to create and configure a dev center and project for creating an environment. |
| 18 | + |
| 19 | +[!INCLUDE [About Azure Resource Manager](../../includes/resource-manager-quickstart-introduction.md)] |
| 20 | + |
| 21 | +If your environment meets the prerequisites and you're familiar with using ARM templates, select the |
| 22 | +**Deploy to Azure** button. The template opens in the Azure portal. |
| 23 | + |
| 24 | +:::image type="content" source="~/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"::: |
| 25 | + |
| 26 | +## Prerequisites |
| 27 | + |
| 28 | +- If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin. |
| 29 | +- Owner or Contributor role on an Azure subscription or resource group. |
| 30 | +- Microsoft Entra AD. Your organization must use Microsoft Entra AD for identity and access management. |
| 31 | +- Microsoft Intune subscription. Your organization must use Microsoft Intune for device management. |
| 32 | + |
| 33 | +## Review the template |
| 34 | + |
| 35 | +The template used in this quickStart is from [Azure Quickstart Templates](/samples/azure/azure-quickstart-templates/deployment-environments/). |
| 36 | + |
| 37 | +To view the template, see [azuredeploy.json](https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.devcenter/deployment-environments/azuredeploy.json). |
| 38 | + |
| 39 | +Azure resources defined in the template: |
| 40 | + |
| 41 | +- [Microsoft.DevCenter/devcenters](/azure/templates/microsoft.devcenter/devcenters): create a dev center. |
| 42 | +- [Microsoft.DevCenter/devcenters/catalogs](/azure/templates/microsoft.devcenter/devcenters/catalogs): create a catalog. |
| 43 | +- [Microsoft.DevCenter/devcenters/environmentTypes](/azure/templates/microsoft.devcenter/devcenters/environmenttypes): create a dev center environment type. |
| 44 | +- [Microsoft.DevCenter/projects](/azure/templates/microsoft.devcenter/projects): create a project. |
| 45 | +- [Microsoft.Authorization/roleAssignments](/azure/templates/microsoft.authorization/roleassignments): create a role assignment. |
| 46 | +- [Microsoft.DevCenter/projects/environmentTypes](/azure/templates/microsoft.devcenter/projects/environmenttypes): create a project environment type. |
| 47 | + |
| 48 | +## Deploy the template |
| 49 | + |
| 50 | +1. Select **Open Cloud Shell** on either of the following code blocks and follow instructions to sign in to Azure. |
| 51 | +2. Wait until you see the prompt from the console, then ensure you're set to deploy to the subscription you want. |
| 52 | +3. If you want to continue deploying the template, select **Copy** on the code block, then right-click the shell console and select **Paste**. |
| 53 | + |
| 54 | + 1. If you want to use the default parameter values: |
| 55 | + |
| 56 | + ```azurepowershell-interactive |
| 57 | + $location = Read-Host "Please enter region name e.g. eastus" |
| 58 | + $templateUri = "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.devcenter/deployment-environments/azuredeploy.json" |
| 59 | +
|
| 60 | + Write-Host "Start provisioning..." |
| 61 | +
|
| 62 | + New-AzDeployment -Name (New-Guid) -Location $location -TemplateUri $templateUri |
| 63 | +
|
| 64 | + Write-Host "Provisioning completed." |
| 65 | +
|
| 66 | + ``` |
| 67 | +
|
| 68 | + 2. If you want to input your own values: |
| 69 | +
|
| 70 | + ```azurepowershell-interactive |
| 71 | + $resourceGroupName = Read-Host "Please enter resource group name: " |
| 72 | + $devCenterName = Read-Host "Please enter dev center name: " |
| 73 | + $projectName = Read-Host "Please enter project name: " |
| 74 | + $environmentTypeName = Read-Host "Please enter environment type name: " |
| 75 | + $userObjectId = Read-Host "Please enter your user object ID e.g. xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" |
| 76 | +
|
| 77 | + $location = Read-Host "Please enter region name e.g. eastus" |
| 78 | + $templateUri = "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.devcenter/deployment-environments/azuredeploy.json" |
| 79 | +
|
| 80 | + Write-Host "Start provisioning..." |
| 81 | +
|
| 82 | + New-AzDeployment -Name (New-Guid) -Location $location -TemplateUri $templateUri -resourceGroupName $resourceGroupName -devCenterName $devCenterName -projectName $projectName -environmentTypeName $environmentTypeName -userObjectId $userObjectId |
| 83 | +
|
| 84 | + Write-Host "Provisioning completed." |
| 85 | +
|
| 86 | + ``` |
| 87 | +
|
| 88 | +It takes about 5 minutes to deploy the template. |
| 89 | +
|
| 90 | +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). |
| 91 | +
|
| 92 | +### Required parameters |
| 93 | +
|
| 94 | +- *Resource Group Name*: The name of the resource group where the dev center and project are located. |
| 95 | +- *Dev Center Name*: The name of the dev center. |
| 96 | +- *Project Name*: The name of the project that is associated with the dev center. |
| 97 | +- *Environment Type Name*: The name of the environment type for both the dev center and project. |
| 98 | +- *User Object ID*: The object ID of the user that is granted the *Deployment Environments User* role. |
| 99 | +
|
| 100 | +Alternatively, you can provide access to deployment environments project in the Azure portal. See [Provide user access to Azure Deployment Environments projects](./how-to-configure-deployment-environments-user.md). |
| 101 | +
|
| 102 | +## Review deployed resources |
| 103 | +
|
| 104 | +1. Sign in to the [Azure portal](https://portal.azure.com). |
| 105 | +2. Select **Resource groups** from the left pane. |
| 106 | +3. Select the resource group that you created in the previous section. |
| 107 | +
|
| 108 | +## Clean up resources |
| 109 | +
|
| 110 | +1. Delete any environments associated with the project either through the Azure portal or the developer portal. |
| 111 | +2. Delete the project resource. |
| 112 | +3. Delete the dev center resource. |
| 113 | +4. Delete the resource group. |
| 114 | +5. Remove the role assignments that you don't need anymore from the subscription. |
| 115 | +
|
| 116 | +## Next steps |
| 117 | +
|
| 118 | +In this quickstart, you created and configured a dev center and project. Advance to the next quickstart to learn how to create an environment. |
| 119 | +
|
| 120 | +> [!div class="nextstepaction"] |
| 121 | +> [Quickstart: Create and access an environment](./quickstart-create-access-environments.md) |
0 commit comments