Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 1.7 KB

powershell-setup-rate-limit-policy.md

File metadata and controls

43 lines (30 loc) · 1.7 KB

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

Set up rate limit policy

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.

Sample script

[!code-powershellmain]

Clean up resources

When no longer needed, you can use the Remove-AzResourceGroup command to remove the resource group and all related resources.

Remove-AzResourceGroup -Name myResourceGroup

Next steps

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.