Closed brooksca closed 5 years ago
How are running the azuredeploy.json template? What docker image are you specifying?
Hey Freddy,
I'm using the https://aka.ms/getbc link to open the template in Azure. The image that is populated in the template is mcr.microsoft.com/businesscentral/onprem. Below are the parameters I'm using in the template:
Subscription: [My Subscription] Resource group: [My BCResourceGroup] Location: (US) East US 2
Vm Name: [Server name] Timezone Id: Eastern Standard Time Accept Eula: Yes Remote Desktop Access: [Client IP] Operating System: Windows Server 2019 with Containers Vm Size: Standard_D3_v2 Vm Admin Username: [Username] BC Admin Username: [Username] Admin Password: [Password] BC Docker Image: mcr.microsoft.com/businesscentral/onprem Assign Premium Plan: No Create Test Users: No License File Uri: Enable Task Scheduler: Yes Office365User Name: Office365Password: Create Aad Users: No Bing Maps Key: Run Windows Update: No Contact E Mail For Lets Encrypt: [Email] Auto Shutdown: Enabled Auto Shutdown Time: 23:00 Add Traefik: No
The default onprem image is W1, which contains international demo data. Have you tried to deploy the North American version? add :NA to the docker image name to get North America.
Added :NA to the end of the image, i.e. "BC Docker Image: mcr.microsoft.com/businesscentral/onprem:NA"
VM and auxiliary resources spun up correctly, but on the BC landing page, I'm seeing this:
Not sure what the cause of that is - typically the docker name should be lowercase, but I am pretty sure it doesn't matter. I would delete this and try again.
Actually it does matter - you need to specify :na (lowercase) - sorry.
Did you try with :na - did this fix the issue?
Sorry for the delay, Freddy. I'm not sure if the image that was downloaded was correct or not as the ports of the container are not mapping to the host ports. Docker on the host reports that the image is running, but shows no I/O activity and can't be killed or stopped even after restarting the Docker service and the host machine. There are no errors in the installation status, but something is getting hosed up during the installation. I've tried both with using the :na flag and without and I'm getting the same results.
Sounds like you have a Zombie container. https://freddysblog.com/2019/08/07/zombie-containers-skip-this-build/ One of the comments describes how to get rid of it.
Ended up deleting the Azure resources altogether and re-running the ARM template. The lower-case :na on the end of the container name worked, so we're all good. Thanks for all your help.
I've run the azuredeploy.json template several times and each time the currency is in GBP with VAT instead of USD and Tax. The region in MySettings is set to United States, but it still appears to be a United Kingdom setup. The extension we're developing will be deployed to US Business Central tenants, so it would be helpful to have a matching development environment. Any help would be appreciated.