Azure / Commercial-Marketplace-SaaS-Accelerator

A reference example with sample code for developers interested publishing transactable, Software as a-Service offers in the Microsoft commercial marketplace.
MIT License
193 stars 289 forks source link

Deployment Throwing exception when used via Local Power Shell #652

Open ikhlesh opened 8 months ago

ikhlesh commented 8 months ago

Describe the bug When trying to run the Deployment script "Deploy.ps1" the error is being thrown

ERROR: Decryption failed: [WinError -2146893813] Key not valid for use in specified state.. App developer may consider this guidance: https://github.com/AzureAD/microsoft-authentication-extensions-for-python/wiki/PersistenceDecryptionError Please report to us via Github: https://github.com/Azure/azure-cli/issues/20231 Get-AzureRmSqlServer : Method 'get_SerializationSettings' in type 'Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient' from assembly 'Microsoft.Azure.Commands.ResourceManager.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation. At E:\Work\Live Route\Client Documents And Proposal\Midis_Internal_Departments\Liveroute\SAAS Accelerator\Commercial-Marketplace-SaaS-Accelerator\deployment\Deploy.ps1:162 char:15

To Reproduce Steps to reproduce the behavior: Run the deployment script locally on your machine using below command. Please make sure to replace {} with actual values .\Deploy.ps1 -WebAppNamePrefix "ds02" -ResourceGroupForDeployment "{}" -PublisherAdminUsers "{}" -Location "{}"

Expected behavior The Resources must be created

Screenshots If applicable, add screenshots to help explain your problem. image

Environment (please complete the following information):

santhoshb-msft commented 8 months ago

Hi @ikhlesh - were you able to run Get-AzureRmSqlServer cmd in your local successfully?

ikhlesh commented 7 months ago

Hi @santhoshb-msft ,

Yes I am able to run, But when running for the project getting the below error image

santhoshb-msft commented 7 months ago

@ikhlesh - we tried repro but unable to do so. Also our recommendation is run in az cloud shell due to these dependencies.

ikhlesh commented 7 months ago

Hi @santhoshb-msft ,

I was trying to find out the actual issue and found some references stating that this could be caused by conflict of packages versions.

So Can you please share me below details to find the actual issue, this will help others also to precisely know what packages and version will be needed in future.

  1. Power Shell version you used.
  2. Packages Versions (Az/AzureRM) you have.