Fixes #
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
# PSReadLine | |
Install-Module -Name PSReadLine -AllowClobber -Force | |
Set-PSReadLineOption -PredictionSource History | |
# Git | |
Import-Module posh-git | |
Add-PoshGitToProfile -AllHosts |
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
{ | |
"properties": { | |
"roleName": "App Configuration Data Contributor", | |
"description": "Allows access to create/read/modify App Configuration data", | |
"assignableScopes": [ | |
"/subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX" | |
], | |
"permissions": [ | |
{ | |
"actions": [], |
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
# utils: | |
filter timestamp {"$(Get-Date -UFormat '%T') | $_"} | |
$acrName='' | |
$acrMaxImageTags=3 | |
if ($(az acr list --query "[?name=='$acrName']" | ConvertFrom-Json).Length -gt 0) { | |
echo "Pruning old image tags from: $acrName" | timestamp |
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 the WIKI Updater Tasks extension https://marketplace.visualstudio.com/items?itemName=richardfennellBM.BM-VSTS-WIKIUpdater-Tasks | |
trigger: | |
branches: | |
include: | |
- main | |
paths: | |
include: | |
- docs/* |
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
using namespace System.Management.Automation | |
using namespace System.Management.Automation.Language | |
if ($host.Name -eq 'ConsoleHost') | |
{ | |
Import-Module PSReadLine | |
} | |
Import-Module posh-git |
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
{ | |
"properties": { | |
"roleName": "Automation Account Contributor", | |
"description": "Allows access to manage Azure Automation and its resources", | |
"assignableScopes": [ | |
"/subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX" | |
], | |
"permissions": [ | |
{ | |
"actions": [ |
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
@description('The Azure region into which the resources should be deployed') | |
param location string = resourceGroup().location | |
@description('The type of environment. This must be nonprod or prod') | |
@allowed([ | |
'nonprod' | |
'prod' | |
]) | |
param environmentType string |
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: | |
branches: | |
include: | |
- main | |
resources: | |
repositories: | |
- repository: templates | |
type: github | |
name: thepaulmacca/azure-pipelines-templates |
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
resource keyVault 'Microsoft.KeyVault/vaults@2019-09-01' existing = { | |
name: keyVaultName | |
} | |
@description('This is the built-in Key Vault Secret User role. See https://docs.microsoft.com/azure/role-based-access-control/built-in-roles#key-vault-secrets-user') | |
resource keyVaultSecretUserRoleRoleDefinition 'Microsoft.Authorization/roleDefinitions@2018-01-01-preview' existing = { | |
scope: subscription() | |
name: '4633458b-17de-408a-b874-0445c86b69e6' | |
} |
NewerOlder