Need to create Disk pools in Azure

Ibrahim Khalid 26 Reputation points

I am trying to create Azure disk pools in my MSDN subscription using Powershell and faced a error message.

Please give me some suggestion how I can create disk pools in Azure.diskpool

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,297 questions
Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
505 questions
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
1,550 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Carlos Solís Salazar 14,866 Reputation points

    The error message "The resource namespace 'Microsoft.StoragePool' is invalid" typically indicates that the Azure Disk Pools service might not be registered within your subscription, or it's not available in the region you're targeting. Here are steps to troubleshoot and resolve this issue:

    Check Service Availability:

    • Ensure that Azure Disk Pools are available in the Azure region you are targeting. Not all services are available in all regions.
    • Verify this by checking the Azure products available by region: Azure Products by Region.

    Register the Resource Provider:

    • If the 'Microsoft.StoragePool' resource provider is not registered with your subscription, you need to register it.
    • You can do this in Azure PowerShell with the following command:
    Register-AzResourceProvider -ProviderNamespace Microsoft.StoragePool
    • After registration, you can check the status by running:
    Get-AzResourceProvider -ProviderNamespace Microsoft.StoragePool

    Creating Disk Pools:

    • Once the resource provider is registered and available, you can proceed to create disk pools.
    • Use Azure PowerShell commands specific to disk pool operations. Make sure you're using the latest version of Azure PowerShell module.
    • Here is an example structure of how to create a disk pool:
    # Example structure
    New-AzDiskPool -ResourceGroupName "<ResourceGroupName>" -Location "<Location>" -Name "<DiskPoolName>" -SkuName "<SkuName>" -DiskIopsLimit <IopsLimit> -DiskMBpsLimit <MBpsLimit> -DiskSizeGB <SizeInGB>
    • Replace placeholders with your actual resource group name, location, disk pool name, SKU name, and other parameters as per your requirement.

    Check for Compatibility and Limits:

    • Ensure that your MSDN subscription does not have any limitations that prevent the creation of disk pools.
    • Also, check the service limits for Azure Disk Pools in your subscription.

    Consult Documentation and Support:

    • Refer to the Azure Disk Pools documentation for detailed guidance: Azure Disk Pools.