You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:::image type="content" source="./media/deploy-portal/select-resource-groups.png" alt-text="Screenshot of selecting resource groups in Azure portal":::
:::image type="content" source="./media/deploy-portal/add-resource-group.png" alt-text="Screenshot of adding a resource group in Azure portal":::
30
30
31
31
1. Select or enter the following property values:
32
32
33
33
-**Subscription**: Select an Azure subscription.
34
34
-**Resource group**: Give the resource group a name.
35
35
-**Region**: Specify an Azure location. This location is where the resource group stores metadata about the resources. For compliance reasons, you may want to specify where that metadata is stored. In general, we recommend that you specify a location where most of your resources will be. Using the same location can simplify your template.
36
36
37
-

37
+
:::image type="content" source="./media/deploy-portal/set-group-properties.png" alt-text="Screenshot of setting resource group property values in Azure portal":::
38
38
39
39
1. Select **Review + create**.
40
40
1. Review the values, and then select **Create**.
@@ -46,25 +46,25 @@ After you create a resource group, you can deploy resources to the group from th
46
46
47
47
1. To start a deployment, select **Create a resource** from the [Azure portal](https://portal.azure.com).
:::image type="content" source="./media/deploy-portal/new-resources.png" alt-text="Screenshot of creating a new resource in Azure portal":::
50
50
51
51
1. Find the type of resource you would like to deploy. The resources are organized in categories. If you don't see the particular solution you would like to deploy, you can search the Marketplace for it. The following screenshot shows that Ubuntu Server is selected.
:::image type="content" source="./media/deploy-portal/select-resource-type.png" alt-text="Screenshot of selecting a resource type in Azure portal":::
54
54
55
55
1. Depending on the type of selected resource, you have a collection of relevant properties to set before deployment. For all types, you must select a destination resource group. The following image shows how to create a Linux virtual machine and deploy it to the resource group you created.
:::image type="content" source="./media/deploy-portal/select-existing-group.png" alt-text="Screenshot of creating a Linux virtual machine and deploying it to a resource group in Azure portal":::
58
58
59
59
You can decide to create a resource group when deploying your resources. Select **Create new** and give the resource group a name.
60
60
61
61
1. Your deployment begins. The deployment could take several minutes. Some resources take longer time than other resources. When the deployment has finished, you see a notification. Select **Go to resource** to open
:::image type="content" source="./media/deploy-portal/add-resource.png" alt-text="Screenshot of adding a resource to a resource group in Azure portal":::
68
68
69
69
Although you didn't see it, the portal used an ARM template to deploy the resources you selected. You can find the template from the deployment history. For more information, see [Export template after deployment](export-template-portal.md#export-template-after-deployment).
70
70
@@ -77,7 +77,7 @@ If you want to execute a deployment but not use any of the templates in the Mark
77
77
78
78
1. To deploy a customized template through the portal, select **Create a resource**, search for **template**. and then select **Template deployment**.
:::image type="content" source="./media/deploy-portal/search-template.png" alt-text="Screenshot of searching for template deployment in Azure portal":::
81
81
82
82
1. Select **Create**.
83
83
1. You see several options for creating a template:
@@ -86,7 +86,7 @@ If you want to execute a deployment but not use any of the templates in the Mark
86
86
-**Common templates**: Select from common solutions.
87
87
-**Load a GitHub quickstart template**: Select from [quickstart templates](https://azure.microsoft.com/resources/templates/).
:::image type="content" source="./media/deploy-portal/see-options.png" alt-text="Screenshot of template creation options in Azure portal":::
90
90
91
91
This tutorial provides the instruction for loading a quickstart template.
92
92
@@ -99,7 +99,7 @@ If you want to execute a deployment but not use any of the templates in the Mark
99
99
100
100
1. Select **Edit template** to explore the portal template editor. The template is loaded in the editor. Notice there are two parameters: `storageAccountType` and `location`.
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/templates/deployment-script-template-configure-dev.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -212,7 +212,7 @@ You also can upload the file by using the Azure portal or the Azure CLI.
212
212
2. Open the container group. The default container group name is the project name appended with *cg*. The container instance is in the **Running** state.
213
213
3. In the resource menu, select **Containers**. The container instance name is the project name appended with *container*.
214
214
215
-

215
+
:::image type="content" source="./media/deployment-script-template-configure-dev/deployment-script-container-instance-connect.png" alt-text="Screenshot of the deployment script connect container instance option in the Azure portal.":::
216
216
217
217
4. Select **Connect**, and then select **Connect**. If you can't connect to the container instance, restart the container group and try again.
218
218
5. In the console pane, run the following commands:
@@ -225,7 +225,7 @@ You also can upload the file by using the Azure portal or the Azure CLI.
225
225
226
226
The output is **Hello John Dole**.
227
227
228
-

228
+
:::image type="content" source="./media/deployment-script-template-configure-dev/deployment-script-container-instance-test.png" alt-text="Screenshot of the deployment script connect container instance test output displayed in the console.":::
229
229
230
230
## Use an Azure CLI container instance
231
231
@@ -402,7 +402,7 @@ You also can upload the file by using the Azure portal or the Azure CLI.
402
402
1. Open the container group. The default container group name is the project name appended with *cg*. The container instance is shown in the **Running** state.
403
403
1. In the resource menu, select **Containers**. The container instance name is the project name appended with *container*.
:::image type="content" source="./media/deployment-script-template-configure-dev/deployment-script-container-instance-connect.png" alt-text="Screenshot of the deployment script connect container instance option in the Azure portal.":::
406
406
407
407
1. Select **Connect**, and then select **Connect**. If you can't connect to the container instance, restart the container group and try again.
408
408
1. In the console pane, run the following commands:
@@ -415,7 +415,7 @@ You also can upload the file by using the Azure portal or the Azure CLI.
:::image type="content" source="./media/deployment-script-template-configure-dev/deployment-script-container-instance-test-cli.png" alt-text="Screenshot of the deployment script container instance test output displayed in the console.":::
419
419
420
420
## Use Docker
421
421
@@ -460,7 +460,7 @@ You also need to configure file sharing to mount the directory, which contains t
460
460
461
461
1. The following screenshot shows how to run a PowerShell script, given that you have a *helloworld.ps1* file in the shared drive.
:::image type="content" source="./media/deployment-script-template/resource-manager-deployment-script-docker-cmd.png" alt-text="Screenshot of the Resource Manager template deployment script using Docker command.":::
464
464
465
465
After the script is tested successfully, you can use it as a deployment script in your templates.
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/templates/deployment-script-template.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -225,7 +225,7 @@ Write-Host "Press [ENTER] to continue ..."
225
225
226
226
The output looks like:
227
227
228
-

228
+
:::image type="content" source="./media/deployment-script-template/resource-manager-template-deployment-script-helloworld-output.png" alt-text="Screenshot of Resource Manager template deployment script hello world output.":::
229
229
230
230
## Use external scripts
231
231
@@ -366,7 +366,7 @@ The max allowed size for environment variables is 64 KB.
366
366
367
367
The script service creates a [storage account](../../storage/common/storage-account-overview.md) (unless you specify an existing storage account) and a [container instance](../../container-instances/container-instances-overview.md) for script execution. If these resources are automatically created by the script service, both resources have the `azscripts` suffix in the resource names.
The user script, the execution results, and the stdout file are stored in the files shares of the storage account. There's a folder called `azscripts`. In the folder, there are two more folders for the input and the output files: `azscriptinput` and `azscriptoutput`.
372
372
@@ -376,7 +376,7 @@ The output folder contains a _executionresult.json_ and the script output file.
376
376
377
377
After you deploy a deployment script resource, the resource is listed under the resource group in the Azure portal. The following screenshot shows the **Overview** page of a deployment script resource:
The overview page displays some important information of the resource, such as **Provisioning state**, **Storage account**, **Container instance**, and **Logs**.
382
382
@@ -568,7 +568,7 @@ It only works before the deployment script resources are deleted.
568
568
569
569
To see the deploymentScripts resource in the portal, select **Show hidden types**:
570
570
571
-

571
+
:::image type="content" source="./media/deployment-script-template/resource-manager-deployment-script-portal-show-hidden-types.png" alt-text="Screenshot of Resource Manager template deployment script with show hidden types option in portal.":::
:::image type="content" source="./media/deployment-tutorial-pipeline/azure-resource-manager-devops-pipelines-github-repository.png" alt-text="Screenshot of creating a GitHub repository for Azure Resource Manager Azure DevOps Azure Pipelines.":::
52
52
53
53
1. Select **New**, a green button.
54
54
1. In **Repository name**, enter a repository name. For example, **ARMPipeline-repo**. Remember to replace any of **ARMPipeline** with your project name. You can select either **Public** or **private** for going through this tutorial. And then select **Create repository**.
@@ -115,7 +115,7 @@ A DevOps organization is needed before you can proceed to the next procedure. If
115
115
1. Select a DevOps organization from the left, and then select **New project**. If you don't have any projects, the create project page is opened automatically.
:::image type="content" source="./media/deployment-tutorial-pipeline/azure-resource-manager-devops-pipelines-create-devops-project.png" alt-text="Screenshot of creating an Azure DevOps project for Azure Resource Manager Azure DevOps Azure Pipelines.":::
119
119
120
120
***Project name**: Enter a project name. You can use the project name you picked at the very beginning of the tutorial.
121
121
***Visibility**: Select **Private**.
@@ -151,7 +151,7 @@ To create a pipeline with a step to deploy a template:
151
151
1. Select **Create pipeline**.
152
152
1. From the **Connect** tab, select**GitHub**. If asked, enter your GitHub credentials, and then follow the instructions. If you see the following screen, select**Onlyselectrepositories**, and verify your repository is in the list before you select**Approve& Install**.
153
153
154
-

154
+
:::image type="content" source="./media/deployment-tutorial-pipeline/azure-resource-manager-devops-pipelines-only-select-repositories.png" alt-text="Screenshot of selecting repositories for Azure Resource Manager Azure DevOps Azure Pipelines.":::
155
155
156
156
1. From the **Select** tab, selectyour repository. The default name is `[YourAccountName]/[YourGitHubRepositoryName]`.
157
157
1. From the **Configure** tab, select**Starter pipeline**. It shows the _azure-pipelines.yml_ pipeline file with two script steps.
@@ -174,21 +174,21 @@ To create a pipeline with a step to deploy a template:
174
174
***Deployment mode**: Select **Incremental**.
175
175
***Deployment name**: Enter **DeployPipelineTemplate**. Select **Advanced** before you can see **Deployment name**.
176
176
177
-

177
+
:::image type="content" source="./media/deployment-tutorial-pipeline/resource-manager-template-pipeline-configure.png" alt-text="Screenshot of the ARM template deployment page with required values entered for Azure DevOps Azure Pipelines.":::
178
178
179
179
1. Select **Add**.
180
180
181
181
For more information about the task, see [Azure Resource Group Deployment task](/azure/devops/pipelines/tasks/deploy/azure-resource-group-deployment), and [Azure Resource Manager template deployment task](https://github.com/microsoft/azure-pipelines-tasks/blob/master/Tasks/AzureResourceManagerTemplateDeploymentV3/README.md)
182
182
183
183
The _.yml_ file shall be similar to:
184
184
185
-

185
+
:::image type="content" source="./media/deployment-tutorial-pipeline/azure-resource-manager-devops-pipelines-yml.png" alt-text="Screenshot of the Review page with the new pipeline titled Review your pipeline YAML for Azure DevOps Azure Pipelines.":::
186
186
187
187
1. Select **Save and run**.
188
188
1. From the **Save and run** pane, select**Save and run** again. A copy of the YAML file is saved into the connected repository. You can see the YAML file by browse to your repository.
189
189
1. Verify that the pipeline is executed successfully.
0 commit comments