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
| module "policy_set_key_vault_restrictions" { | |
| source = "./modules/policy_set" | |
| name = "keyVaultRestrictions" | |
| display_name = "Deny unsupported encryption mechanisms in Key Vault" | |
| description = "Deny unsupported encryption mechanisms in Key Vault" | |
| location = var.location | |
| set_definition_scope = data.azurerm_management_group.gothaernext.id | |
| policy_definition_builtin_ids = [ | |
| "/providers/Microsoft.Authorization/policyDefinitions/1151cede-290b-4ba0-8b38-0ad145ac888f", | |
| "/providers/Microsoft.Authorization/policyDefinitions/cee51871-e572-4576-855c-047c820360f0", |
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
| param( | |
| [Parameter(Mandatory)] | |
| [String]$Name | |
| ) | |
| Write-Output "Hello $Name" |
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
| trigger: | |
| - master | |
| - feature/* | |
| pr: | |
| branches: | |
| include: | |
| - '*' | |
| pool: |
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
| [cmdletbinding()] | |
| param ( | |
| # vCenter Name | |
| [Parameter(Mandatory)] | |
| [ValidateScript({Test-NetConnection -ComputerName $_ -Port 443})] | |
| [string] | |
| $vCenterName, | |
| # vCenter Credentials | |
| [Parameter(Mandatory)] |
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
| #region Cleanup Failed Pods | |
| # get all pods | |
| $allPods = (. kubectl get pods --all-namespaces -o json | ConvertFrom-Json).items | |
| # get failed pods | |
| $failedPods = $allPods | Where-Object {$_.status.phase -eq "Failed"} | |
| # remove failed pods | |
| $failedPods | ForEach-Object { | |
| . kubectl delete pod $($_.metadata.name) -n $($_.metadata.namespace) |
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
| [cmdletbinding()] | |
| param ( | |
| # vCenter Name | |
| [Parameter(Mandatory)] | |
| [ValidateScript({Test-NetConnection -ComputerName $_ -Port 443})] | |
| [string] | |
| $vCenterName, | |
| # vCenter Credentials | |
| [Parameter(Mandatory)] |
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
| #!/bin/bash | |
| external_url=$(wc -l < $1) | |
| password=$(wc -l < $2) | |
| # All actions based on https://docs.gitlab.com/ee/install/azure/ | |
| export config_file=/etc/gitlab/gitlab.rb | |
| # Replace External URL | |
| sed -i "s,external_url.*$,external_url $external_url,g" $config_file |
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
| [cmdletbinding()] | |
| param ( | |
| [Parameter(Mandatory=$false)] | |
| [String]$PackageName = "adobereader" | |
| ) | |
| function Test-Choco | |
| { | |
| [CmdletBinding()] | |
| param ( |
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
| [cmdletbinding(DefaultParameterSetName="Default",SupportsShouldProcess=$true)] | |
| param ( | |
| [Parameter(Mandatory,ParameterSetName="ByPackageName")] | |
| [String]$PackageName, | |
| [Parameter(Mandatory,ParameterSetName="ByGlobalList")] | |
| [Switch]$UpdateAll | |
| ) | |
| function Test-Choco |
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
| #Requires -Modules LogStream,Az.Storage,Microsoft.Graph.Intune | |
| [CmdletBinding()] | |
| param ( | |
| # Image File Path | |
| [Parameter(Mandatory)] | |
| [ValidateScript({Test-Path -Path $_})] | |
| [String] | |
| $ImagePath, | |
| # Select Wallpaper or Lockscreen |