@@ -19,7 +19,7 @@ stages:
1919 # ------------------------------------------------------------
2020 # Job 1: Create AKS Cluster
2121 # ------------------------------------------------------------
22- - job : Create_AKS
22+ - job : CreateCluster
2323 displayName : " Create AKS Clusters"
2424 pool :
2525 vmImage : ubuntu-latest
@@ -40,17 +40,18 @@ stages:
4040 ${{ parameters.vmSkuHighNIC }}
4141
4242 # ------------------------------------------------------------
43- # Job 2: Create VNets
43+ # Job 2: Networking & Storage
4444 # ------------------------------------------------------------
45- - job : Create_VNets
46- displayName : " Create VNets"
47- dependsOn : Create_AKS
45+ - job : NetworkingAndStorage
46+ displayName : " Networking and Storage Setup"
4847 pool :
4948 vmImage : ubuntu-latest
5049 steps :
5150 - checkout : self
51+
52+ # Task 1: Create VNets
5253 - task : AzureCLI@2
53- displayName : " Run create_vnets.sh "
54+ displayName : " Create customer vnets "
5455 inputs :
5556 azureSubscription : ${{ parameters.serviceConnection }}
5657 scriptType : bash
@@ -61,18 +62,9 @@ stages:
6162 ${{ parameters.location }}
6263 ${{ parameters.resourceGroupName }}
6364
64- # ------------------------------------------------------------
65- # Job 3: Create Peerings
66- # ------------------------------------------------------------
67- - job : Create_Peerings
68- displayName : " Create Peerings"
69- dependsOn : Create_VNets
70- pool :
71- vmImage : ubuntu-latest
72- steps :
73- - checkout : self
65+ # Task 2: Create Peerings
7466 - task : AzureCLI@2
75- displayName : " Run create_peerings.sh "
67+ displayName : " Create customer vnet peerings "
7668 inputs :
7769 azureSubscription : ${{ parameters.serviceConnection }}
7870 scriptType : bash
@@ -81,19 +73,10 @@ stages:
8173 arguments : >
8274 ${{ parameters.resourceGroupName }}
8375
84- # ------------------------------------------------------------
85- # Job 4: Create Storage
86- # ------------------------------------------------------------
87- - job : Create_Storage
88- displayName : " Create Storage"
89- dependsOn : Create_AKS
90- pool :
91- vmImage : ubuntu-latest
92- steps :
93- - checkout : self
76+ # Task 3: Create Storage Accounts
9477 - task : AzureCLI@2
9578 name : CreateStorageTask
96- displayName : " Run create_storage.sh "
79+ displayName : " Create storage accounts "
9780 inputs :
9881 azureSubscription : ${{ parameters.serviceConnection }}
9982 scriptType : bash
@@ -103,22 +86,16 @@ stages:
10386 ${{ parameters.subscriptionId }}
10487 ${{ parameters.location }}
10588 ${{ parameters.resourceGroupName }}
106- outputs :
107- StorageAccount1 : $[ dependencies.Create_Storage.outputs['CreateStorageTask.StorageAccount1'] ]
108- StorageAccount2 : $[ dependencies.Create_Storage.outputs['CreateStorageTask.StorageAccount2'] ]
10989
110- # ------------------------------------------------------------
111- # Job 5: Create NSG
112- # ------------------------------------------------------------
113- - job : Create_NSG
114- displayName : " Create Network Security Groups"
115- dependsOn : Create_VNets
116- pool :
117- vmImage : ubuntu-latest
118- steps :
119- - checkout : self
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+
96+ # Task 4: Create NSG
12097 - task : AzureCLI@2
121- displayName : " Run create_nsg.sh "
98+ displayName : " Create network security groups to restrict access between subnets. "
12299 inputs :
123100 azureSubscription : ${{ parameters.serviceConnection }}
124101 scriptType : bash
@@ -128,21 +105,10 @@ stages:
128105 ${{ parameters.subscriptionId }}
129106 ${{ parameters.resourceGroupName }}
130107 ${{ parameters.location }}
131- # ------------------------------------------------------------
132- # Job 6: Create Private Endpoint
133- # ------------------------------------------------------------
134- - job : Create_PrivateEndpoint
135- displayName : " Create Private Endpoint for Storage"
136- dependsOn : Create_Storage
137- pool :
138- vmImage : ubuntu-latest
139- variables :
140- StorageAccount1 : $[ dependencies.Create_Storage.outputs['CreateStorageTask.StorageAccount1'] ]
141- StorageAccount2 : $[ dependencies.Create_Storage.outputs['CreateStorageTask.StorageAccount2'] ]
142- steps :
143- - checkout : self
108+
109+ # Task 5: Create Private Endpoint
144110 - task : AzureCLI@2
145- displayName : " Run create_private_endpoint.sh "
111+ displayName : " Create Private Endpoint for Storage Account. "
146112 inputs :
147113 azureSubscription : ${{ parameters.serviceConnection }}
148114 scriptType : bash
0 commit comments