Publish-AXWebComponent

Publish-AXWebComponent

Publishes web components to an Enterprise Portal site.

Syntax

Parameter Set: Default
Publish-AXWebComponent -WebSiteUrl <Uri> [-AOTNodePathList <String> ] [-IISReset] [-Image] [-ModifiedAfter <DateTime> ] [-Proxy] [ <CommonParameters>]


Detailed description

The Publish-AXWebComponent cmdlet enables you to deploy proxies, images, and web components to an Enterprise Portal site.

Parameters

-AOTNodePathList<String>

The relative path of the AOT Node from which to deploy an updated web component such as a control, page definition, module, or resource. The path begins with the Web node. For example, the path Web\Web Files\Page Definitions\FCMWorkOrdersListPage indicates the page named FCMWorkOrdersListPage.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-IISReset

Specifies that IIS will be restarted after the publish operation has been completed.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Image

Redeploys all images in the Resources node of the AOT to an Enterprise Portal site.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ModifiedAfter<DateTime>

Specifies that only files updated after a specific date be deployed. Can only be used with the Image and AOTNodePathList parameters.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Proxy

Deploys all of the proxies from Microsoft Visual Studio projects in the Microsoft Dynamics AX AOT that have the Deploy To EP property set to Proxies.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WebSiteUrl<Uri>

The URL of the site to deploy content to. The required format is

http:// serverName[:port]/ Sites/SiteName

is the name of the server on which Enterprise Portal is running.

SiteName is the name of the virtual server site to be updated.


Aliases

none

Required?

true

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 http://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

Example: Update proxies

The following example updates all of the proxies for the DynamicsAX site on the DEVEP server.


PS C:\>Publish-AXWebComponent -Proxy – WebSiteUrl http://DEVEP/Sites/DynamicsAX 

Example: Update images

The following example updates all of the images on the DynamicsAX site on the DEVEP server.


PS C:\>Publish-AXWebComponent -Image – WebSiteUrl http://DEVEP/Sites/DynamicsAX 

Example: Update a web component

The following example updates the WorkOrderDetails web control for the DynamicsAX site on the DEVEP server.


PS C:\>Publish–AXWebComponent –AOTNodePathList "Web\Web Files\Web Controls\WorkOrderDetails" – 
WebSiteUrl http://DEVEP/Sites/DynamicsAX

Example: Update web components by using a ModifiedAfter

The following example deploys all web controls that have been modified since yesterday by using the modifiedAfter parameter.



PS C:\>$webSite = "http://serverName[:port]/sites/SiteName" 
---
Publish-AXWebComponent -AOTNodePathList "\Web\Web Files\Web Controls" -WebSiteUrl $webSite -
ModifiedAfter $date –IISReset 
---



Copyright Microsoft Corporation. All rights reserved.
Show: