Hi Team,
We are deploying a cloud service via “Deploy an Azure Cloud Service”. The package only contains the
cspkg and cscfg files.
But the log throw error when running
NotSpecified: Exception has been thrown by the target of an invocation
Deploying package: C:\Octopus\OctopusServer\PackageCache\feeds-teamcity-packaged\BestMed.DEVCloud@S1.0.12422.41@AF2417167C01EE43B508326C1F0752C7.nupkg
March 13th 2020 00:19:06Info
No settings that match provided variables were found.
March 13th 2020 00:19:06Info
Uploading package to Azure blob storage: ‘C:\Octopus\Work\20200312131709-16830-369\staging\BestMed.Server.Services.ccproj.cspkg’
March 13th 2020 00:19:08Info
Package uploaded to https://bestmedstoragedevops.blob.core.windows.net/octopuspackages/BestMed.Server.Services.ccproj.1.0.12422.41_48954e48bc3cd350f2f27375a56b65e9cbfdac34.cspkg
March 13th 2020 00:19:08Info
Config file: C:\Octopus\Work\20200312131709-16830-369\staging\ServiceConfiguration.Cloud.cscfg
March 13th 2020 00:19:36Error
NotSpecified: Exception has been thrown by the target of an invocation.
March 13th 2020 00:19:36Error
At C:\Octopus\Work\20200312131709-16830-369\staging\DeployToAzure.ps1:48 char:5
March 13th 2020 00:19:36Error
New-AzureDeployment -Slot $OctopusAzureSlot -Package $OctopusAzur ...
March 13th 2020 00:19:36Error
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
March 13th 2020 00:19:36Error
at CreateNewDeployment, C:\Octopus\Work\20200312131709-16830-369\staging\DeployToAzure.ps1: line 48
March 13th 2020 00:19:36Error
at CreateOrUpdate, C:\Octopus\Work\20200312131709-16830-369\staging\DeployToAzure.ps1: line 32
March 13th 2020 00:19:36Error
at , C:\Octopus\Work\20200312131709-16830-369\staging\DeployToAzure.ps1: line 63
March 13th 2020 00:19:36Error
at , : line 1
March 13th 2020 00:19:36Error
at , C:\Octopus\Work\20200312131709-16830-369\staging\Octopus.AzureContext.ps1: line 152
March 13th 2020 00:19:36Error
at , C:\Octopus\Work\20200312131709-16830-369\staging\Bootstrap.Octopus.AzureContext.ps1: line 2033
March 13th 2020 00:19:36Error
at , : line 1
March 13th 2020 00:19:36Error
at , : line 1
March 13th 2020 00:19:36Error
Script ‘C:\Octopus\Work\20200312131709-16830-369\staging\DeployToAzure.ps1’ returned non-zero exit code: 1
March 13th 2020 00:19:36Error
Running rollback conventions…
March 13th 2020 00:19:36Error
Script ‘C:\Octopus\Work\20200312131709-16830-369\staging\DeployToAzure.ps1’ returned non-zero exit code: 1
March 13th 2020 00:19:36Fatal
The remote script failed with exit code 1
March 13th 2020 00:19:36Fatal
The action Deploy Worker on bestmedservicedev failed
I supsect this is Powershell problem but we have both variable OctopusUseBundledAzureModules and OctopusUseBundledAzureCLI set to True to use Octopus powershell bundle.
We’re using the latest Octopus version 2019.13.7
Thanks