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