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
Copy file name to clipboardExpand all lines: articles/batch/batch-ci-cd.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -435,7 +435,7 @@ For each new task that the following steps specify:
435
435
1. Select the **Download Pipeline Artifacts** task, and set the following properties:
436
436
- **Display name**: Enter *Download ApplicationPackage to Agent*.
437
437
- **Artifact name**: Enter *hpc-application*.
438
-
- **Destination directory**: Enter *$(System.DefaultWorkingDirectory)*.
438
+
- **Destination directory**: Enter `$(System.DefaultWorkingDirectory)`.
439
439
440
440
1. Create a Storage account to store your ARM templates. You could use an existing storage account, but to support this self-contained example and isolation of content, make a dedicated storage account.
441
441
@@ -444,19 +444,19 @@ For each new task that the following steps specify:
444
444
- **Azure Resource Manager connection**: Select the service connection to use.
445
445
- **Subscription:** Select the appropriate Azure subscription.
446
446
- **Action**: Select **Create or update resource group**.
447
-
- **Resource group**: Enter *$(resourceGroupName)*.
448
-
- **Location**: Enter *$(location)*.
449
-
- **Template**: Enter *$(System.ArtifactsDirectory)/\<AzureRepoArtifactSourceAlias>/arm-templates/storageAccount.json*.
450
-
- **Override template parameters**: Enter *-accountName $(storageAccountName)*.
447
+
- **Resource group**: Enter `$(resourceGroupName)`.
448
+
- **Location**: Enter `$(location)`.
449
+
- **Template**: Enter `$(System.ArtifactsDirectory)/<AzureRepoArtifactSourceAlias>/arm-templates/storageAccount.json`.
450
+
- **Override template parameters**: Enter `-accountName $(storageAccountName)`.
451
451
452
452
1. Upload the artifacts from source control into the storage account. As part of this Azure Pipelines task, the Storage account container URI and SAS token are output to a variable in Azure Pipelines, so they can be reused throughout this agent phase.
453
453
454
454
Select the **Azure File Copy** task, and set the following properties:
455
455
- **Display name:** Enter *AzureBlob File Copy*.
456
-
- **Source:** Enter *$(System.ArtifactsDirectory)/\<AzureRepoArtifactSourceAlias>/arm-templates/*.
456
+
- **Source:** Enter `$(System.ArtifactsDirectory)/<AzureRepoArtifactSourceAlias>/arm-templates/`.
457
457
- **Azure Subscription:** Select the appropriate Azure subscription.
458
458
- **Destination Type**: Select **Azure Blob**.
459
-
- **RM Storage Account**: Enter *$(storageAccountName)*.
459
+
- **RM Storage Account**: Enter `$(storageAccountName)`.
460
460
- **Container Name**: Enter *templates*.
461
461
- **Reference name**: Expand **Output Variables**, then enter *ffmpeg*.
462
462
@@ -470,11 +470,11 @@ For each new task that the following steps specify:
470
470
- **Azure Resource Manager connection:** Select the appropriate Azure subscription.
471
471
- **Subscription:** Select the appropriate Azure subscription.
472
472
- **Action**: Select **Create or update resource group**.
473
-
- **Resource group**: Enter *$(resourceGroupName)*.
474
-
- **Location**: Enter *$(location)*.
473
+
- **Resource group**: Enter `$(resourceGroupName)`.
474
+
- **Location**: Enter `$(location)`.
475
475
- **Template location**: Select **URL of the file**.
476
-
- **Template link:** Enter *$(StorageContainerUri)arm-templates/deployment.json$(StorageContainerSasToken)*.
A common practice is to use Azure Key Vault tasks. If the service principal connected to your Azure subscription has an appropriate access policy set, it can download secrets from Key Vault and be used as a variable in your pipeline. The name of the secret is set with the associated value. For example, you could reference a secret of **sshPassword** with *$(sshPassword)* in the release definition.
480
480
@@ -485,7 +485,7 @@ For each new task that the following steps specify:
485
485
- **Azure Resource Manager connection:** Select the appropriate Azure subscription.
> The version number of the application package is set to a variable. The variable allows overwriting previous versions of the package and lets you manually control the package version pushed to Azure Batch.
0 commit comments