Quickstart: Create dev center and project for Azure Deployment Environments by using an ARM template
Artikel
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.
An Azure Resource Manager template is a JavaScript Object Notation (JSON) file that defines the infrastructure and configuration for your project. The template uses declarative syntax. You describe your intended deployment without writing the sequence of programming commands to create the deployment.
If your environment meets the prerequisites and you're familiar with using ARM templates, select the
Deploy to Azure button. The template opens in the Azure portal.
Prerequisites
If you don't have an Azure subscription, create a free account before you begin.
Owner or Contributor role on an Azure subscription or resource group.
Microsoft Entra AD. Your organization must use Microsoft Entra AD for identity and access management.
Microsoft Intune subscription. Your organization must use Microsoft Intune for device management.
Select Open Cloud Shell on either of the following code blocks and follow instructions to sign in to Azure.
Wait until you see the prompt from the console, then ensure you're set to deploy to the subscription you want.
If you want to continue deploying the template, select Copy on the code block, then right-click the shell console and select Paste.
If you want to use the default parameter values:
Azure PowerShell
$location = Read-Host"Please enter region name e.g. eastus"$templateUri = "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.devcenter/deployment-environments/azuredeploy.json"Write-Host"Start provisioning..."New-AzDeployment -Name (New-Guid) -Location$location -TemplateUri$templateUriWrite-Host"Provisioning completed."
If you want to input your own values:
Azure PowerShell
$resourceGroupName = Read-Host"Please enter resource group name: "$devCenterName = Read-Host"Please enter dev center name: "$projectName = Read-Host"Please enter project name: "$environmentTypeName = Read-Host"Please enter environment type name: "$userObjectId = Read-Host"Please enter your user object ID e.g. xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"$location = Read-Host"Please enter region name e.g. eastus"$templateUri = "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.devcenter/deployment-environments/azuredeploy.json"Write-Host"Start provisioning..."New-AzDeployment -Name (New-Guid) -Location$location -TemplateUri$templateUri -resourceGroupName$resourceGroupName -devCenterName$devCenterName -projectName$projectName -environmentTypeName$environmentTypeName -userObjectId$userObjectIdWrite-Host"Provisioning completed."
It takes about 5 minutes to deploy the template.
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.
Required parameters
Resource Group Name: The name of the resource group where the dev center and project are located.
Dev Center Name: The name of the dev center.
Project Name: The name of the project that is associated with the dev center.
Environment Type Name: The name of the environment type for both the dev center and project.
User Object ID: The object ID of the user that is granted the Deployment Environments User role.
Skriv JSON Azure Resource Manager-skabeloner ved hjælp af Visual Studio Code for at udrulle din infrastruktur på Azure på en ensartet og pålidelig måde.
Byg komplette løsninger i Microsoft Azure for at oprette Azure Functions, implementere og administrere webapps, udvikle løsninger ved hjælp af Azure Storage og meget mere.