Skip to content

Instantly share code, notes, and snippets.

pool:
vmImage: windows-latest
variables:
- template: vars-all.yml
- template: vars-dev.yml
steps:
# Use default for variable value (look for "$(..)"), but only for variable name "resourcename", and only warn
- task: validateVariablesTask@0
variables:
environmentname: dev
resourcename: $(name)-$(locationshort)-$(environmentname)
variables:
- template: azure-pipelines-vars.yml
variables:
myvar1: thisvalue
variables:
- group: my-var-group
variables:
name: resource1
location: northeurope
@bjh1977
bjh1977 / CreateAADApplication.ps1
Last active October 25, 2020 05:33
Create AAD Application, Azure Key Vault, Azure Key Vault Key, Rights to Vault from Application (created for use with Extensible Key Management Using Azure Key Vault (SQL Server))
param (
[string]$Version = $( Read-Host "Input version" ),
[string]$DomainName = $( Read-Host "Input domain name" ),
[string]$ApplicationName = $( Read-Host "Input application name" )
)
$ApplicationURI = $("https://$DomainName/$ApplicationName")
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"emailActionGroupName": {
"type": "string",
"metadata": {
"description": "Unique name (within the Resource Group) for the email Action group."
}
},
# Point this at your SSIS project directory:
$SearchFolder = 'C:\Users\Joe.Bloggs\source\repos\SSIS_Test1\SSIS_Test1'
$Results = @()
Get-ChildItem $SearchFolder -Filter '*.dtsx' | ForEach-Object {
$FileContent = Get-Content $_.FullName -raw
$FileName = $_.BaseName
#
# More info here: https://docs.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-directory-file-acl-powershell
#
Login-AzAccount
$ResourceGroupName = '<RESOURCE GROUP NAME>'
$StorageAccountName = '<STORAGE ACCOUNT NAME>'
$filesystemName = 'cont1'
$dirpath = "folderx/y/z1/"