This section describes the steps required to deploy a mobile website, which is used on the Mobile Clients.
You have completed mobile setup for D365FO, as described in the section above.
There are two deployment scenarios. Use the scenario that applies to your company.
The first time you deploy a mobile website, follow the steps described in the four articles below in sequential order:
When you create Azure resources, we recommend that you create a dedicated resource group for each purpose (example: one resource group for development and test, and one resource group for production).
If you upgrade a mobile website from version 2008.0 or a previous version, do the following:
An Azure storage account is required for interfacing with Dynamics 365 for Finance and Operations environments. The storage account is used as a temporary storage when uploading attachments from the mobile devices, such as images and pdf files. The storage account is only required if you want to manage large files on the Mobile Client.
If you're going to use attachments that are less than 20 MB in size per file, skip this section. You only need to create an Azure storage account if you expect to use attachments with a file size larger than 20 MB per file on the Mobile Client.
For additional information about Azure Blob storage setup and file size limitations, refer to the "appSettings" table and the text below the table in the article Configure the mobile site. The following app settings must be left blank if you skip the setup in this section:
For DEV and TEST purposes, the General-purpose Azure storage account that is deployed with the Dynamics 365 for Finance and Operations environment can be used. Typically, the storage account can be identified by the resource group associated with the Azure environment.
The Azure installation consists of an Azure client deployment package. The deployment package is installed on an Azure website, which is connected to the application registration.
Before you set up the Azure mobile site for the Mobile Client, you must first make a web application registration. The Azure web application registration ensures that the Mobile Client web app has security permissions to access Dynamics 365 for Finance and Operations.
Some steps regarding creating a web application registration require that you're set up as an 'Azure Global Administrator'.
For more information on how the Mobile Client is integrated with the Azure Active Directory, refer to this article from Microsoft: https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app.
When you've set up the Azure mobile site, created the web application registration, and uploaded the mobile deployment files, next step is to upload the Mobile Client application files.
App setting | Example value | Description |
---|---|---|
ax7Url |
|
The URL for the Dynamics 365 for Finance |
ax7ClientId |
|
This ID is the application ID of your App registration, and it can be found in the Azure portal by navigating to Microsoft Azure Portal > Azure Active Directory > App registrations > Application ID. Refer to the last step (step 10) in the section Web application registration. |
axDomain | <add key="axDomain" value="contoso.com" /> |
Define the Active Directory domain name for the users |
ax7Storage AccountName |
See screenshot below. |
An Azure Blob Storage account name. Values are stored in Azure Portal > Storage Accounts For more information on how to create a storage account, |
ax7Storage AccountKey |
See screenshot below. |
An Azure Blob Storage account key. It is recommended Values are stored in Azure Portal > Storage Accounts |
If the settings 'ax7StorageAccountName' and 'ax7StorageAccountKey' are left blank, there is a limitation of 18-20 MB per file. The limitation is set by the IIS service running Dynamics 365 for Finance and Operations. We recommend that you do not adjust these settings in a running environment.
When running an on-premise environment, the value of the 'ax7Url' setting will be similar to "https://d365onprem.myhost.com/namespaces/AXSF".
Furthermore, the settings for 'ax7StorageAccountName' and 'ax7StorageAccountKey' should be left blank on an on-premise installation because files are not actually stored in an Azure Blob store. As stated above, the result is a limitation regarding the size of files, which can be sent to and from Dynamics 365 for Finance and Operations, of 18-20 MB per file.
We recommend that you do not change the parameters regarding attachment size shown in the table below.
system.web and system.webServer
Parameter | Default value | Description |
---|---|---|
maxRequestLength | 134217728 |
The maximum allowed size of attachments sent from the Mobile Client in bytes. |
maxAllowedContentLength | 134217728 |
The maximum allowed size of attachments sent from the Mobile Client in bytes. |
The fields maxRequestLength and maxAllowedContentLength, described in the table above, can be edited in configuration > system.web > httpRuntime @maxRequestLength and configuration > system.webServer > security > requestFiltering > requestLimits @maxAllowedContentLength.
Ensure that the webmanifest file type is enabled in configuration > system.webServer > staticContent:
<remove fileExtension=".webmanifest"/>
<mimeMap fileExtension=".webmanifest" mimeType="application/manifest+json" />
Example: If it's installed in the root directory, /<scope>index.html should be /index.html. If it's installed in am_prod, /<scope>index.html should be /am_prod/index.html.
Use an ftp client with the specified credentials and URL, as described in the article Add the Azure app, to upload the mobile client application files.
The files to be uploaded are located in the .zip file.
This article describes how you can test the connection from the Mobile Client to Dynamics 365 for Finance and Operations.