다음을 통해 공유


Export-AXModel

Important

This content is archived and is not being updated. For the latest documentation, see Microsoft Dynamics 365 product documentation. For the latest release plans, see Dynamics 365 and Microsoft Power Platform release plans.

Export-AXModel

Exports a Microsoft Dynamics AX model to an .axmodel file.

Syntax

Parameter Set: Default
Export-AXModel -File <String> -Model <String> [-Config <String> ] [-Database <String> ] [-Key <String> ] [-ManifestFile <String> ] [-Server <String> ] [ <CommonParameters>]

Detailed description

The Export-AXModel cmdlet exports a Microsoft Dynamics AX model to an .axmodel file. Use this cmdlet to move models between environments and to strong-name sign a model file.

Parameters

-Config<String>

Specifies an Application Object Server (AOS) configuration to use to determine the model store database and server name. The default value is the currently active configuration. This parameter cannot be used with the -Database or -Server parameters. If no -Database, -Server, or -Config parameters are supplied, the default configuration is used.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Database<String>

Specifies the Microsoft Dynamics AX model store database. This parameter cannot be used with the -Config parameter. If the -Database parameter is specified without a -Server parameter, the default server value of "(local)" is used.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-File<String>

Specifies the name and location of the .axmodel file to create.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Key<String>

Specifies the strong-name key pair file to use to sign a model. To strong-name sign a model, you must use the Strong Name Tool (SN.exe) to generate a key pair file.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ManifestFile<String>

Specifies an XML file that identifies a model. Use the Get-AXModelManifest cmdlet with the -Xml parameter to output a sample manifest file.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Model<String>

Specifies the name of the model to export.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Server<String>

Specifies the server that hosts the Microsoft Dynamics AX model store database. This parameter can only be used with the -Database parameter--it cannot be used by itself.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, OutBuffer, OutVariable, WarningAction, and WarningVariable. For more information, see about_CommonParameters https://go.microsoft.com/fwlink/?LinkID=113216

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • None

    You cannot pipe input to this cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • ModelManifest

    Returns the model manifest class.

Examples

Example 1: Export a model

This example exports the Packaging model to the file Packaging.axmodel.

PS C:\>Export-AXModel -model Packaging -file c:\models\Packaging.axmodel

Example 2: Export a signed model

This example exports the Packaging model to the file PackagingSigned.axmodel, and signs it with the previously generated key file mykey.snk.

PS C:\>Export-AXModel -model Packaging -file c:\models\PackagingSigned.axmodel -key c:\keys\mykey.snk

How to: Export and Import a Model

Install-AXModel

Copyright Microsoft Corporation. All rights reserved.