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
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 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 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 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 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 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 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 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 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' |
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
Name Value | |
---- ----- | |
OS Linux 4.9.214-1.ph2 #1-photon SMP Sun Mar 15 02:54:20 UTC 2020 | |
Platform Unix | |
PSVersion 6.2.3 | |
PSEdition Core | |
PSCompatibleVersions 1.0 2.0 3.0 4.0 5.0 5.1.10032.0 6.2.3 | |
WSManStackVersion 3.0 | |
PSRemotingProtocolVersion 2.3 | |
SerializationVersion 1.1.0.1 |
NewerOlder