-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: PowerShell formatting - 4 spaces tab alignment (#2471)
## Description Disable `editor.detectIndentation` vscode setting for PowerShell files to allow 4 spaces tab to be effective Reformat all .ps1 files > Note: only contains formatting changes ## Pipeline Reference <!-- Insert your Pipeline Status Badge below --> | Pipeline | | -------- | | [](https://github.com/eriqua/bicep-registry-modules/actions/workflows/avm.res.network.nat-gateway.yml) | | [](https://github.com/eriqua/bicep-registry-modules/actions/workflows/avm.res.compute.virtual-machine-scale-set.yml) | | [](https://github.com/eriqua/bicep-registry-modules/actions/workflows/avm.res.analysis-services.server.yml) | ## Type of Change <!-- Use the checkboxes [x] on the options that are relevant. --> - [x] Update to CI Environment or utilities (Non-module affecting changes) - [ ] Azure Verified Module updates: - [ ] Bugfix containing backwards-compatible bug fixes, and I have NOT bumped the MAJOR or MINOR version in `version.json`: - [ ] Someone has opened a bug report issue, and I have included "Closes #{bug_report_issue_number}" in the PR description. - [ ] The bug was found by the module author, and no one has opened an issue to report it yet. - [ ] Feature update backwards compatible feature updates, and I have bumped the MINOR version in `version.json`. - [ ] Breaking changes and I have bumped the MAJOR version in `version.json`. - [ ] Update to documentation ## Checklist - [ ] I'm sure there are no other open Pull Requests for the same update/change - [ ] I have run `Set-AVMModule` locally to generate the supporting module files. - [ ] My corresponding pipelines / checks run clean and green without any errors or warnings <!-- Please keep up to date with the contribution guide at https://aka.ms/avm/contribute/bicep --> --------- Co-authored-by: Alexander Sehr <[email protected]>
- Loading branch information
1 parent
c853198
commit 1ccb706
Showing
42 changed files
with
2,978 additions
and
2,977 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 26 additions & 26 deletions
52
avm/ptn/finops-toolkit/finops-hub/modules/scripts/Start-Triggers.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
Param( | ||
[switch] $Stop | ||
[switch] $Stop | ||
) | ||
# Init outputs | ||
$DeploymentScriptOutputs = @{} | ||
|
||
if (-not $Stop) { | ||
Start-Sleep -Seconds 10 | ||
Start-Sleep -Seconds 10 | ||
} | ||
|
||
# Loop through triggers | ||
$env:Triggers.Split('|') ` | ||
| ForEach-Object { | ||
$trigger = $_ | ||
if ($Stop) { | ||
Write-Host "Stopping trigger $trigger..." -NoNewline | ||
$triggerOutput = Stop-AzDataFactoryV2Trigger ` | ||
-ResourceGroupName $env:DataFactoryResourceGroup ` | ||
-DataFactoryName $env:DataFactoryName ` | ||
-Name $trigger ` | ||
-Force ` | ||
-ErrorAction SilentlyContinue | ||
} else { | ||
Write-Host "Starting trigger $trigger..." -NoNewline | ||
$triggerOutput = Start-AzDataFactoryV2Trigger ` | ||
-ResourceGroupName $env:DataFactoryResourceGroup ` | ||
-DataFactoryName $env:DataFactoryName ` | ||
-Name $trigger ` | ||
-Force | ||
} | ||
if ($triggerOutput) { | ||
Write-Host 'done' | ||
} else { | ||
Write-Host 'failed' | ||
} | ||
$DeploymentScriptOutputs[$trigger] = $triggerOutput | ||
$trigger = $_ | ||
if ($Stop) { | ||
Write-Host "Stopping trigger $trigger..." -NoNewline | ||
$triggerOutput = Stop-AzDataFactoryV2Trigger ` | ||
-ResourceGroupName $env:DataFactoryResourceGroup ` | ||
-DataFactoryName $env:DataFactoryName ` | ||
-Name $trigger ` | ||
-Force ` | ||
-ErrorAction SilentlyContinue | ||
} else { | ||
Write-Host "Starting trigger $trigger..." -NoNewline | ||
$triggerOutput = Start-AzDataFactoryV2Trigger ` | ||
-ResourceGroupName $env:DataFactoryResourceGroup ` | ||
-DataFactoryName $env:DataFactoryName ` | ||
-Name $trigger ` | ||
-Force | ||
} | ||
if ($triggerOutput) { | ||
Write-Host 'done' | ||
} else { | ||
Write-Host 'failed' | ||
} | ||
$DeploymentScriptOutputs[$trigger] = $triggerOutput | ||
} | ||
|
||
if ($Stop) { | ||
Start-Sleep -Seconds 10 | ||
Start-Sleep -Seconds 10 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.