Cloud service is not uploading when ussing RM Storage account

We’ve moved from Classic Storage account to RM ones - and after redeploy - i got an error from Octopus (it was not there before when I used Classic Storage).

I’m using Azure Account with “Use a Management Certificate” auth.

is it known issue?

Microsoft.WindowsAzure.CloudException: ResourceNotFound: The storage account 'featureteststorage' was not found.
December 12th 2016 23:31:19Error
   at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
December 12th 2016 23:31:19Error
   at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
December 12th 2016 23:31:19Error
   at Microsoft.WindowsAzure.StorageAccountOperationsExtensions.GetKeys(IStorageAccountOperations operations, String accountName)
December 12th 2016 23:31:19Error
   at Calamari.Azure.Integration.AzurePackageUploader.GetStorageAccountPrimaryKey(SubscriptionCloudCredentials credentials, String storageAccountName, String serviceManagementEndpoint) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari.Azure\Integration\AzurePackageUploader.cs:line 124
December 12th 2016 23:31:19Error
   at Calamari.Azure.Integration.AzurePackageUploader.Upload(SubscriptionCloudCredentials credentials, String storageAccountName, String packageFile, String uploadedFileName, String storageEndpointSuffix, String serviceManagementEndpoint) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari.Azure\Integration\AzurePackageUploader.cs:line 22
December 12th 2016 23:31:19Error
   at Calamari.Azure.Deployment.Conventions.UploadAzureCloudServicePackageConvention.Install(RunningDeployment deployment) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari.Azure\Deployment\Conventions\UploadAzureCloudServicePackageConvention.cs:line 44
December 12th 2016 23:31:19Error
   at Calamari.Deployment.ConventionProcessor.RunInstallConventions() in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Deployment\ConventionProcessor.cs:line 60
December 12th 2016 23:31:19Error
   at Calamari.Deployment.ConventionProcessor.RunConventions() in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Deployment\ConventionProcessor.cs:line 28
December 12th 2016 23:31:19Error
Running rollback conventions...
December 12th 2016 23:31:19Error
Microsoft.WindowsAzure.CloudException: ResourceNotFound: The storage account 'featureteststorage' was not found.
December 12th 2016 23:31:19Error
   at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
December 12th 2016 23:31:19Error
   at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
December 12th 2016 23:31:19Error
   at Microsoft.WindowsAzure.StorageAccountOperationsExtensions.GetKeys(IStorageAccountOperations operations, String accountName)
December 12th 2016 23:31:19Error
   at Calamari.Azure.Integration.AzurePackageUploader.GetStorageAccountPrimaryKey(SubscriptionCloudCredentials credentials, String storageAccountName, String serviceManagementEndpoint) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari.Azure\Integration\AzurePackageUploader.cs:line 124
December 12th 2016 23:31:19Error
   at Calamari.Azure.Integration.AzurePackageUploader.Upload(SubscriptionCloudCredentials credentials, String storageAccountName, String packageFile, String uploadedFileName, String storageEndpointSuffix, String serviceManagementEndpoint) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari.Azure\Integration\AzurePackageUploader.cs:line 22
December 12th 2016 23:31:19Error
   at Calamari.Azure.Deployment.Conventions.UploadAzureCloudServicePackageConvention.Install(RunningDeployment deployment) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari.Azure\Deployment\Conventions\UploadAzureCloudServicePackageConvention.cs:line 44
December 12th 2016 23:31:19Error
   at Calamari.Deployment.ConventionProcessor.RunInstallConventions() in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Deployment\ConventionProcessor.cs:line 60
December 12th 2016 23:31:19Error
   at Calamari.Deployment.ConventionProcessor.RunConventions() in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Deployment\ConventionProcessor.cs:line 50
December 12th 2016 23:31:19Error
   at Calamari.Azure.Commands.DeployAzureCloudServiceCommand.Execute(String[] commandLineArguments) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari.Azure\Commands\DeployAzureCloudServiceCommand.cs:line 97
December 12th 2016 23:31:19Error
   at Calamari.Program.Execute(String[] args) in Z:\buildAgent\workDir\14ffc968155e4956\source\Calamari\Program.cs:line 45
December 12th 2016 23:31:21Fatal
The remote script failed with exit code 100

Hi Alex,

Thanks for getting in touch.

After you moved from classic storage accounts to RM ones, did your deployment process also change to reflect these updated accounts?

We’re just wondering if the deployment process is still referencing the old classic storage account you were using previously

Is “featureteststorage” the account you’re expecting your deployment process to be using? ie. If you open your project’s deployment process, is this using the correct RM account information, or still referencing the old accounts?

Cheers
Mark

After digging into docs it turned out that for RM resources you require Account with Service principal auth - I did use the old account thus an issue.

I created Service Prncpl account and setup that in azure. Will try with new one.

Get Outlook for iOShttps://aka.ms/o0ukef