Skip to content

Commit b2ae500

Browse files
committed
Add param to skip checks
1 parent cb23b88 commit b2ae500

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

src/ALZ/Public/Deploy-Accelerator.ps1

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,25 @@ function Deploy-Accelerator {
169169
)]
170170
[Alias("tj")]
171171
[Alias("convertTfvarsToJson")]
172-
[switch] $convert_tfvars_to_json
172+
[switch] $convert_tfvars_to_json,
173+
174+
[Parameter(
175+
Mandatory = $false,
176+
HelpMessage = "[OPTIONAL] Determines whether to skip the requirements check. This is not recommended."
177+
)]
178+
[Alias("sr")]
179+
[Alias("skipRequirementsCheck")]
180+
[switch] $skip_requirements_check
173181
)
174182

175183
$ProgressPreference = "SilentlyContinue"
176184

177-
Write-InformationColored "Checking the software requirements for the Accelerator..." -ForegroundColor Green -InformationAction Continue
178-
Test-Tooling
185+
if(-not $skip_requirements_check) {
186+
Write-InformationColored "Checking the software requirements for the Accelerator..." -ForegroundColor Green -InformationAction Continue
187+
Test-Tooling
188+
} else {
189+
Write-InformationColored "Skipping the software requirements check..." -ForegroundColor Yellow -InformationAction Continue
190+
}
179191

180192
Write-InformationColored "Getting ready to deploy the accelerator with you..." -ForegroundColor Green -InformationAction Continue
181193

0 commit comments

Comments
 (0)