20
20
inputs :
21
21
packageType : sdk
22
22
version : ${{ parameters.netCoreVersion }}
23
-
23
+
24
24
- task : PowerShell@2
25
25
condition : and(succeeded(), eq('${{ parameters.psVersion }}', 'preview'))
26
26
displayName : DownLoad Package for ${{ parameters.psVersion }}
@@ -37,13 +37,13 @@ jobs:
37
37
*.tar.gz
38
38
destinationFolder : ${{ parameters.PowerShellPath }}
39
39
overwriteExistingFiles : true
40
-
40
+
41
41
- task : PowerShell@2
42
42
displayName : Prepare Powershell ${{ parameters.psVersion }}
43
43
inputs :
44
44
filePath : ' tools/Test/SmokeTest/PrepareRequiredPowershell.ps1'
45
45
arguments : ' -RequiredPsVersion ${{ parameters.psVersion }} -PowerShellPath "${{ parameters.PowerShellPath }}" -AgentOS "$(Agent.OS)"'
46
-
46
+
47
47
- task : DownloadPipelineArtifact@2
48
48
condition : and(succeeded(), eq(variables['GalleryName'], 'LocalRepo'), eq(variables['PipelineId'], ''))
49
49
displayName : Download Latest Artifacts from Build Pipeline
91
91
inputs :
92
92
command : custom
93
93
arguments : ' install Az.Compute -directdownload -packagesavemode nupkg -source https://www.powershellgallery.com/api/v2 -OutputDirectory packages'
94
-
94
+
95
95
- task : PowerShell@2
96
96
condition : and(succeeded(), eq(variables['GalleryName'], 'LocalRepo'))
97
97
displayName : ' Copy Previous Release .nupkg files to LocalRepo'
@@ -106,49 +106,53 @@ jobs:
106
106
displayName : Install Az Modules from $(GalleryName)
107
107
inputs :
108
108
filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
109
- arguments : ' -RequiredPsVersion ${{ parameters.psVersion }} -Script "./tools/Test/SmokeTest/InstallAzModules.ps1 -Gallery $(GalleryName) -LocalRepoLocation $(LocalRepoLocation)" -PowerShellPath "${{ parameters.PowerShellPath }}" -AgentOS "$(Agent.OS)"'
110
-
109
+ arguments : ' -RequiredPsVersion ${{ parameters.psVersion }} -Script "./tools/Test/SmokeTest/InstallAzModules.ps1 -Gallery $(GalleryName) -LocalRepoLocation $(LocalRepoLocation)" -PowerShellPath "${{ parameters.PowerShellPath }}" -AgentOS "$(Agent.OS)"'
110
+
111
+ - template : get-keyvault-secret-steps.yml
112
+ parameters :
113
+ serviceConnectionName : $(ServiceConnectionName)
114
+ keyVaultName : $(ServicePrincipalKeyVaultName)
115
+ secretName : $(ServicePrincipalSecretName)
116
+ outVar : ' ServicePrincipalSecret'
117
+
111
118
- task : PowerShell@2
112
- displayName : Connect AzAccount
119
+ displayName : Connect AzAccount
113
120
inputs :
114
121
filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
115
- arguments : ' -RequiredPsVersion ${{ parameters.psVersion }} -Script "./tools/Test/SmokeTest/ConnectAzAccount.ps1 $(Password ) $(ServicePrincipal) $(TenantId) $(SubscriptionId) " -PowerShellPath "${{ parameters.PowerShellPath }}" -AgentOS "$(Agent.OS)"'
122
+ arguments : ' -RequiredPsVersion ${{ parameters.psVersion }} -Script "./tools/Test/SmokeTest/ConnectAzAccount.ps1 $(ServicePrincipalSecret ) $(ServicePrincipal) $(TenantId) $(SubscriptionId) " -PowerShellPath "${{ parameters.PowerShellPath }}" -AgentOS "$(Agent.OS)"'
116
123
117
124
- task : PowerShell@2
118
- displayName : Run Smoke Test
125
+ displayName : Run Smoke Test
119
126
inputs :
120
127
filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
121
128
arguments : ' -RequiredPsVersion ${{ parameters.psVersion }} -Script "./tools/Test/SmokeTest/RmCoreSmokeTests.ps1 " -PowerShellPath "${{ parameters.PowerShellPath }}" -AgentOS "$(Agent.OS)"'
122
129
failOnStderr : true
123
130
124
-
125
131
- task : PowerShell@2
126
132
displayName : ' Run Smoke Test Reversely'
127
133
inputs :
128
134
filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
129
135
arguments : ' -RequiredPsVersion ${{ parameters.psVersion }} -Script "./tools/Test/SmokeTest/RmCoreSmokeTests.ps1 -Reverse" -PowerShellPath "${{ parameters.PowerShellPath }}" -AgentOS "$(Agent.OS)"'
130
136
failOnStderr : true
131
137
132
-
133
138
- task : PowerShell@2
134
139
displayName : Clean Az Modules
135
140
inputs :
136
141
filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
137
- arguments : ' -RequiredPsVersion ${{ parameters.psVersion }} -Script "./tools/Test/SmokeTest/CleanAzModules.ps1" -PowerShellPath "${{ parameters.PowerShellPath }}" -AgentOS "$(Agent.OS)"'
142
+ arguments : ' -RequiredPsVersion ${{ parameters.psVersion }} -Script "./tools/Test/SmokeTest/CleanAzModules.ps1" -PowerShellPath "${{ parameters.PowerShellPath }}" -AgentOS "$(Agent.OS)"'
138
143
139
144
- task : PowerShell@2
140
145
displayName : Update Az Modules
141
146
inputs :
142
147
filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
143
- arguments : ' -RequiredPsVersion ${{ parameters.psVersion }} -Script "./tools/Test/SmokeTest/UpdateAzModules.ps1 -Gallery $(GalleryName) -AllowEquality $(AllowEquality) " -PowerShellPath "${{ parameters.PowerShellPath }}" -AgentOS "$(Agent.OS)"'
148
+ arguments : ' -RequiredPsVersion ${{ parameters.psVersion }} -Script "./tools/Test/SmokeTest/UpdateAzModules.ps1 -Gallery $(GalleryName) -AllowEquality $(AllowEquality) " -PowerShellPath "${{ parameters.PowerShellPath }}" -AgentOS "$(Agent.OS)"'
144
149
145
150
- task : PowerShell@2
146
- displayName : Run Smoke Test
151
+ displayName : Run Smoke Test
147
152
inputs :
148
153
filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
149
154
arguments : ' -RequiredPsVersion ${{ parameters.psVersion }} -Script "./tools/Test/SmokeTest/RmCoreSmokeTests.ps1 " -PowerShellPath "${{ parameters.PowerShellPath }}" -AgentOS "$(Agent.OS)"'
150
155
failOnStderr : true
151
-
152
156
153
157
- task : PowerShell@2
154
158
displayName : ' Run Smoke Test Reversely'
@@ -157,48 +161,47 @@ jobs:
157
161
arguments : ' -RequiredPsVersion ${{ parameters.psVersion }} -Script "./tools/Test/SmokeTest/RmCoreSmokeTests.ps1 -Reverse " -PowerShellPath "${{ parameters.PowerShellPath }}" -AgentOS "$(Agent.OS)"'
158
162
failOnStderr : true
159
163
160
-
161
164
- task : PowerShell@2
162
165
displayName : Clean Az Modules
163
166
inputs :
164
167
filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
165
- arguments : ' -RequiredPsVersion ${{ parameters.psVersion }} -Script "./tools/Test/SmokeTest/CleanAzModules.ps1" -PowerShellPath "${{ parameters.PowerShellPath }}" -AgentOS "$(Agent.OS)"'
166
-
168
+ arguments : ' -RequiredPsVersion ${{ parameters.psVersion }} -Script "./tools/Test/SmokeTest/CleanAzModules.ps1" -PowerShellPath "${{ parameters.PowerShellPath }}" -AgentOS "$(Agent.OS)"'
169
+
167
170
- task : PowerShell@2
168
171
displayName : Install an individual module
169
172
inputs :
170
173
filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
171
- arguments : ' -RequiredPsVersion ${{ parameters.psVersion }} -Script "./tools/Test/SmokeTest/InstallAnIndividualModule.ps1 -Gallery $(GalleryName) " -PowerShellPath "${{ parameters.PowerShellPath }}" -AgentOS "$(Agent.OS)"'
174
+ arguments : ' -RequiredPsVersion ${{ parameters.psVersion }} -Script "./tools/Test/SmokeTest/InstallAnIndividualModule.ps1 -Gallery $(GalleryName) " -PowerShellPath "${{ parameters.PowerShellPath }}" -AgentOS "$(Agent.OS)"'
172
175
173
176
- task : PowerShell@2
174
177
displayName : Clean Az Modules
175
178
inputs :
176
179
filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
177
- arguments : ' -RequiredPsVersion ${{ parameters.psVersion }} -Script "./tools/Test/SmokeTest/CleanAzModules.ps1" -PowerShellPath "${{ parameters.PowerShellPath }}" -AgentOS "$(Agent.OS)"'
180
+ arguments : ' -RequiredPsVersion ${{ parameters.psVersion }} -Script "./tools/Test/SmokeTest/CleanAzModules.ps1" -PowerShellPath "${{ parameters.PowerShellPath }}" -AgentOS "$(Agent.OS)"'
178
181
179
182
- task : PowerShell@2
180
183
displayName : Update an individual module
181
184
inputs :
182
185
filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
183
- arguments : ' -RequiredPsVersion ${{ parameters.psVersion }} -Script "./tools/Test/SmokeTest/UpdateAnIndividualModule.ps1 -Gallery $(GalleryName) -AllowEquality $(AllowEquality) " -PowerShellPath "${{ parameters.PowerShellPath }}" -AgentOS "$(Agent.OS)"'
186
+ arguments : ' -RequiredPsVersion ${{ parameters.psVersion }} -Script "./tools/Test/SmokeTest/UpdateAnIndividualModule.ps1 -Gallery $(GalleryName) -AllowEquality $(AllowEquality) " -PowerShellPath "${{ parameters.PowerShellPath }}" -AgentOS "$(Agent.OS)"'
184
187
185
188
- task : PowerShell@2
186
189
displayName : Clean Az Modules
187
190
inputs :
188
191
filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
189
- arguments : ' -RequiredPsVersion ${{ parameters.psVersion }} -Script "./tools/Test/SmokeTest/CleanAzModules.ps1" -PowerShellPath "${{ parameters.PowerShellPath }}" -AgentOS "$(Agent.OS)"'
192
+ arguments : ' -RequiredPsVersion ${{ parameters.psVersion }} -Script "./tools/Test/SmokeTest/CleanAzModules.ps1" -PowerShellPath "${{ parameters.PowerShellPath }}" -AgentOS "$(Agent.OS)"'
190
193
191
194
- task : PowerShell@2
192
195
displayName : Install Az on top of an individual module
193
196
inputs :
194
197
filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
195
- arguments : ' -RequiredPsVersion ${{ parameters.psVersion }} -Script "./tools/Test/SmokeTest/InstallAzOnTopOfAnIndividualModule.ps1 -Gallery $(GalleryName) -AllowEquality $(AllowEquality) " -PowerShellPath "${{ parameters.PowerShellPath }}" -AgentOS "$(Agent.OS)"'
196
-
198
+ arguments : ' -RequiredPsVersion ${{ parameters.psVersion }} -Script "./tools/Test/SmokeTest/InstallAzOnTopOfAnIndividualModule.ps1 -Gallery $(GalleryName) -AllowEquality $(AllowEquality) " -PowerShellPath "${{ parameters.PowerShellPath }}" -AgentOS "$(Agent.OS)"'
199
+
197
200
- task : PowerShell@2
198
201
displayName : Clean Az Modules
199
202
inputs :
200
203
filePath : ' tools/Test/SmokeTest/ScriptsCaller.ps1'
201
- arguments : ' -RequiredPsVersion ${{ parameters.psVersion }} -Script "./tools/Test/SmokeTest/CleanAzModules.ps1" -PowerShellPath "${{ parameters.PowerShellPath }}" -AgentOS "$(Agent.OS)"'
204
+ arguments : ' -RequiredPsVersion ${{ parameters.psVersion }} -Script "./tools/Test/SmokeTest/CleanAzModules.ps1" -PowerShellPath "${{ parameters.PowerShellPath }}" -AgentOS "$(Agent.OS)"'
202
205
203
206
- task : PowerShell@2
204
207
displayName : Install an individual module on top of Az
0 commit comments