Use Get-BcArtifactUrl with -select Current to pull the most recent Business Central artifact URL when setting up a local development Docker container
Short answer
A Use Get-BcArtifactUrl -type sandbox -select Current to select the most recent Business Central artifact URL for the local development Docker container.
Question
Key Takeaways
'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.
Common mistake: 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.
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.
Official Reference
This link opens the official vendor documentation in a new tab.
Community Votes
62% of anonymous learners picked answer A. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 10 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 10
-
AGTraining 👍 11should be Latest (which is the default) returns the most recent image in the list.
-
75ed3a2 👍 8To 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.
-
xdimidrolx 👍 3The 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
-
danielkace28 👍 3 Answered BB. Get-BcArtifactUrl -type sandbox -select Closest
-
mohsens 👍 2A, closest requires a you to supply a full version number, then it will return the closes version
Show 5 more comments
-
intentando 👍 1 Answered AAccording 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
-
08d9d8c 👍 1 Answered ATo 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.
-
e3b13ec 👍 1 Answered AA, 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
-
leoizgon 👍 1 Answered AGet-BcArtifactUrl -type sandbox -select Current
-
examenesArb 👍 1 Answered ACurrent is the Last version
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.