Change the base version or country of the used container
If you need to change the configuration of the containers used for build, development or test, e.g. because you want to change the major version, set up a specific version or change the localization, you take these steps:
- Click on File -> Open in VS Code
- Navigate to the base project folder of your AL project
- Navigate to the subfolder ".devops" and open the file "cosmo.json"
In that file, the basic setup is included as well as the artifact used when the container starts (see setup artifacts for more information on the latter). If you want to change the version or country, go to bcArtifacts
--> current
. There you will see entries like this:
"current": {
"version": "17",
"type": "onprem",
"country": "fr",
"storageAccount": "bcartifacts",
"sasToken": "",
"artifacts": [],
"devopsArtifacts": []
},
If you e.g. want to make sure you stay on release 17.2 and use the w1 version, you would change it like this:
"current": {
"version": "17.2",
"type": "onprem",
"country": "w1",
"storageAccount": "bcartifacts",
"sasToken": "",
"artifacts": [],
"devopsArtifacts": []
},
For the changes to take effect for your dev containers you need to take the following steps:
- Reload in the COSMO Alpaca view to make the extension aware of your changes
- Create a new container (see create container) and probably also a new launch config (see launch-json)
Any build or container created in the future will have the new configuration automatically. Existing container are not affected.