Compartir a través de


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

Grant-AXModelStore

Grants the account that an Application Object Server instance is running as permissions to the model store in the Microsoft Dynamics AX database.

Syntax

Parameter Set: Default
Grant-AXModelStore -AOSAccount <String> [-Config <String> ] [-Database <String> ] [-SchemaName <String> ] [-Server <String> ] [ <CommonParameters>]

Detailed description

The Grant-AXModelStore cmdlet grants the account that an Application Object Server instance is running as permissions to the model store in the Microsoft Dynamics AX database. The account is granted EXECUTE rights for the appropriate stored procedures, and SELECT rights for the appropriate views. Use this cmdlet primarily when moving a model store to a new environment.

Parameters

-AOSAccount<String>

Specifies the account that an Application Object Server instance is running as.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-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

-SchemaName<String>

Specifies the schema to grant the AOS Account permissions to, if not the default schema.

Aliases

none

Required?

false

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 grants the account stored in the variable $Deployer rights to the model store in the SourceDatabase on the SourceDatabaseServer.

PS C:\>Grant-AXModelStore -AosAccount $Deployer -Server SourceDataBaseServer -Database SourceDataBase -Verbose
PS C:\>
                        

Copyright Microsoft Corporation. All rights reserved.