Azure Resource Manager (ARM) Usage Operations Execution Module

New in version 2.0.0.

Changed in version 4.0.0.




This module requires Azure Resource Manager credentials to be passed as keyword arguments to every function or via acct in order to work properly.

Required provider parameters:

if using username and password:
  • subscription_id
  • username
  • password
if using a service principal:
  • subscription_id
  • tenant
  • client_id
  • secret

Optional provider parameters:

cloud_environment: Used to point the cloud driver to different API endpoints, such as Azure GovCloud. Possible values:

  • AZURE_PUBLIC_CLOUD (default)
idem_azurerm.exec.azurerm.storage.usage.list_by_location(hub, ctx, location, **kwargs)

New in version 4.0.0.

Gets the current usage count and the limit for the resources of the location under the subscription.

Parameters:location – The location of the Azure Storage resource.

CLI Example:

azurerm.storage.usage.list_by_location "eastus"