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
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 |
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
variables: | |
environmentname: dev | |
resourcename: $(name)-$(locationshort)-$(environmentname) | |
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
variables: | |
name: resource1 | |
location: northeurope | |
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
variables: | |
- group: my-var-group |
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
variables: | |
myvar1: thisvalue |
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
variables: | |
- template: azure-pipelines-vars.yml |
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
{ | |
"$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." | |
} | |
}, |
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
# 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 | |
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
# | |
# 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/" |
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
[uri] $BlobURI = New-AzureStorageBlobSASToken -Context $context -CloudBlob $blob.ICloudBlob -Permission r -ExpiryTime $ExpiryTime -FullUri | |
New-AzureRmAutomationModule -Name $ModuleName -ResourceGroupName $AutomationResourceGroupName -AutomationAccountName $AutomationAccountName -ContentLink $BlobUri |
NewerOlder