Invoke-InplacePublishing

DO NOT USE: This cmdlet is for internal use only.

Performs an in-place publishing by adjusting the current emit version to existing metadata.

Syntax

Invoke-InplacePublishing
      -DatabaseName <String>
      [-DatabaseServerName <String>]
      [-NodeName <String>]
      [-EmitVersionOverride <Int32>]
      [-Recompile]
      [-DebugIt]
      [-SkipTenantMounting]
      [-ServerInstance] <String>
      [-Force]
      [-ProgressAction <ActionPreference>]
      [<CommonParameters>]

Description

This cmdlet is for internal use only.

Examples

EXAMPLE 1

Invoke-InplacePublishing -DatabaseName BusinessCentral

This example will clone all existing metadata entries with the current emit version

EXAMPLE 2

Invoke-InplacePublishing -DatabaseName BusinessCentral -Recompile

This example will actually do a full compilation of all installed apps and will store the newly emitted metadata. If compilation fails the existing metadata will be cloned with the new emit version.

Parameters

-DatabaseName

Specifies the Business Central App database name.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-DatabaseServerName

Specifies the a Business Central database server name

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-DebugIt

Specifies a flag to start debugging the command-let

Type:SwitchParameter
Position:Named
Default value:False
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-EmitVersionOverride

An integer specifying what emit version to use overriding what the AL compiler supports. By overriding the emit version and invoking inplace publishing the NST will act retrieving csharp and xml metadata with this EmitVersionOverride

Type:Int32
Position:Named
Default value:-1
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Force

Forces the command to run without asking for user confirmation.

Type:SwitchParameter
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-NodeName

Specifies a node name used with forced installations to simulate Fabric based in-place publishing

Type:String
Position:Named
Default value:A26d6780-361a-4cc4-9a02-78cee22094b7
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-ProgressAction

A common PowerShell parameter that determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider. Learn more.

Type:ActionPreference
Aliases:proga
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Recompile

Specifies a flag to do a full in-place compilation of all installed apps, rather than cloning metadata

Type:SwitchParameter
Position:Named
Default value:False
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-ServerInstance

Specifies the Business Central Server instance.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-SkipTenantMounting

Specifies a flag whether to skip the default tenant mounting as in place publishing finishes.

Type:SwitchParameter
Position:Named
Default value:False
Required:False
Accept pipeline input:True
Accept wildcard characters:False

Inputs

System.String

By value and by property name: DatabaseName

System.String

By value and by property name: DatabaseServerName

System.String

By value and by property name: NodeName

System.Int32

By value and by property name: EmitVersionOverride

System.Management.Automation.SwitchParameter

By value and by property name: DebugIt

System.Management.Automation.SwitchParameter

By value and by property name: DebugIt

System.Management.Automation.SwitchParameter

By value and by property name: SkipTenantMounting

System.String