Rediger

Del via


Development and build VMs that don't allow admin access FAQ

Note

Community interest groups have now moved from Yammer to Microsoft Viva Engage. To join a Viva Engage community and take part in the latest discussions, fill out the Request access to Finance and Operations Viva Engage Community form and choose the community you want to join.

This article provides answers to frequently asked questions (FAQ) about virtual machines (VMs) that don't allow administrator access.

How can I install a deployable package?

Whenever possible, use Microsoft Dynamics Lifecyle Services (LCS) to install a deployable package. You can install a deployable package by using the -devinstall option. Remember that this option requires manual database synchronization.

For more information about how to install a deployable package, see Install deployable packages from the command line.

Is the finance and operations website accessible when Visual Studio isn't running?

Yes, you can access the finance and operations website when Microsoft Visual Studio isn't running. Microsoft Internet Information Services (IIS) Express is an .exe file that runs as the user. However, when you close Visual Studio, the XPPC agent starts regular IIS (not IIS Express) before it closes. This behavior helps to ensure that you can remotely access the Application Object Server (AOS) instance and the website, even when you sign out or the machine is restarted. Many people use these developer machines as test machines, and they expect the AOS instance always to be running. However, IIS Express doesn't support this behavior.

What about the other services?

You can restart Microsoft Windows services such as Microsoft SQL Server, SQL Server Reporting Services (SSRS), SQL Server Integration Services (SSIS), SQL Server Analysis Services (SSAS), Batch, Financial reporting (formerly Management Reporter), and IIS. For IIS, you must restart the World Wide Web Publishing Service because you can't use iisreset.exe.

Can I clean up the service volume drive?

Yes, you have full access to the service volume drive. Therefore, you can clean up the monitoring data, and so on.

What are the alternatives to VMs that don't allow administrator access?

Both a Microsoft Azure environment on a private Azure subscription and a local virtual hard disk (VHD) allow administrator access. However, you must run Visual Studio as an administrator. This requirement applies because the administrator has access to these alternatives only through the administrator group, not explicitly.

Can I run Visual Studio as an administrator?

You're not required to run Visual Studio as an administrator. You can't use the Remote Desktop Protocol (RDP) to connect as an administrator to VMs that are under a Microsoft-owned Azure subscription. These VMs include the Tier 1 VM that is included in the subscription and Tier 1 add-on VMs. However, if you're connecting as an administrator to a VM that isn't under a Microsoft-owned subscription, you must still run Visual Studio as an administrator.

A "get latest" operation in Visual Studio failed because files are blocked by the AOS instance. How do I start and stop IIS?

You must use IIS Express. See the next question for more information.

What are the instructions for using IIS Express?

When you start IIS Express, an icon appears in the notification area (near the clock). When you right-click on the IIS Express icon, you see a list of all the running sites. You can stop IIS Express from that menu. Some actions in Visual Studio cause IIS Express to start, but you can also explicitly start IIS Express from Visual Studio by selecting Restart IIS Express on the Dynamics 365 menu.

To ensure that debugging functions properly with IIS Express and finance and operations Visual Studio projects, use the following Internet Options settings:

  • Go to Control Panel > Internet Options > Security tab > Internet, and clear the Enable Protected Mode check box.
  • Go to Control Panel > Internet Options > Security tab > Restricted sites, and clear the Enable Protected Mode check box.

Can I install additional development tools (such as Fiddler and Pepper)?

No, you can't install additional development tools.

Is there a way to run Windows PowerShell and command prompt commands as an administrator?

No, you can't run Windows PowerShell commands and commands at a prompt command as an administrator.

Is the Trace Parser supported?

Trace Parser currently requires the user to be an administrator. It's not supported on dev/test environments that Microsoft manages and doesn't allow administrator access.

Is the Admin user provisioning tool supported?

The Admin user provisioning tool currently requires the user to be an administrator. Typically, you use the Admin user provisioning tool to change the tenant of the environment, but that change isn't necessary. You can update the sign-in information in the database for the Admin user or any other user. You only need the SID and network alias (email address) from a user that can access the environment or another environment on the same tenant. In many cases, the SID and network alias come from the database that originally came with the environment. Run the following commands to get the correct SID and network alias from the source environment and update them in the target environment.

-- get value from source env.
select ID, SID, NETWORKALIAS from USERINFO where ID = 'Admin'

-- update value in target env.
update USERINFO set SID = 'new_SID', NETWORKALIAS = 'new_NetworkAlias' where ID = 'Admin'

Can the system be put into maintenance mode?

You can put the system into maintenance mode to change the license configuration. However, the procedure that's described in Maintenance mode isn't supported. Self-service support for maintenance mode in all environments will be added to LCS in the future. Until this support is available in LCS, follow these steps to put a system into maintenance mode.

  1. Establish an RDP connection to the developer machine.

  2. On the developer machine, sign in to SQL Server by using the credentials for the axdbadmin user from LCS. Then switch to the AXDB database, and run the following command.

    update SQLSYSTEMVARIABLES SET VALUE = 1 where PARM = 'CONFIGURATIONMODE'
    
  3. Restart the World Wide Web Publishing Service to reset IIS.

    After the service is restarted, the system is in maintenance mode.

  4. When you complete your maintenance mode activities, repeat steps 2 and 3, but set the value to 0 in step 2.

Can I install a license deployable package?

Development environments

Use LCS to install a license deployable package on any cloud development environment.

Build environments

LCS doesn't allow AOT or license deployable packages to be installed on build environments. To work around this limitation, remote into the VM and use the -devinstall option to install a license deployable package from the command line as described in the article, Install deployable packages from the command line. This command line install works as of platform update 17. If you're running on a platform version that's older than Platform update 17, and you don't have admin access to your build environment, create a support request and ask Microsoft to install your license deployable package.

Is licensing Visual Studio by entering a product key supported?

Visual Studio doesn't support entering a product key directly. Instead, use Visual Studio subscription licensing and sign in to Visual Studio by using the email address (user account) associated with the license. You can link a Visual Studio license to a user account by assigning an MSDN license to the user account or by assigning a license to the user account by using https://www.visualstudio.com/subscriptions-administration.

Can I upgrade my database to a new application release?

Starting with the February 2018 release of Lifecycle Services (LCS), you can execute the data upgrade package from the LCS environment page of a development environment. Executing the data upgrade package from LCS doesn't require you to be an administrator on the VM.

The process described in Upgrade data in development or demo environments runs the data upgrade package from the command line. This process requires you to be an administrator on the VM.

What do I need to know if I am developing for Commerce?

If you're developing for Dynamics 365 Commerce, see Development in cloud-hosted development environments without admin access for configuration steps and other important information.