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
AZ_SUBSCRIPTION=<subscription name> | |
AZ_SUBSCRIPTION_ID=<subscription id> | |
ADO_ORG=<ADO Org Name> | |
ADO_PROJECT=<ADO Project Name> | |
KEYVAULTNAME=<Key Vault to link ADO Group with> | |
SC_NAME=<service connection name> |
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
#!/bin/bash | |
SC_NAME=${SC_NAME:-"Service Connection Name"} | |
KEYVAULTNAME=${KEYVAULTNAME:-"keyvault"} | |
AZ_SUBSCRIPTION=${AZ_SUBSCRIPTION:-"Azure Subscription"} | |
AZ_SUBSCRIPTION_ID=${AZ_SUBSCRIPTION_ID:-"Azure Subscription ID"} | |
ADO_ORG=${ADO_ORG:-"https://dev.azure.com/myorgname"} | |
ADO_PROJECT=${ADO_PROJECT:-"MyProject"} | |
SECRET_TEMPLATE=${SECRET_TEMPLATE:-"./secret-var-group.tpl"} | |
echo "STAGE: ${STAGE}" |
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
<# | |
Finds a good portion of possible dupliate dynamic groups in Azure AD. Will not find super complicated member filter duplicates but should find most common filters (like all PCs and the zillions of 'Subsidiary*' groups that InTune upgrades have created on the back end) | |
Requires the AzureADPreview module to work correctly! | |
More on dynamic membership in Azure AD: | |
https://docs.microsoft.com/en-us/azure/active-directory/active-directory-groups-dynamic-membership-azure-portal | |
#> | |
Remove-Module AzureAD -Force -ErrorAction:SilentlyContinue |
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
helmDefaults: | |
tillerless: true | |
tillerNamespace: platform | |
atomic: true | |
verify: false | |
wait: false | |
timeout: 600 | |
recreatePods: false | |
force: 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
count(kured_reboot_required) BY (instance) * ON (instance) GROUP_LEFT (node) kured_reboot_required > 0 |
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
# Login | |
az login --service-principal \ | |
--username "${SPNAPPID}" \ | |
--password "${SPNSECRET}" \ | |
--tenant "${TENANTID}" | |
# Add the cli extension | |
az extension add --name azure-devops | |
# Profit! |
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
MYVAR=somevalue1 | |
MYVAR2=somevalue2 |
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
## ado-variable-group.yml | |
# Use az cli to update or create an ADO variable group like a crazy person | |
# sourceFile is a generic .env file with entries in VAR=VALUE format. | |
parameters: | |
sourceFile: '' | |
groupName: '' | |
overwrite: 'true' | |
adoProject: '' | |
adoOrg: '' |
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
set -a | |
. "${SOURCEFILE}" | |
set +a |
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: ado-var-group-sync | |
trigger: | |
batch: true | |
branches: | |
include: | |
- master | |
paths: | |
include: | |
- config/* |