Osama Bin Saleem
Osama Bin Saleem

Reputation: 899

Microsoft Azure Publishing from Visual Studio

I'm trying to deploy an app (bot) from Visual Studio to Azure cloud Service (classic). I chose the subscription and the cloud service. Then, the process is prompting me to create a storage account and my existing storage account is not being shown in the list. When I try to create the new storage account, I'm getting the following error as shown in the screenshot.

enter image description here

For reference I'm trying to deploy the bot from here. I've tried multiple examples from the repo but getting the same results.

Upvotes: 1

Views: 163

Answers (1)

Pravallika KV
Pravallika KV

Reputation: 8694

The reason for the error is that the storage account you have created in the new portal is likely under the resource manager deployment model, but you are using cloud service classic which is still under the classic deployment model.

I got the same error when I tried in my environment.

  • To resolve this, you need to create classic Storage account in the Portal=>Storage account(classic):

enter image description here

or you can create using the command:

New-AzureRmResource -ResourceName "" -ResourceGroupName $resourceGroupName -ResourceType "Microsoft.ClassicStorage/StorageAccounts" -Location "South Central US" -Properties @{ AccountType = "Standard_LRS" } -ApiVersion "2015-06-01" -Force

enter image description here

  • As mentioned in official MSDOC, Cloud Services Classic and Storage accounts is going to be deprecated completely, it is recommended to use Cloud Services extended support with Azure Resource Manager which allows to use your existing Storage accounts. Refer MSDOC.

enter image description here

  • Create Cloud Service(Extended Suppport) in Portal.
  • Configure Storage account during Cloud Service creation:

enter image description here

  • Right Click on Project=>Publish(extended Support) in Visual Studio.

  • Configure deployment with your cloud service:

enter image description here

enter image description here

  • Deployed Successfully:

enter image description here

  • Able to run the deployed application:

enter image description here

Upvotes: 1

Related Questions