Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.36 KB

index.md

File metadata and controls

35 lines (23 loc) · 1.36 KB

Welcome

This module contains a collection of general utility functions for PowerShell, Azure, Azure DevOps and Slack. See below for some scenarios

Release Notes

On Windows get Azure DevOps credentials (PAT) from Git repo

$credential = Get-AzureDevOpsCredential -Url 'https://[email protected]/!company!'

Register Azure DevOps private Artifacts Feed (package-source) & import modules from this Artifacts Feed

Register-AzureDevOpsPackageSource -Name 'MyCustomFeedName' -Url 'https://pkgs.dev.azure.com/!company!/_packaging/!feedname!/nuget/v2' -Credential $credential
Import-AzureDevOpsModules -PackageSource 'MyCustomFeedName' -Modules @('module1','module2') -Credential $credential -Latest

Publish Package to private Azure DevOps Artifacts Feed

Publish-PackageToAzureDevOps -ModuleName 'MyModule' -ModulePath './Output' -Feedname 'MyCustomFeedName' -FeedUrl 'https://pkgs.dev.azure.com/!company!/_packaging/!feedname!/nuget/v2' -AccessToken 'sasasasa'

Get Secrets from Azure Keyvault

$Tokens = @{}
Add-TokensFromAzureKeyVault -Vault 'MyVaultName' -Tokens $Tokens -SubscriptionId 'mySubscriptionId'

Send message to Slack

See here