This file contains hidden or 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
# Variable definitions | |
variable "proxmox_url" { | |
type = string # The URL of the Proxmox server in the format of https://<IP>:<PORT>/api2/json | |
} | |
variable "proxmox_username" { | |
type = string # The username to authenticate with the Proxmox server | |
} | |
variable "proxmox_password" { | |
type = string # The password to authenticate with the Proxmox server | |
} |
This file contains hidden or 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
configuration: | |
# Enable automatic expansion of bicep source files. | |
AZURE_BICEP_FILE_EXPANSION: true | |
# Enable automatic expansion of param files | |
AZURE_PARAMETER_FILE_EXPANSION: true |
This file contains hidden or 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
- task: ps-rule-assert@1 | |
displayName: 'PSRules Test' | |
inputs: | |
inputType: inputPath | |
inputPath: 'main.bicep' | |
modules: 'PSRule.Rules.Azure' | |
outputFormat: NUnit3 | |
outputPath: reports/ps-rule-results.xml |
This file contains hidden or 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
- task: AzureCLI@2 | |
displayName: 'Linter Test' | |
inputs: | |
azureSubscription: $(azureServiceConnection) | |
scriptType: pscore | |
scriptLocation: inlineScript | |
inlineScript: | | |
az bicep build -f main.bicep |
This file contains hidden or 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
# Define post parameters | |
$postParams=@{api_id=$apiId; api_key=$apiKey; site_id=$siteId} | |
Invoke-WebRequest -Uri https://my.imperva.com/api/prov/v1/sites/cache/purge -Method POST -Body $postParams |
This file contains hidden or 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
# Define post parameters | |
$postParams=@{api_id=$apiId; api_key=$apiKey} | |
Invoke-WebRequest -Uri https://my.imperva.com/api/prov/v1/sites/list -Method POST -Body $postParams -UseBasicParsing |
This file contains hidden or 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
# Creating idrac module folder | |
New-Item -Path "C:\scripts" -Name "idrac" -ItemType "directory" | |
# Copy idrac files to folder | |
Copy-Item -Path "C:\scripts\idrac.*" -Destination "c:\scripts\idrac" | |
# Register the Repository | |
Register-PSRepository -Name psqol -SourceLocation "\\svr14\psrepo\" -PublishLocation "\\svr14\psrepo\" -InstallationPolicy Trusted | |
# Publish Module to Repo |
This file contains hidden or 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
variables: | |
- group: 'PowerShellCodeSigning' | |
- name: majorVer | |
value: 1 | |
- name: minorVer | |
value: 0 | |
stages: | |
- stage: Sign_Code | |
displayName: 'Sign Code' |
This file contains hidden or 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
name: 'Sign PowerShell Code' | |
trigger: | |
- main | |
variables: | |
- group: 'PowerShellCodeSigning' | |
pool: | |
vmImage: 'windows-latest' |
This file contains hidden or 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
name: 'Check PowerShell Code' | |
trigger: | |
none | |
jobs: | |
- job: 'CheckCode' | |
displayName: 'Check Code' | |
pool: | |
vmImage: 'ubuntu-latest' |
NewerOlder