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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Why do i keep getting "resource not available in the region" when trying to spin up a Business Central container on Azure ?

(0) ShareShare
ReportReport
Posted on by 15

I am using the following to spin up a Business Central container on Azure :


az container create -g $resourceGroup -n $containerName --image $imageName --os-type Windows --cpu 2 --memory 8
--ip-address public -e artifactUrl=$artifactUrl ACCEPT_EULA=Y USESSL=N LICENSEFILE=$licxFile MULTITENNANT=N
ClickOnce=Y publicDnsName=$dnsName --dns-name-label $containerName --ports 80 443 7048 7049 8080

the one parameter that is saying its not available is 

$imageName = "mcr.microsoft.com/businesscentral:10.0.19041.329"     <----Does this govern the OS Version used for Windows ?

also I am using 

$artifactUrl = Get-BcArtifactUrl -type sandbox -country us -select Latest to get the latest.

Does the windows version in ImageName need to be compatible with the artifacturl  ?

I dont want to vreat a VM because i need a number of users to be able to access the container.

I have the same question (0)
  • Marco Mels Profile Picture
    on at

    Hello,

    docs.microsoft.com/.../container-instances-troubleshooting

    Thanks.

  • KarenSaunders Profile Picture
    15 on at

    The article doesnt really explain how one is to determine what the image name is ?

    How do I know what to put for the Business Central Sandbox image on Windows ?

    And is the artifacturl the image ?

  • Suggested answer
    Mohamad Vajid Profile Picture
    on at

    Hello,
    Are you using docker to create the container?

    If you are using the BcContainerHelper module with Docker, please post your request in the Github repo here:
    Issues · microsoft/navcontainerhelper · GitHub

  • Suggested answer
    Mohamad Vajid Profile Picture
    on at

    Also..

    freddysblog.com/.../

    freddysblog.com/.../

  • KarenSaunders Profile Picture
    15 on at

    Hello,

    I am new to all of this and trying to work it out.. I am confused with the $imageName . and $artifacturl. Are they related in any way ? I have tried following some examples but with no luck. All i want is to spin up a Business Central container in Azure, not a VM because i need a number of people to connect for development and a VM will require certificates .  Also i want an image that wont give me the error , it is outdated ?  

    The script I am using is as follow:

    $imageName = "mcr.microsoft.com/businesscentral:10.0.19042.630";

    $location = "westus"

    $dnsName = "d365bcrg1.westus.azurecontainer.io"

    $artifactUrl = Get-BCArtifactUrl -version 16.2 -country us -select Latest

    az container create -g RG1 -n d365bcrg1 --image $imageName

    -- os-type Windows --cpu 2  --memory 16 --ip-address public -e

     artifactUrl=$artifactUrl ACCEPT_EULA=Y USESSL=N ClickOnce=Y

      publicDnsName=$dnsName --dns-name-label d365bcrg1 --ports 80 443 7046

      7048 7049 8080

    Your input would be greatly appreciated as to whether the above script will work or needs any changes .

    Thankyou

  • Suggested answer
    Mohamad Vajid Profile Picture
    on at

    Hi,

    This community article will provide some further guidance when using ACI for Business Central:
    https://demiliani.com/2020/07/03/creating-a-dynamics-365-business-central-docker-container-with-artifacts-on-azure-container-instances/

    Did you try without imagename? It should pull a generic image by default.

  • KarenSaunders Profile Picture
    15 on at

    I did try without iamgename but its says its a required parameter ?  This is the exact error:

         az : error: the --image argument is required unless specified with a passed in file.

    what is the name for a generic image , i have tried what is mentioned here:

    hub.docker.com/.../microsoft-businesscentral

  • Suggested answer
    Mohamad Vajid Profile Picture
    on at

    Hello,

    Sorry I was on holidays.

    I think it doesn't work because images for businesscentral are no longer published or removed since moving to artifacts (which is used by BcContainerHelper module). With artifacts, a generic image is downloaded and the selected artifact on top of that.

    With az, you may be able to create your own image first using az image create see here: az image | Microsoft Docs
    Once you have an image then you can likely create a container using that image and the passing the other variables such as $artifact. I was able to successfully run az container crate this way but it failed later in the process for another unrelated error.

    Please note that az container with Business Central has not been tested, nor supported. For BC containers, I suggest you look at BcContainerHelper module instead. (https://github.com/microsoft/navcontainerhelper)

    Hope this helps.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,238

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 630

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans