You dont have javascript enabled! Please enable it!

How To Change Quota in Azure Stack using PowerShell #Microsoft #AzureStack #AzureStackDevKit

2 Min. Read

In this quick blog post, we will show you how to increase Compute quota limit for an existing plan using PowerShell. You can also do the same thing for storage, network, and other services.

Introduction

Azure Stack lets you deliver a wide variety of services, like virtual machines, SQL Server databases, SharePoint, Exchange, and even Azure Marketplace items. As an Azure Stack operator, you configure and deliver such services in Azure Stack by using plans, offers, and quotas.

When you want to deliver a service, you typically follow the high-level steps below:

  • Add a service that you want to deliver to your users.
  • Create a plan that has one or more services. When creating a plan, select or create quotas that define the resource limits of each service in the plan.
  • Create an offer that contains one or more plans. The offer can include base plans and optional add-on plans.

Quotas help you manage your cloud capacity, you can use pre-configured quotas or create a new quota for each service in a plan. Quotas define the upper resource limits that a user subscription can provision or consume. For example, a quota might allow a user to create up to 5 virtual machines (VMs). You set additional quotas on the virtual machines, such as RAM and CPU cores.

With Azure Stack Integrated Systems, you can configure quotas by region. For example, a plan that provides compute services for Region (named Bern) could have a quota of two VMs with 4-GB RAM, and 8 CPU cores. However, this does not apply to the Azure Stack Development Kit (single-node), because we only have one region (named local).

If you want to increase the quota limits in Azure Stack for a customer, you have multiple options:

  1. The customer (tenant) can subscribe to an Add-on plan in his subscription offer.
  2. You can use PowerShell to find the desired plan for the offer and then change the plan accordingly.

In this quick blog post, I will show you how to increase Compute quota limit for an existing plan using PowerShell. You can also do the same thing for storage, network, and other services.

Change Azure Stack Quota with PowerShell

First, you need to find the desired plan that you want to change. The following PowerShell command will list all the existing plans in Azure Stack:

Get-AzsPlan | FL DisplayName, Name, ID, Location

How To Change Quota in Azure Stack using PowerShell #Microsoft #AzureStack #AzureStackDevKit 1

In this example, I will use the plan named (Limit-BasePlan). Get the details for a specific plan by running the following PowerShell command:

Get-AzsPlan -Name Limit-BasePlan -ResourceGroupName limit-quota-rg

This plan has three services, Storage, Network, and Compute.

How To Change Quota in Azure Stack using PowerShell #Microsoft #AzureStack #AzureStackDevKit 2

You can take a look at the quotas limit for each service by running the following commands:

Storage

Get-AzsStorageQuota -ResourceId ((Get-AzsPlan -Name Limit-BasePlan -ResourceGroupName `
 limit-quota-rg).quotaids | where { $_ -match "Storage"})

How To Change Quota in Azure Stack using PowerShell #Microsoft #AzureStack #AzureStackDevKit 3

Network

Get-AzsNetworkQuota -ResourceId ((Get-AzsPlan -Name Limit-BasePlan -ResourceGroupName `
 limit-quota-rg).quotaids | where { $_ -match "Network"})

How To Change Quota in Azure Stack using PowerShell #Microsoft #AzureStack #AzureStackDevKit 4

Compute

Get-AzsComputeQuota -ResourceId ((Get-AzsPlan -Name Limit-BasePlan -ResourceGroupName `
 limit-quota-rg).quotaids | where { $_ -match "Compute"})

How To Change Quota in Azure Stack using PowerShell #Microsoft #AzureStack #AzureStackDevKit 5

After verifying the quota for the plan, you can leverage PowerShell to raise the Quota. In this example, I will increase the CoresLimit to 20 vCPUs instead of 10. Note the compute quota name (limit_compute). To do so, run the following command:

Get-AzsComputeQuota -Name limit_compute | Set-AzsComputeQuota -CoresLimit 20

You can see now the limit for the compute quota is changed to 20 vCPUs instead of 10.

How To Change Quota in Azure Stack using PowerShell #Microsoft #AzureStack #AzureStackDevKit 6

That’s it! Very simple.

__
Thank you for reading my blog.

If you have any questions or feedback, please leave a comment.

-Charbel Nemnom-

Related Posts

Previous

Happy SysAdmin Day With Altaro VMBackup HyperV VMware @AltaroSoftware

Microsoft MVP 2018-2019 – Cloud and Datacenter Management #MVPBuzz #Microsoft #MVP @MVPAward

Next

2 thoughts on “How To Change Quota in Azure Stack using PowerShell #Microsoft #AzureStack #AzureStackDevKit”

Leave a comment...

  1. What possible reason could you have for preventing people from copying and pasting your content? Completely detracts from the good content you’ve posted.

  2. Hello Michaela, thanks for the feedback!
    I have updated the article, you should be able to copy it from the Code Block.
    The content is protected from being plagiarized!
    However, you can copy from the ‘Code Blocks’ in ‘Black’ by selecting the Code.
    Let me know if it works for you.
    Thanks!

Let me know what you think, or ask a question...

error: Alert: The content of this website is copyrighted from being plagiarized! You can copy from the 'Code Blocks' in 'Black' by selecting the Code. Thank You!