We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's:
- Reporting a bug
- Discussing the current state of the code
- Submitting a fix
- Proposing new features
- Becoming a maintainer
function Write-HostPadded { | |
[CmdletBinding()] | |
param ( | |
[Parameter(Position = 0, Mandatory = $true)] | |
[string] | |
$Text, | |
[Parameter(Position = 1, Mandatory = $false)] | |
[int] | |
$IndentLevel = 0, |
function Connect-ToAzureSubscription { | |
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory = $true, Position = 0)] | |
[ValidateNotNullOrEmpty()] | |
[guid]$TenantId, | |
[Parameter(Mandatory = $true, Position = 1)] | |
[ValidateNotNullOrEmpty()] | |
[guid]$SubscriptionId, |
# # Import the DotFiles | |
$helpersPath = Join-Path $PSScriptRoot "helpers" | |
Get-ChildItem -Path $helpersPath -Filter *.ps1 | ForEach-Object { . $_.FullName } |
function New-Folder { | |
param ( | |
[Parameter(Position = 0, Mandatory = $true)] | |
[string] | |
$Path | |
) | |
if (Get-Item $path -ErrorAction Ignore) { | |
Write-Verbose "Folder $path already exists." | |
} |
function New-File { | |
param ( | |
$Path | |
) | |
if (Get-Item $path -ErrorAction Ignore) { | |
Write-Verbose "File $path already exists." | |
} | |
else { | |
New-Item -Path $path -ItemType File | Out-Null |