HodorNV / ALOps

ALOps
59 stars 24 forks source link

Microsoft! #579

Closed rdebath closed 1 year ago

rdebath commented 1 year ago

Describe the bug Microsoft are rejecting the Config key "LocalServiceApiKey" set by New-ALOpsExternalDeployer NAV Version : 21.0.46384.46844

I guess you're going to have to put everything in the URL. :-|

the output Also the complete output is necessary for us to see what is going on. Also use backtics:

PS C:\NAV\21.0.46384\NST> New-ALOpsExternalDeployer -ServerInstance BCNext
*** Import NAV/BC Management DLL's
*** Loading assemblies for ServiceTier [BCNext].
*** Loading assemblies from: [C:\nav\run\bcnext]
*** Linking ServerInstance [BCNext] to ALOps External Deployer [http://localhost:7040/]
WARNING: The new settings value will not take effect until you stop and restart the service.
Set-NAVServerConfiguration : The configuration setting 'LocalServiceApiKey' is not valid for Microsoft Dynamics 365 Business
Central Server.
At C:\Program Files\WindowsPowerShell\Modules\ALOps.ExternalDeployer\1.38\New-ALOpsExternalDeployer.ps1:22 char:5
+     Set-NAVServerConfiguration -ServerInstance $ServerInstance -KeyNa ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (0:Int32) [Set-NAVServerConfiguration], NavConfigurationException
    + FullyQualifiedErrorId : MicrosoftDynamicsNavServer$BCNext,Microsoft.Dynamics.Nav.Management.Cmdlets.SetNavServerConfiguration

PS C:\NAV\21.0.46384\NST>

Expected behavior No error message like earlier versions.

waldo1001 commented 1 year ago

Yeah, we know - they broke the External Deployer.

We're working on it!

AdminHodor commented 1 year ago

Dear @rdebath ,

Could you please check the latest version of "ALOps.ExternalDeployer". We some major changes to the way it works. From v1.45 the ExternalDeployer is compatibel with BC v21.

Install-Module -Name ALOps.ExternalDeployer -Force

Kind regards,

rdebath commented 1 year ago

Looking good, it's doing the job.

Tiny issue in that it needs an error message if the service name isn't found on service removal.

PS C:\NAV\21.0.46384\NST> Remove-ALOpsExternalDeployer -ServiceName ALOpsExternalDeployer$BCNext
PS C:\NAV\21.0.46384\NST> Remove-ALOpsExternalDeployer -ServiceName 'ALOpsExternalDeployer$BCNext'
*** Stopping existing service
*** Uninstall existing service

Name        : ALOpsExternalDeployer$BCNext
DisplayName : ALOps External Deployer - BCNext
State       : Stopped
PathName    : C:\Program Files\ALOps\ExternalDeployer\BCNext\ALOpsExternalDeployer.exe

[SC] DeleteService SUCCESS