Skip to content

Commit 4efe64d

Browse files
author
sivakami
committed
Set output variables.
1 parent b7056df commit 4efe64d

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

.pipelines/swiftv2-long-running/template/long-running-pipeline-template.yaml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ stages:
7575
7676
# Task 3: Create Storage Accounts
7777
- task: AzureCLI@2
78-
name: CreateStorageTask
78+
name: CreateStorageAccounts
7979
displayName: "Create storage accounts"
8080
inputs:
8181
azureSubscription: ${{ parameters.serviceConnection }}
@@ -86,13 +86,7 @@ stages:
8686
${{ parameters.subscriptionId }}
8787
${{ parameters.location }}
8888
${{ parameters.resourceGroupName }}
89-
90-
# Set storage account names as variables for later tasks
91-
- script: |
92-
echo "##vso[task.setvariable variable=StorageAccount1]$(StorageAccount1)"
93-
echo "##vso[task.setvariable variable=StorageAccount2]$(StorageAccount2)"
94-
displayName: "Set storage account variables"
95-
89+
9690
# Task 4: Create NSG
9791
- task: AzureCLI@2
9892
displayName: "Create network security groups to restrict access between subnets."
@@ -113,10 +107,10 @@ stages:
113107
azureSubscription: ${{ parameters.serviceConnection }}
114108
scriptType: bash
115109
scriptLocation: scriptPath
116-
scriptPath: ".pipelines/swiftv2-long-running/scripts/create_private_endpoint.sh"
110+
scriptPath: ".pipelines/swiftv2-long-running/scripts/create_pe.sh"
117111
arguments: >
118112
${{ parameters.subscriptionId }}
119113
${{ parameters.location }}
120114
${{ parameters.resourceGroupName }}
121-
$(StorageAccount1)
122-
$(StorageAccount2)
115+
$(CreateStorageAccounts.StorageAccount1)
116+
$(CreateStorageAccounts.StorageAccount2)

0 commit comments

Comments
 (0)