From f8e1a7029721ba986d0226909ce2bd8072b12a2c Mon Sep 17 00:00:00 2001 From: Lyon Till <158992+ljtill@users.noreply.github.com> Date: Wed, 14 Jul 2021 11:25:51 +0100 Subject: [PATCH] Aliases (#389) * Update AzOps.psd1 Add manifest aliases * Update Debug.ps1 * Update Debug.ps1 --- scripts/Debug.ps1 | 42 +++++++++++++----------------------------- src/AzOps.psd1 | 2 +- 2 files changed, 14 insertions(+), 30 deletions(-) diff --git a/scripts/Debug.ps1 b/scripts/Debug.ps1 index 9bc7f499..f47f5978 100644 --- a/scripts/Debug.ps1 +++ b/scripts/Debug.ps1 @@ -2,45 +2,26 @@ # Notes # -# This script has been converted to tabs -# when invoking the AzOpsChange cmdlet the -# git diff needs to include a tab otherwise -# the expression won't detect the file. - -# -# Preferences -# - -$ErrorActionPreference = "Stop" -#$VerbosePreference = "Continue" -#$DebugPreference = "Continue" - -# -# Context -# - - # # Config # Set-PSFConfig -FullName PSFramework.Message.Info.Maximum -Value 9 -#Set-PSFConfig -FullName AzOps.Core.State -Value "/workspaces/azops" -#Set-PSFConfig -FullName AzOps.Import.DoDotSource -Value $true -#Set-PSFConfig -FullName AzOps.Import.IndividualFiles -Value $true +# Set-PSFConfig -FullName AzOps.Core.State -Value "/workspaces/azops" +# Set-PSFConfig -FullName AzOps.Import.DoDotSource -Value $true +# Set-PSFConfig -FullName AzOps.Import.IndividualFiles -Value $true # # Import # -Import-Module ./src/AzOps.psd1 -Force +# Import-Module ./src/AzOps.psd1 -Force # # Initialize # -#Initialize-AzOpsEnvironment -Initialize-AzOpsRepository -Rebuild +Initialize-AzOpsEnvironment # # Internal @@ -50,7 +31,13 @@ Initialize-AzOpsRepository -Rebuild # $module = Get-Module -Name AzOps # -# Deployment +# Pull +# + +# Invoke-AzOpsPull + +# +# Push # # $tenantId = "" @@ -58,7 +45,4 @@ Initialize-AzOpsRepository -Rebuild # $subscriptionId = "" # $change = "A root/tenant root group ($tenantId)/azuredeploy.json" - -# $module.Invoke( { -# Invoke-AzOpsChange -ChangeSet "" -# }) \ No newline at end of file +# Invoke-AzOpsPush -ChangeSet $change \ No newline at end of file diff --git a/src/AzOps.psd1 b/src/AzOps.psd1 index 678e9900..a5e1e739 100644 --- a/src/AzOps.psd1 +++ b/src/AzOps.psd1 @@ -81,7 +81,7 @@ # VariablesToExport = @() # Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. - AliasesToExport = @() + AliasesToExport = 'Initialize-AzOpsRepository', 'Invoke-AzOpsChange' # DSC resources to export from this module # DscResourcesToExport = @()