title: Azure PowerShell Script Sample - Set up rate limit policy | Microsoft Docs description: Azure PowerShell Script Sample - Set up rate limit policy services: api-management documentationcenter: '' author: vladvino manager: cfowler editor: ''
ms.service: api-management ms.workload: mobile ms.topic: sample ms.date: 11/16/2017 ms.author: apimpm ms.custom: mvc
This sample script sets up rate limit policy.
[!INCLUDE updated-for-az]
[!INCLUDE cloud-shell-try-it.md]
If you choose to install and use the PowerShell locally, this tutorial requires the Azure PowerShell module version 1.0 or later. Run Get-Module -ListAvailable Az
to find the version. If you need to upgrade, see Install Azure PowerShell module. If you are running PowerShell locally, you also need to run Connect-AzAccount
to create a connection with Azure.
[!code-powershellmain]
When no longer needed, you can use the Remove-AzResourceGroup command to remove the resource group and all related resources.
Remove-AzResourceGroup -Name myResourceGroup
For more information on the Azure PowerShell module, see Azure PowerShell documentation.
Additional Azure PowerShell samples for Azure API Management can be found in the PowerShell samples.