2 min. Read

In this quick blog post, I’ll show you how to grow Calculate quota limit for an exit plan using PowerShell. You can do the same for storage, network, and other services.

Azure Stack allows you to deliver a wide range of services, including virtual machines, SQL Server databases, SharePoint, Exchange, and even Azure Marketplace. As an Azure Stack operator, you can configure and deliver such services using Azure Stack plans, offersand quotas.

To deliver the service, usually follow the high-level steps below:

  • Add the service you want to provide to your users.
  • Create a plan with one or more services. When you create a plan, select or create quotas that define the resource limits for each service in the plan.
  • Create an offer that includes one or more plans. Offer may include base plans and optional Add-ons.

Quotas to help you manage your cloud capacity, you can use predefined quotas or create a new quota for each plan service. Quotas specify the maximum limits of resources that a user subscription can provide or consume. For example, a quota can allow a user to create up to 5 virtual machines. You set additional quotas for virtual machines such as RAM and CPU cores. With Integrated Azure Stack systems, you can set quotas by region. For example, a plan that provides computing services to an area (called Bern) may have a quota of two hard drives with 4GB of RAM and 8 processor cores. However, this does not apply to the Azure Stack Development Kit (single node) because we only have one area (called local).

If you want to raise your customer quota limits in Azure Stack, you have several options:

  1. The customer (tenant) can order a subscription offer in the subscription agreement.
  2. You can use PowerShell to find the plan you want for your offer, and then change it accordingly.

In this quick blog post, I’ll show you how to grow Calculate quota limit for an exit plan using PowerShell. You can do the same for storage, network, and other services.

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

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

In this example, I use a plan called (Limit-BasePlan). Run the following PowerShell command to obtain the information for a specific plan:

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

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

Changing Quota in Azure Stack with PowerShell #Microsoft #AzureStack #AzureStackDevKit #PowerShell 2

To view the quota limits for each service, run the following commands:

Storage

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

Changing the Quota Azure Stack with PowerShell #Microsoft #AzureStack #AzureStackDevKit #PowerShell 3

Network

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

Changing a quota in the Azure stack with PowerShell #Microsoft #AzureStack #AzureStackDevKit #PowerShell 4

Calculate

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

Changing the Quota in an Azure Stack with PowerShell #Microsoft #AzureStack #AzureStackDevKit #PowerShell 5

After reviewing the plan quota, you can use PowerShell to increase the quota. In this example, I will grow KernelsLimit 20 for vCPU instead of 10. Note the name of the calculation quota (limit_counting). To do this, run the following command:

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

You can now see that the count quota limit has been changed to 20 vCPUs instead of 10.

Changing the Quota Azure Stack with PowerShell #Microsoft #AzureStack #AzureStackDevKit #PowerShell 6

That’s it! Very simple.

__
Thanks for locking my blog.

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

-Charbel Nemnom-

LEAVE A REPLY

Please enter your comment!
Please enter your name here