AL icon indicating copy to clipboard operation
AL copied to clipboard

The extension could not be deployed because it is already deployed on another tenant

Open kylehardin6 opened this issue 7 years ago • 2 comments

This issue is a re-open attempt for issue 4265.

Using Freddy's navcontainerhelper tool, create a new docker container for mcr.microsoft.com/businesscentral/onprem:14.0.29537.0-na-ltsc2019 Publish our app with powershell Publish-NavContainerApp Publish from VSC

Error message is

The extension could not be deployed because it is already deployed on another tenant

kylehardin6 avatar May 15 '19 19:05 kylehardin6

Hi @kylehardin6. We still have no plans for fixing this unfortunately, we are focusing on the C/AL to AL transition. You can post this to aka.ms/bcideas and see if you get some traction there, our PMs regularily look at that forum and if enough people want this we will do it. Thanks

ghost avatar May 21 '19 06:05 ghost

The reason for this is, that the PowerShell cmdlet Publish-NavApp (which is called from Publish-NavContainerApp) is publishing in "production mode". I have just published a new version of NavContainerHelper (0.6.1.2), where Publish-NavContainerApp has an additional switch:

-useDevEndpoint

Which causes the app to be published using the dev endpoint. Note, when you use the dev endpoint, the app is always installed. You can specify syncmode to clean or forcesync if you do not want the standard synchronize behavior. If you are running multi-tenancy, you must specify -Scope Tenant and -Tenant tenantname -install and -skipverification parameters are ignored when using the devendpoint.

So, update NavContainerHelper and use -useDevEndpoint - then you should be able to publish using VSCode afterwards.

freddydk avatar Jun 06 '19 21:06 freddydk