Skip to content

Commit

Permalink
Aliases (#389)
Browse files Browse the repository at this point in the history
* Update AzOps.psd1

Add manifest aliases

* Update Debug.ps1

* Update Debug.ps1
  • Loading branch information
ljtill authored Jul 14, 2021
1 parent ad03b43 commit f8e1a70
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 30 deletions.
42 changes: 13 additions & 29 deletions scripts/Debug.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -50,15 +31,18 @@ Initialize-AzOpsRepository -Rebuild
# $module = Get-Module -Name AzOps

#
# Deployment
# Pull
#

# Invoke-AzOpsPull

#
# Push
#

# $tenantId = ""
# $managementId = ""
# $subscriptionId = ""

# $change = "A root/tenant root group ($tenantId)/azuredeploy.json"

# $module.Invoke( {
# Invoke-AzOpsChange -ChangeSet ""
# })
# Invoke-AzOpsPush -ChangeSet $change
2 changes: 1 addition & 1 deletion src/AzOps.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -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 = @()
Expand Down

0 comments on commit f8e1a70

Please sign in to comment.