2
votes

when I use New-AzureDeployment, i get exception like this:

BadRequest : The storage account named xxx does not exist in the current subscription

enter image description here

and indeed account storage4sp exist in my subscription enter image description here

Anything i am wrong ?

1
Try to create a "Classic" storage account and use that one please. The storage account you're using is "Resource Manager" storage account. - Gaurav Mantri
Have you also made sure your currently active subscription in PowerShell is correct? - juunas
any updates? do you fix the issue? - Fei Han

1 Answers

3
votes

According to your screenshot, we could find that your .cspkg file is stored in a RM storage account (not classic storage account), which could be the cause of the issue. As Gaurav Mantri said, you could try to store your .cspkg file in a classic storage account, which should resolve the issue.

enter image description here