NavContainerHelper.psd1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
#
# Module manifest for module 'PSGet_NavContainerHelper'
#
# Generated by: Freddy Kristiansen
#
# Generated on: 22-03-2018
#

@{

# Script module or binary module file associated with this manifest.
RootModule = 'NavContainerHelper.psm1'

# Version number of this module.
ModuleVersion = '0.2.7.3'

# Supported PSEditions
# CompatiblePSEditions = @()

# ID used to uniquely identify this module
GUID = 'ae60837a-fa30-4e28-a5ef-b8cd4cf6640a'

# Author of this module
Author = 'Freddy Kristiansen'

# Company or vendor of this module
CompanyName = 'Microsoft'

# Copyright statement for this module
Copyright = '(c) 2017 Freddy Kristiansen. All rights reserved.'

# Description of the functionality provided by this module
Description = 'PowerShell module'

# Minimum version of the Windows PowerShell engine required by this module
# PowerShellVersion = ''

# Name of the Windows PowerShell host required by this module
# PowerShellHostName = ''

# Minimum version of the Windows PowerShell host required by this module
# PowerShellHostVersion = ''

# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
# DotNetFrameworkVersion = ''

# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
# CLRVersion = ''

# Processor architecture (None, X86, Amd64) required by this module
# ProcessorArchitecture = ''

# Modules that must be imported into the global environment prior to importing this module
# RequiredModules = @()

# Assemblies that must be loaded prior to importing this module
# RequiredAssemblies = @()

# Script files (.ps1) that are run in the caller's environment prior to importing this module.
# ScriptsToProcess = @()

# Type files (.ps1xml) to be loaded when importing this module
# TypesToProcess = @()

# Format files (.ps1xml) to be loaded when importing this module
# FormatsToProcess = @()

# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
# NestedModules = @()

# Functions 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 functions to export.
FunctionsToExport = 'Compile-ObjectsInNavContainer', 'Convert-ModifiedObjectsToAl', 
               'Convert-Txt2Al', 'Copy-FileFromNavContainer', 
               'Copy-FileToNavContainer', 'Create-MyDeltaFolder', 
               'Create-MyOriginalFolder', 'Create-AadAppsForNav', 'Download-File', 
               'Enter-NavContainer', 'Export-ModifiedObjectsAsDeltas', 
               'Export-NavContainerDatabasesAsBacpac', 
               'Export-NavContainerObjects', 'Get-LocaleFromCountry', 
               'Get-NavContainerAppInfo', 'Get-NavContainerCountry', 
               'Get-NavContainerDebugInfo', 'Get-NavContainerEula', 
               'Get-NavContainerEventLog', 'Get-NavContainerGenericTag', 
               'Get-NavContainerId', 'Get-NavContainerImageName', 
               'Get-NavContainerIpAddress', 'Get-NavContainerLegal', 
               'Get-NavContainerName', 'Get-NavContainerNavVersion', 
               'Get-NavContainerOsVersion', 'Get-NavContainerPath', 
               'Get-NavContainers', 'Get-NavContainerSession', 
               'Get-NavContainerSharedFolders', 'Get-NavVersionFromVersionInfo', 
               'Import-DeltasToNavContainer', 'Import-NavContainerLicense', 
               'Import-ObjectsToNavContainer', 'Import-TestToolkitToNavContainer', 
               'Install-NavContainerApp', 
               'Install-NAVSipCryptoProviderFromNavContainer', 
               'New-CSideDevContainer', 'New-DesktopShortcut', 'New-NavContainer', 
               'New-NavContainerNavUser', 'New-NavContainerTenant', 
               'New-NavContainerWindowsUser', 'Open-NavContainer', 
               'Publish-NavContainerApp', 'Remove-DesktopShortcut', 
               'Remove-NavContainer', 'Remove-NavContainerSession', 
               'Remove-NavContainerTenant', 'Replace-NavServerContainer', 
               'Start-NavContainerAppDataUpgrade', 'Sync-NavContainerApp', 
               'Test-NavContainer', 'UnInstall-NavContainerApp', 
               'UnPublish-NavContainerApp', 'Wait-NavContainerReady', 
               'Write-NavContainerHelperWelcomeText'

# Cmdlets 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 cmdlets to export.
CmdletsToExport = @()

# Variables to export from this module
# 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 = @()

# DSC resources to export from this module
# DscResourcesToExport = @()

# List of all modules packaged with this module
# ModuleList = @()

# List of all files packaged with this module
# FileList = @()

# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
PrivateData = @{

    PSData = @{

        # Tags applied to this module. These help with module discovery in online galleries.
        # Tags = @()

        # A URL to the license for this module.
        LicenseUri = 'https://github.com/Microsoft/navcontainerhelper/blob/master/LICENSE'

        # A URL to the main website for this project.
        ProjectUri = 'https://www.github.com/microsoft/navcontainerhelper'

        # A URL to an icon representing this module.
        # IconUri = ''

        # ReleaseNotes of this module
        ReleaseNotes = '0.2.7.3
BugFix: ExportTxtSkipUnlicensed doesn''t get set in Export-NavContainerObject when using NavUserPassword authentication
Added -compile switch to Import-DeltasToNavContainer
Added -deltaFolder to Export-ModifiedObjectsAsDeltas
Increased timeout in Wait-NavContainerReady
 
0.2.7.1
Bugfix: Get-LocaleFromCountry returned blank for finnl and a lot of other finxx localizations
Add -settings on Windows Client shortcut to ensure correct clientsettings.config usage
Silence output of clearing modified flag
Add function Import-NavContainerLicense
Add parameters -sync and -install to Publish-NavContainerApp
Add filter parameter to Convert-ModifiedObjectsToAl and Export-ModifiedObjectsAsDeltas (default is Modified=1)
Support for inline scripts, URLs and .zip files in myscripts on New-NavContainer
Bugfix: Remove-NavContainer doesn''t remove entries in hosts file
Remove-NavContainer to fail if it cannot remove the containerFolder (open files etc.)
 
0.2.7.0
Bugfix: Convert-ModifiedObjectsAsAl didn''t include page extensions due to new parameter on Compare-NavApplicationObject
 
0.2.6.9
Bugfix: Use docker pull in New-NavContainer
 
0.2.6.8
Bugfix: New-NavContainer seems to hang
 
0.2.6.7
Add sync parameter on Publish-NavContainerApp
Added ExportTxtSkipUnlicensed to Export-NavContainerObjects
 
0.2.6.6
Add uninstall parameter on UnPublish-NavContainerApp
Add startup option to New-DesktopShortcut
Add generatesymbolreference=1 when Compiling objects using Compile-ObjectsInNavContainer
 
0.2.6.5
AzureSQL support for multitenancy
Add install parameter on Publish-NavContainerApp
 
0.2.6.4
Bugfix: Didn''t work with "old" images
 
0.2.6.2
Bugfix: Create-AadAppsForNAV wasn''t exported and was missing help
 
0.2.6.1
Check whether AAD is supported by Docker image
 
0.2.6.0
Add function Create-AadAppsForNav
Add parameter authenticationEmail to New-NavContainer
Remove default memory limit when running Windows Server as Docker host
 
0.2.5.2
Bugfix: Remove Test Tool shortcut when removing nav containers
Bugfix: Issue 89 CSide with external SQL and different port
 
0.2.5.1
Update Welcometext
 
0.2.5.0
Add support for multitenancy
Add switch -multitenant to new-navcontainer
Add function New-NavContainerTenant
Add function Remove-NavContainerTenant
Add function New-NavContainerNavUser
Add function New-NavContainerWindowsUser
Add function Get-NavContainerEventLog
Add function Export-NavContainerDatabasesAsBacpac
Change default filter in Compile-ObjectsInNavContainer to compiled=No
Add Shortcut for opening WebClient with Test Tool page if TestToolKit is included
 
0.2.2.4
Updated Readme
 
0.2.2.3
Add nav specific tags when running generic image
Check for tag tag when running fetching the tag (support generic image)
Check container name validity
Add test running generic image
 
0.2.2.2
Added switch for enabling SymbolLoading (dual development), default is off
 
0.2.2.1
Added function Import-TestToolkitToNavContainer
Added parameter -includeTestToolkit to New-NavContainer to automatically include TestToolkit objects
Include more information during start of new-navcontainer (and output the docker run command if it fails early)
Fix report preview when running docker images 0.0.4.3 or earlier
Bugfix CSide desktop shortcut was always set to windows auth
 
0.2.2.0
Bugfix: Copying files to/from containers didn''t work on Windows 10
Bugfix: Export-NavContainerObjects with a strange error if sharing the folder used for export directly
Export-NavContainerObjects now supports txt files and fob files -exportTo parameter replaces -exportToNewSyntax
Added Get-NavContainers to get all Nav containers
Add pipeline support for Remove-NavContainer and Remove-NavContainerSession (to allow Get-NavContainers | Remove-NavContainer)
Added Get-NavContainerDebugInfo
Show ContainerName in prompt in Enter-NavContainer
 
0.2.1.3
Bugfix: Do not clear modified flag when container is restarting
 
0.2.1.2
Bugfix: Azure VM detection looked in wrong folder
 
0.2.1.1
Bugfix: username can now contain spaces
-myscripts parameter now supports files or folders - all will be copied into the c:\run\my folder
 
0.2.1.0
Added -databaseServer, -databaseInstance, -databaseName, -databaseCredential to new-navcontainer (Support for External SQL Server - generic tag 0.0.4.0 or later)
Added -shortcuts to new-navcontainer (support for placing shortcuts on startmenu or avoid them)
Added -navDvdPath and -navDvdCountry (support for running microsoft/dynamics-nav:generic with a DVD mounted)
Moved the working folder from c:\demo to c:\programdata\navcontainerhelper
Added -alwaysPull to new-navcontainerhelper to always pull newer image if exists
 
0.2.0.1
Remove recreate-navservercontainer
Simplify replace-navservercontainer and allow empty imagename
 
0.2.0.0
Breaking change: Change all username/password parameters to PSCredential
Change -updatehost to automatically update hosts on container restart
Breaking change: Remove -updatehost from Remove-NavContainer (automatically handled)
 
0.1.2.1
Add generatesymbolreference=yes to CSide shortcut if EnableSymbolLoading is true
 
0.1.2.0
When specifying -includeCSide containers are started with EnableSymbolLoad
Refactored all functions into different script files
Only clear object modified flag if using localhost\SQLExpress
Specify server in sqlcmd
Export-NavContainerObjects doesn''t fail on NAV2016 and NAV2017 due to missing ExportToNewSyntax parameter
 
0.1.1.9
Added Start-NavContainerAppDataUpgrade function
 
0.1.1.8
Added ReleaseNotes a few versions back
 
0.1.1.7
Added ReleaseNotes to PowerShell Gallery
 
0.1.1.6
Added default values for additionalParameters and myScripts
 
0.1.1.5
Added -additionalParameters and -myScripts to New-CsideDevContainer and New-NavContainer
Added -useSSL switch to New-CsideDevContainer and New-NavContainer
 
0.1.1.4
Fixed a bug in Convert-ModifiedObjectsToAl, where conversion would end up with an empty AL folder
 
0.1.1.3
Secure passwords for creating containers
 
0.1.1.2 and earlier
Initial releases
use help on the individual functions to get info.
 
Container info functions
------------------------
Get-NavContainerNavVersion Get Nav version from Nav Container
Get-NavContainerImageName Get ImageName from Nav container
Get-NavContainerGenericTag Get Nav generic image tag from Nav container
Get-NavContainerOsVersion Get OS version from Nav container
Get-NavContainerLegal Get Legal link from Nav container
Get-NavContainerCountry Get Localization version from Nav Container
Get-NavContainerIpAddress Get IP Address to a Nav container
Get-NavContainerSharedFolders Get Shared Folders from a Nav container
Get-NavContainerPath Get the path inside a Nav container to a shared file
Get-NavContainerName Get the name of a Nav container
Get-NavContainerId Get the Id of a Nav container
Test-NavContainer Test whether a Nav container exists
 
Container handling functions
----------------------------
New-NavContainer Create new Nav container
New-CSideDevContainer Create new C/SIDE development container
Remove-NavContainer Remove Nav container
Get-NavContainerSession Create new session to a Nav container
Remove-NavContainerSession Remove Nav container session
Enter-NavContainer Enter Nav container session
Open-NavContainer Open Nav container in new window
Wait-NavContainerReady Wait for Nav Container to become ready
 
Object handling functions
-------------------------
Import-ObjectsToNavContainer Import objects from .txt or .fob file
Import-DeltasToNavContainer Merge delta files and Import objects
Compile-ObjectsInNavContainer Compile objects
Export-NavContainerObjects Export objects from Nav container
Create-MyOriginalFolder Create folder with the original objects for modified objects
Create-MyDeltaFolder Create folder with deltas for modified objects
Convert-Txt2Al Convert deltas folder to al folder
Export-ModifiedObjectsAsDeltas Export objects, create baseline and create deltas
Convert-ModifiedObjectsToAl Export objects, create baseline, create deltas and convert to .al files
 
App handling functions
----------------------
Publish-NavContainerApp Publish App to Nav container
Sync-NavContainerApp Sync App in Nav container
Install-NavContainerApp Install App in Nav container
Uninstall-NavContainerApp Uninstall App from Nav container
Unpublish-NavContainerApp Unpublish App from Nav container
Get-NavContainerAppInfo Get info about installed apps from Nav Container
Install-NAVSipCryptoProviderFromNavContainer Install Nav Sip Crypto Provider locally from container to sign extensions
 
Azure VM specific functions
---------------------------
Replace-NavServerContainer Replace navserver (primary) container
Recreate-NavServerContainer Recreate navserver (primary) container'


        # Prerelease string of this module
        # Prerelease = ''

        # Flag to indicate whether the module requires explicit user acceptance for install/update
        # RequireLicenseAcceptance = $false

        # External dependent modules of this module
        # ExternalModuleDependencies = @()

    } # End of PSData hashtable
    
 } # End of PrivateData hashtable

# HelpInfo URI of this module
# HelpInfoURI = ''

# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
# DefaultCommandPrefix = ''

}