powershell - How to force Azure Storage Account as classic -


we built infrastructure , application deployment framework using azure resource manager , templates. in order deploy cloud service, required first setup azure storage account. of recently, accomplished running:

switch-azuremode azureresourcemanager  new-azurestorageaccount -resourcegroupname $resourcegroupname -storageaccountname $storageaccountname -location $locationname -type standard_lrs 

this create storage account new-azuredeployment cmdlet use deployment. far can remember, storage account created 1 labeled "classic" in ui. however, recent changes, storage account created using script above non-classic (v2). v2 storage account not recognized new-azuredeployment, , throws in powershell script:

new-azuredeployment : resourcenotfound: storage account 'teststorage' not found.

if manually create classic storage account in ui, can use deployment, , works fine.

so possible 1 of following:

  1. force storage account created classic via powershell?
  2. instruct new-azuredeployment cmdlet use v2 storage account via powershell?

switch asm mode (the v1 api) , create storage account there:

switch-azuremode -name azureservicemanagement 

Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -