Compartir a través de


Export-AXModelStore

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-AXModelStore

Exports a Microsoft Dynamics AX model store to an .axmodelstore file.

Syntax

Parameter Set: Default
Export-AXModelStore -File <FileInfo> [-Config <String> ] [-Database <String> ] [-Details] [-Server <String> ] [ <CommonParameters>]

Detailed description

The Export-AXModelStore cmdlet enables you to move metadata between environments by exporting a Microsoft Dynamics AX model store from the Microsoft Dynamics AX database to an .axmodelstore file. This cmdlet exports all model elements, layers, and models. The model store being exported remains in the original environment; it is not deleted.

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 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

-Details

Specifies that the layers and models in the model store be listed when the cmdlet is executed. The information returned includes Model ID, Layer, Model, Version, and Publisher.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-File<FileInfo>

Specifies the name of the file to export the model store to. The default file extension is .axmodelstore.

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.

  • None

    The cmdlet does not generate any output.

Examples

This example exports the Microsoft Dynamics AX model store from the Staging database to a file named Staging.axmodelstore, and returns details of models in the model store.

PS C:\>Export-AXModelStore -File Staging.axmodelstore -Database Staging -Details
ID Layer                        Model    Version                   Publisher
----- ----- ---------------------------- ---------- ---------------------------

17 Sys Foundation 6.0.899.0 Microsoft Corporation
18 Sys Foundation Labels 6.0.899.0 Microsoft Corporation
19 Sys Foundation Upgrade 6.0.899.0 Microsoft Corporation
15 Usr USR Model 1.0.0.0
PS C:\>
                        

How to: Export and Import a Model Store

Import-AXModelStore

Copyright Microsoft Corporation. All rights reserved.