web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Deploying BC with Powershell does not install the Web Components correctly

(0) ShareShare
ReportReport
Posted on by 5

Hi,

i have a very strange problem when deploying the BC 14 W1 Server (and other BC versions) with powershell script and config file, as part of our automation processes on Azure.

Namely, we have Azure Template that deploys the Azure Infrastructure as we need it, and then ends with Azure Custom Script Extension , which is a powershell script to fetch selected NAV/BC Version, unpack it and install it with default config file, which is also included with the downloaded files.

The Script works perfectly when running locally on the VM (what i mean is, if there is a Vm and then just run the script in ISE/POSH it works and installs everything as expected), 

the Strange Part is, when the script runs as part of the Azure Deployment Process -> It Installs the BC Server and Win Client correctly but there is no BC Web Instance being created. 

The Web Components are shown as installed if i run the BC Setup.exe file, but there is no Web Instance created. If i try to manually create Web instance with powershell, it says that the components are missing , even thoug they are shown as installed.

So basically, i have to manually uninstall the Web Components from the Setup.exe file, and then one more time Install them from there. Then i can create web Instance with Powershell.... which is very strange. 

Have you had the Problem before?

So locally the script works, but on azure it works with the missing Web Components?

The Scripts 40minutes to execute, so there is no TimeOut or something. 

I have tried to Force install the IIS Server with all the features with Powershell, before starting the BC installation process -> but still does not install.

I have tried with time out to wait the process to finish about 10minutes and then start thwe installation, but still no success. 

As i see it, there is only one soulution, at the end of the script to uninstall the Web Components with powershell and then to add them one more time, and create new Web BC instance

But then the Question is how can i add or remove components from BC Server with Powershell?

Just to be clear, i do not want to remove the BC web Server Instance (because there is none) but to remove the components as one would do manually with running the setup.exe and unchecking the web server components, and then to do the opposite and add the component one more time to the server.

Any ideas would be appreciated

Thanx in Advance

I have the same question (0)
  • Suggested answer
    Marco Mels Profile Picture
    on at
    RE: Deploying BC with Powershell does not install the Web Components correctly

    Hello,

    Typically you would need to go into the Azure VM and look for the failure message in either event log file or at the msinstaller log file that you can find in %temp%.

    What happens if you first install all prerequisites, reboot and  then run the PS script. Typically, if SQL Server is already preinstalled a reboot is required before you can install the .net component or Visual Studio tools (vstor_redist). Not consistently, but it does go wrong if the wrong order is choosen. Or modify the script that you at some time stop and restart the SQL Server service.

    Thanks.

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    RE: Deploying BC with Powershell does not install the Web Components correctly

    I don' know if I have understood correctly, but you can create a web server instance via Powershell by using the New-NAVWebServerInstance cmdlet.

    Here links with more details:

    docs.microsoft.com/.../configure-multiple-web-server-instances

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 4,197

#2
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 3,673

#3
Sumit Singh Profile Picture

Sumit Singh 2,907

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans