none
Resource Microsoft.ClassicStorage/storageAccounts/services/diagnosticSettings 'storagexczxzc1234/queue/storage' failed with message

    Question

  • Command: 

    New-AzureResourceGroup -Name "StorageTest" -Location "EastUS" -TemplateFile C:\azure-ps\Microsoft.ClassicStorage.0.4.0-preview.json -nameFromTemplate "storagexczxzc1234" -locationFromTemplate "EastUS" -accountType "Standard_LRS" -diagnosticsMetricsLevel "Warning" -diagnosticsApiVersion "2014-06-01" -diagnosticsMetricsRetention "P7D"

    Result:

    New-AzureResourceGroup : 12:57:50 PM - Resource Microsoft.ClassicStorage/storageAccounts/services/diagnosticSettings
    'storagexczxzc1234/queue/storage' failed with message 'No registered resource provider found for location 'eastus' and API version
    '2014-06-01' for type 'storageAccounts/services'. The supported api-versions and locations are '2014-06-01 (eastasia,southeastasia,eastus,e
    astus2,westus,northcentralus,southcentralus,centralus,northeurope,westeurope,japaneast,japanwest,brazilsouth,australiaeast,australiasouthea
    st,eastus2stage,northcentralusstage,,,,,,); 2014-04-01 (eastasia,southeastasia,eastus,eastus2,westus,northcentralus,southcentralus,centralu
    s,northeurope,westeurope,japaneast,japanwest,brazilsouth,australiaeast,australiasoutheast,eastus2stage,northcentralusstage,westus,centralus
    ,southcentralus,japaneast,japanwest,eastasia,southeastasia,australiaeast,australiasoutheast,eastus,eastus2,northcentralus,northeurope,weste
    urope,brazilsouth,,,,,); 2014-04-01-beta (eastasia,southeastasia,eastus,eastus2,westus,northcentralus,southcentralus,centralus,northeurope,
    westeurope,japaneast,japanwest,brazilsouth,australiaeast,australiasoutheast,eastus2stage,northcentralusstage); 2014-01-01 (eastasia,southea
    stasia,eastus,eastus2,westus,northcentralus,southcentralus,centralus,northeurope,westeurope,japaneast,japanwest,brazilsouth,australiaeast,a
    ustraliasoutheast,eastus2stage,northcentralusstage,,,)'.'
    At line:1 char:1
    + New-AzureResourceGroup -Name "StorageTest" -Location "EastUS" -TemplateFile C:\a ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [New-AzureResourceGroup], Exception
        + FullyQualifiedErrorId : Microsoft.Azure.Commands.Resources.NewAzureResourceGroupCommand
    
    New-AzureResourceGroup : 12:57:50 PM - Resource Microsoft.ClassicStorage/storageAccounts/services/diagnosticSettings
    'storagexczxzc1234/blob/storage' failed with message 'No registered resource provider found for location 'eastus' and API version
    '2014-06-01' for type 'storageAccounts/services'. The supported api-versions and locations are '2014-06-01 (eastasia,southeastasia,eastus,e
    astus2,westus,northcentralus,southcentralus,centralus,northeurope,westeurope,japaneast,japanwest,brazilsouth,australiaeast,australiasouthea
    st,eastus2stage,northcentralusstage,,,,,,); 2014-04-01 (eastasia,southeastasia,eastus,eastus2,westus,northcentralus,southcentralus,centralu
    s,northeurope,westeurope,japaneast,japanwest,brazilsouth,australiaeast,australiasoutheast,eastus2stage,northcentralusstage,westus,centralus
    ,southcentralus,japaneast,japanwest,eastasia,southeastasia,australiaeast,australiasoutheast,eastus,eastus2,northcentralus,northeurope,weste
    urope,brazilsouth,,,,,); 2014-04-01-beta (eastasia,southeastasia,eastus,eastus2,westus,northcentralus,southcentralus,centralus,northeurope,
    westeurope,japaneast,japanwest,brazilsouth,australiaeast,australiasoutheast,eastus2stage,northcentralusstage); 2014-01-01 (eastasia,southea
    stasia,eastus,eastus2,westus,northcentralus,southcentralus,centralus,northeurope,westeurope,japaneast,japanwest,brazilsouth,australiaeast,a
    ustraliasoutheast,eastus2stage,northcentralusstage,,,)'.'
    At line:1 char:1
    + New-AzureResourceGroup -Name "StorageTest" -Location "EastUS" -TemplateFile C:\a ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [New-AzureResourceGroup], Exception
        + FullyQualifiedErrorId : Microsoft.Azure.Commands.Resources.NewAzureResourceGroupCommand
    
    New-AzureResourceGroup : 12:58:08 PM - Resource Microsoft.ClassicStorage/storageAccounts/services/diagnosticSettings
    'storagexczxzc1234/table/storage' failed with message 'No registered resource provider found for location 'eastus' and API version
    '2014-06-01' for type 'storageAccounts/services'. The supported api-versions and locations are '2014-06-01 (eastasia,southeastasia,eastus,e
    astus2,westus,northcentralus,southcentralus,centralus,northeurope,westeurope,japaneast,japanwest,brazilsouth,australiaeast,australiasouthea
    st,eastus2stage,northcentralusstage,,,,,,); 2014-04-01 (eastasia,southeastasia,eastus,eastus2,westus,northcentralus,southcentralus,centralu
    s,northeurope,westeurope,japaneast,japanwest,brazilsouth,australiaeast,australiasoutheast,eastus2stage,northcentralusstage,westus,centralus
    ,southcentralus,japaneast,japanwest,eastasia,southeastasia,australiaeast,australiasoutheast,eastus,eastus2,northcentralus,northeurope,weste
    urope,brazilsouth,,,,,); 2014-04-01-beta (eastasia,southeastasia,eastus,eastus2,westus,northcentralus,southcentralus,centralus,northeurope,
    westeurope,japaneast,japanwest,brazilsouth,australiaeast,australiasoutheast,eastus2stage,northcentralusstage); 2014-01-01 (eastasia,southea
    stasia,eastus,eastus2,westus,northcentralus,southcentralus,centralus,northeurope,westeurope,japaneast,japanwest,brazilsouth,australiaeast,a
    ustraliasoutheast,eastus2stage,northcentralusstage,,,)'.'
    At line:1 char:1
    + New-AzureResourceGroup -Name "StorageTest" -Location "EastUS" -TemplateFile C:\a ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [New-AzureResourceGroup], Exception
        + FullyQualifiedErrorId : Microsoft.Azure.Commands.Resources.NewAzureResourceGroupCommand

    The template was not modified. It was used "as is". Is there something that I did wrong?

    I tried other API versions (including 2014-10-01) and it didn't work. Is it a bug in the template?

    • Moved by David Ebbo Tuesday, May 5, 2015 5:34 PM Not WebApp related. Moving to Storage
    Tuesday, May 5, 2015 5:00 PM

Answers

  • Hi Maxime,

    This is a command that works for me:

    New-AzureResourceGroup -Name 'cltest8' -Location 'eastus' -GalleryTemplateIdentity 'Microsoft.ClassicStorage.0.4.0-preview' -nameFromTemplate 'clsatest8' -locationFromTemplate 'eastus' -accountType 'Standard_LRS' -diagnosticsMetricsLevel 'None' -diagnosticsApiVersion '2014-04-01' -diagnosticsMetricsRetention '0'

    Try it like that, changing -Name and -NameFromTemplate to the desired names.

    Thanks,
    Craig

    Thursday, May 14, 2015 4:02 PM

All replies

  • Hi Maxime,

    Would you be able to try

    New-AzureResourceGroup -Name "StorageTest" -Location "East US"

    and check if it works?

    Regards,
    Malar.


    Wednesday, May 6, 2015 2:19 PM
  • Hi Nagamalar,

    It does work. Both "East US" and EastUS.

    Do you want me to try the whole command with the "East US" or you just wanted to validatate that the location worked?

    Thanks,

    Wednesday, May 6, 2015 2:34 PM
  • Please try the whole command with the "East US".
    Wednesday, May 6, 2015 3:49 PM
  • Just did and I have the same exact error message.
    Wednesday, May 6, 2015 4:07 PM
  • Also tried with "West US" just for kicks and..... nope.

    Unable to set the diagnostics onto the storage.  I can do it through the portal, but not through the templates. :(

    Wednesday, May 6, 2015 4:24 PM
  • Maxime,

    In the earlier version API, it was not possible to create a Storage account via Azure Resource Manager. The latest API 2015-01-01 supports it.

    Save the template in a simple path like C:\Azure\Templates\Microsoft_Classic_Storage.json and check the parameters of the template once again before running the below cmdlet:

    New-AzureResourceGroup -Name "StorageTest1212" -Location "East US" -TemplateFile C:\Azure\Templates\Microsoft_Classic_Storage.json -nameFromTemplate "storagexczxzc1234" -locationFromTemplate "East US" -accountType "Standard_LRS" -diagnosticsMetricsLevel "Warning" -diagnosticsApiVersion "2015-01-01" -diagnosticsMetricsRetention "P7D"

    Regards,

    Manu

    Thursday, May 7, 2015 6:14 PM
    Moderator
  • Trying again with the command line you specified.

    I changed the resourcegroup name as well as the "nameFromTemplate" to make sure they are unique.

    Here is the result I have:

    New-AzureResourceGroup : 2:16:43 PM - Resource Microsoft.ClassicStorage/storageAccounts/services/diagnosticSettings
    'storagexczxzc37218/table/storage' failed with message 'No registered resource provider found for location 'eastus' and API version
    '2015-01-01' for type 'storageAccounts/services'. The supported api-versions and locations are '2014-06-01 (eastasia,southeastasia,eastus,e
    astus2,westus,northcentralus,southcentralus,centralus,northeurope,westeurope,japaneast,japanwest,brazilsouth,australiaeast,australiasouthea
    st,eastus2stage,northcentralusstage,,,,,,); 2014-04-01 (eastasia,southeastasia,eastus,eastus2,westus,northcentralus,southcentralus,centralu
    s,northeurope,westeurope,japaneast,japanwest,brazilsouth,australiaeast,australiasoutheast,eastus2stage,northcentralusstage,westus,centralus
    ,southcentralus,japaneast,japanwest,eastasia,southeastasia,australiaeast,australiasoutheast,eastus,eastus2,northcentralus,northeurope,weste
    urope,brazilsouth,,,,,); 2014-04-01-beta (eastasia,southeastasia,eastus,eastus2,westus,northcentralus,southcentralus,centralus,northeurope,
    westeurope,japaneast,japanwest,brazilsouth,australiaeast,australiasoutheast,eastus2stage,northcentralusstage); 2014-01-01 (eastasia,southea
    stasia,eastus,eastus2,westus,northcentralus,southcentralus,centralus,northeurope,westeurope,japaneast,japanwest,brazilsouth,australiaeast,a
    ustraliasoutheast,eastus2stage,northcentralusstage,,,)'.'
    At line:1 char:1
    + New-AzureResourceGroup -Name "StorageTest37218" -Location "East US" -TemplateFil ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [New-AzureResourceGroup], Exception
        + FullyQualifiedErrorId : Microsoft.Azure.Commands.Resources.NewAzureResourceGroupCommand
    
    New-AzureResourceGroup : 2:16:43 PM - Resource Microsoft.ClassicStorage/storageAccounts/services/diagnosticSettings
    'storagexczxzc37218/blob/storage' failed with message 'No registered resource provider found for location 'eastus' and API version
    '2015-01-01' for type 'storageAccounts/services'. The supported api-versions and locations are '2014-06-01 (eastasia,southeastasia,eastus,e
    astus2,westus,northcentralus,southcentralus,centralus,northeurope,westeurope,japaneast,japanwest,brazilsouth,australiaeast,australiasouthea
    st,eastus2stage,northcentralusstage,,,,,,); 2014-04-01 (eastasia,southeastasia,eastus,eastus2,westus,northcentralus,southcentralus,centralu
    s,northeurope,westeurope,japaneast,japanwest,brazilsouth,australiaeast,australiasoutheast,eastus2stage,northcentralusstage,westus,centralus
    ,southcentralus,japaneast,japanwest,eastasia,southeastasia,australiaeast,australiasoutheast,eastus,eastus2,northcentralus,northeurope,weste
    urope,brazilsouth,,,,,); 2014-04-01-beta (eastasia,southeastasia,eastus,eastus2,westus,northcentralus,southcentralus,centralus,northeurope,
    westeurope,japaneast,japanwest,brazilsouth,australiaeast,australiasoutheast,eastus2stage,northcentralusstage); 2014-01-01 (eastasia,southea
    stasia,eastus,eastus2,westus,northcentralus,southcentralus,centralus,northeurope,westeurope,japaneast,japanwest,brazilsouth,australiaeast,a
    ustraliasoutheast,eastus2stage,northcentralusstage,,,)'.'
    At line:1 char:1
    + New-AzureResourceGroup -Name "StorageTest37218" -Location "East US" -TemplateFil ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [New-AzureResourceGroup], Exception
        + FullyQualifiedErrorId : Microsoft.Azure.Commands.Resources.NewAzureResourceGroupCommand
    
    New-AzureResourceGroup : 2:16:43 PM - Resource Microsoft.ClassicStorage/storageAccounts/services/diagnosticSettings
    'storagexczxzc37218/queue/storage' failed with message 'No registered resource provider found for location 'eastus' and API version
    '2015-01-01' for type 'storageAccounts/services'. The supported api-versions and locations are '2014-06-01 (eastasia,southeastasia,eastus,e
    astus2,westus,northcentralus,southcentralus,centralus,northeurope,westeurope,japaneast,japanwest,brazilsouth,australiaeast,australiasouthea
    st,eastus2stage,northcentralusstage,,,,,,); 2014-04-01 (eastasia,southeastasia,eastus,eastus2,westus,northcentralus,southcentralus,centralu
    s,northeurope,westeurope,japaneast,japanwest,brazilsouth,australiaeast,australiasoutheast,eastus2stage,northcentralusstage,westus,centralus
    ,southcentralus,japaneast,japanwest,eastasia,southeastasia,australiaeast,australiasoutheast,eastus,eastus2,northcentralus,northeurope,weste
    urope,brazilsouth,,,,,); 2014-04-01-beta (eastasia,southeastasia,eastus,eastus2,westus,northcentralus,southcentralus,centralus,northeurope,
    westeurope,japaneast,japanwest,brazilsouth,australiaeast,australiasoutheast,eastus2stage,northcentralusstage); 2014-01-01 (eastasia,southea
    stasia,eastus,eastus2,westus,northcentralus,southcentralus,centralus,northeurope,westeurope,japaneast,japanwest,brazilsouth,australiaeast,a
    ustraliasoutheast,eastus2stage,northcentralusstage,,,)'.'
    At line:1 char:1
    + New-AzureResourceGroup -Name "StorageTest37218" -Location "East US" -TemplateFil ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [New-AzureResourceGroup], Exception
        + FullyQualifiedErrorId : Microsoft.Azure.Commands.Resources.NewAzureResourceGroupCommand
    


    Thursday, May 7, 2015 6:17 PM
  • Hi Maxime,

    I can reproduce your issue with -diagnosticsApiVersion 2014-06-01, and if I change that to 2014-04-01 it works.

    Thanks,
    Craig

    Wednesday, May 13, 2015 2:02 AM
  • I've changed the diagnosticsApiVersion to the version you mentioned and it seems to go a bit further but I have another error:

    New-AzureResourceGroup : 8:29:15 AM - Resource Microsoft.ClassicStorage/storageAccounts/services/diagnosticSettings
    'dqwlhdj321321yyy/table/storage' failed with message 'Request content is not well formed or supported.'
    At C:\Workspace\CDS1000\Cds.Corpo.Cosa.Deployment.Automation\dev\Cds.Corpo.Cosa.Deployment.Automation\Provisioning\CosaDeploymentProvisioni
    ng.psm1:115 char:2
    +     New-AzureResourceGroup -Name $resourceGroupName -Location $location -TemplateFi ...
    +    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [New-AzureResourceGroup], Exception
        + FullyQualifiedErrorId : Microsoft.Azure.Commands.Resources.NewAzureResourceGroupCommand
    
    New-AzureResourceGroup : 8:29:17 AM - Resource Microsoft.ClassicStorage/storageAccounts/services/diagnosticSettings
    'dqwlhdj321321yyy/blob/storage' failed with message 'Request content is not well formed or supported.'
    At C:\Workspace\CDS1000\Cds.Corpo.Cosa.Deployment.Automation\dev\Cds.Corpo.Cosa.Deployment.Automation\Provisioning\CosaDeploymentProvisioni
    ng.psm1:115 char:2
    +     New-AzureResourceGroup -Name $resourceGroupName -Location $location -TemplateFi ...
    +    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [New-AzureResourceGroup], Exception
        + FullyQualifiedErrorId : Microsoft.Azure.Commands.Resources.NewAzureResourceGroupCommand
    
    New-AzureResourceGroup : 8:29:17 AM - Resource Microsoft.ClassicStorage/storageAccounts/services/diagnosticSettings
    'dqwlhdj321321yyy/queue/storage' failed with message 'Request content is not well formed or supported.'
    At C:\Workspace\CDS1000\Cds.Corpo.Cosa.Deployment.Automation\dev\Cds.Corpo.Cosa.Deployment.Automation\Provisioning\CosaDeploymentProvisioni
    ng.psm1:115 char:2
    +     New-AzureResourceGroup -Name $resourceGroupName -Location $location -TemplateFi ...
    +    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [New-AzureResourceGroup], Exception
        + FullyQualifiedErrorId : Microsoft.Azure.Commands.Resources.NewAzureResourceGroupCommand

    Wednesday, May 13, 2015 12:31 PM
  • Hi Maxime,

    This is a command that works for me:

    New-AzureResourceGroup -Name 'cltest8' -Location 'eastus' -GalleryTemplateIdentity 'Microsoft.ClassicStorage.0.4.0-preview' -nameFromTemplate 'clsatest8' -locationFromTemplate 'eastus' -accountType 'Standard_LRS' -diagnosticsMetricsLevel 'None' -diagnosticsApiVersion '2014-04-01' -diagnosticsMetricsRetention '0'

    Try it like that, changing -Name and -NameFromTemplate to the desired names.

    Thanks,
    Craig

    Thursday, May 14, 2015 4:02 PM
  • Hi Maxime,

    Any update!! Hope Craig's command helped you. Please let us know the status.

    Regards,
    Manu

    Monday, May 18, 2015 12:13 PM
    Moderator