Use Get-BcArtifactUrl with -select Current to pull the most recent Business Central artifact URL when setting up a local development Docker container
Install and configure a Business Central development environment
AnswerCorrect answer: A - use Get-BcArtifactUrl -type sandbox -select Current to select the most recent Business Central artifact URL for the local development Docker container.
A company plans to set up a local Business Central Development Docker container. The environment will be used for testing new project ideas. You need to ensure that the most recent Business Central artifact URL has been selected. Which command should you use?
Get-BcArtifactUrl -type sandbox -select Current Correct Answer
62% of anonymous learners picked answer A.
Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
'Current' is a valid -select value and internally returns the latest artifact, so it is the right choice when the goal is 'the most recent' URL. 'Closest', 'NextMinor', and 'NextMajor' return a specific or future build, not necessarily the most recent current one.
The Get-BcArtifactUrl cmdlet from BcContainerHelper builds the artifact URL used to create a Business Central Docker container. The -select parameter controls which build is returned, and 'Current' resolves to the latest current release artifact for the specified type and country.
Do not pick NextMinor or NextMajor thinking they give the newest code; those point to pre-release or upcoming builds. Also note the default -select value is 'Latest', which is equivalent to 'Current' for the newest released artifact.
Community Discussion (10 comments)
AGTraining👍 11
should be Latest (which is the default) returns the most recent image in the list.
75ed3a2👍 8
To ensure the most recent Business Central artifact URL is selected for setting up a local Business Central Development Docker container, the command to use is Get-BcArtifactUrl-type sandbox-select Current (A). This PowerShell command retrieves the URL for the latest available Business Central artifact for a sandbox environment, ensuring that the Docker container is set up with the most up-to-date version for testing new project ideas. The-select Current parameter is crucial as it specifies that the current, or latest, version of the artifact is to be retrieved, as opposed to selecting a version based on other criteria such as Closest, NextMinor.
leoizgon👍 1Selected: A
Get-BcArtifactUrl -type sandbox -select Current
intentando👍 1Selected: A
According to power shell help: select <String> All or only the latest (Default Latest): - All: will return all possible urls in the selection - Latest: will sort on version, and return latest version - Closest: will return the closest version to the version specified in version (must be a full version number) - SecondToLastMajor: will return the latest version where Major version number is second to Last (used to get Next Minor version from insider) - Current: will return the currently active sandbox release - NextMajor: will return the next major sandbox release (will return empty if no Next Major is available) - NextMinor: will return the next minor sandbox release (will return NextMajor when the
examenesArb👍 1Selected: A
Current is the Last version
e3b13ec👍 1Selected: A
A, closest requires a you to supply a full version number, then it will return the closes version But we want the newest, so it is A
mohsens👍 2
A, closest requires a you to supply a full version number, then it will return the closes version
08d9d8c👍 1Selected: A
To ensure that the most recent Business Central artifact URL has been selected, you should use: A. Get-BcArtifactUrl -type sandbox -select Current This command will retrieve the most recent artifact URL for the sandbox environment.
danielkace28👍 3Selected: B
B. Get-BcArtifactUrl -type sandbox -select Closest
xdimidrolx👍 3
The correct answer is A. Get-BcArtifactUrl -type sandbox -select Current. The Microsoft documentation and community resources indicate that the -select Current option is designed to fetch the latest available artifacts. Here is an excerpt from the documentation: powershell Copy code Get-BcArtifactUrl -type sandbox -select Current
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Log in to comment, report an error, or add a note about this question.
Expert Analysis
Why the Answer Is Correct
Option A is correct because -select Current selects the current (most recent) Business Central artifact URL for the sandbox type, which is exactly what the scenario requires for a local dev container. The BcContainerHelper implementation treats 'Current' as a call to -select Latest, so it returns the newest released artifact rather than a future or closest match. This makes A the direct fit for the 'most recent artifact URL' requirement.
Why the Other Options Are Wrong
Option B (Closest) returns the version closest to a version you supply and is not the most recent by default, so it does not guarantee the newest artifact. Option C (NextMinor) and Option D (NextMajor) target upcoming minor or major preview builds, not the most recent released artifact, and are wrong for a stable dev container. Community voting also favors A, with 63 votes versus 38 for B.
Community Comment Notes
AGTraining notes that the default behavior returns the most recent image, and 75ed3a2 explains that -select Current returns the last version, aligning with the requirement.