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

2 Min. Read

In this quick blog post, I will show you how to increase Compute quota limit for an exiting 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 helps 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 for 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 exiting 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 With PowerShell #Microsoft #AzureStack #AzureStackDevKit #PowerShell 2

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 With PowerShell #Microsoft #AzureStack #AzureStackDevKit #PowerShell 3

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 With PowerShell #Microsoft #AzureStack #AzureStackDevKit #PowerShell 4

Network

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

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

Compute

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

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

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 With PowerShell #Microsoft #AzureStack #AzureStackDevKit #PowerShell 7

That’s it! Very simple.

__
Thank you for reading my blog.

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

-Charbel Nemnom-

Previous

Happy SysAdmin Day With Altaro VMBackup HyperV VMware @AltaroSoftware

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

Next

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Subscribe to Stay in Touch

Never miss out on your favorite posts and our latest announcements!

The content of this website is copyrighted from being plagiarized!

You can copy from the 'Code Blocks' in 'Black' by selecting the Code.

Please send your feedback to the author using this form for any 'Code' you like.

Thank you for visiting!