- name: Availability
  description: The percentage of availability for the storage service or the specified
    API operation. Availability is calculated by taking the TotalBillableRequests
    value and dividing it by the number of applicable requests, including those that
    produced unexpected errors. All unexpected errors result in reduced availability
    for the storage service or the specified API operation.
  type: Metric
  verified: true
  visible: true
  tags:
  - alz
  - hpc
  - alz
  - rag
  properties:
    metricName: Availability
    metricNamespace: Microsoft.Storage/storageAccounts
    severity: 1
    windowSize: PT5M
    evaluationFrequency: PT5M
    timeAggregation: Average
    operator: LessThan
    threshold: 100
    criterionType: StaticThresholdCriterion
    autoMitigate: false
    enabled: true
  references:
  - name: Monitoring Availability
    url: https://learn.microsoft.com/troubleshoot/azure/azure-storage/storage-monitoring-diagnosing-troubleshooting?toc=%2Fazure%2Fstorage%2Fblobs%2Ftoc.json&tabs=dotnet#monitoring-availability
  - name: Supported metrics for Microsoft.Storage/storageAccounts
    url: https://learn.microsoft.com/azure/azure-monitor/reference/supported-metrics/microsoft-storage-storageaccounts-metrics
  deployments:
  - name: Deploy SA Availability Alert
    template: Deploy-SA-Availability-Alert.json
    type: Policy
    tags:
    - alz
    properties:
      scope: Resource
      multiResource: false
  guid: b1a4849b-78a8-437f-8113-7c6f2dc34927
- name: Throttling
  description: The storage account will be throttled if throughput exceeds the account's
    tier limit. Increasing the file share or storage tier may be necessary.
  type: Metric
  verified: false
  visible: true
  tags:
  - alz
  - hpc
  - alz
  - rag
  properties:
    metricName: Transactions
    dimensions:
    - name: ResponseType
      operator: Include
      values:
      - SuccessWithThrottling SuccessWithShareIopsThrottling ClientShareIopsThrottlingError
    - name: FileShare
      operator: Include
      values:
      - SuccessWithShareEgressThrottling SuccessWithShareIngressThrottling SuccessWithShareIopsThrottling
        ClientShareEgressThrottlingError ClientShareIngressThrottlingError ClientShareIopsThrottlingError
    metricNamespace: Microsoft.Storage/storageAccounts/fileServices
    severity: 2
    windowSize: PT15M
    evaluationFrequency: PT5M
    timeAggregation: Total
    operator: GreaterThanOrEqual
    threshold: 1
    criterionType: StaticThresholdCriterion
    autoMitigate: false
    enabled: true
  references:
  - name: High latency, low throughput, or low IOPS
    url: https://learn.microsoft.com/en-us/troubleshoot/azure/azure-storage/files-troubleshoot-performance?tabs=windows#high-latency-low-throughput-or-low-iops
  deployments:
  - name: Deploy SA Throttling Alert
    template: Deploy-SA-Throttling-Alert.json
    type: Policy
    tags:
    - alz
    properties:
      scope: Resource
      multiResource: false
  guid: 5e544473-d84f-427d-869d-9d982619e4cb
- name: QueueCount
  description: The number of queues in the storage account.
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-481
  properties:
    metricName: QueueCount
    metricNamespace: Microsoft.Storage/storageAccounts/queueServices
    severity: 0
    windowSize: PT1H
    evaluationFrequency: PT1H
    timeAggregation: Average
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    threshold: 0.0
    autoMitigate: false
    enabled: true
  references:
  - name: Queue Storage Metrics
    url: https://learn.microsoft.com/azure/storage/queues/monitor-queue-storage-reference#queue-storage-metrics
  - name: Best practices for monitoring Azure Queue Storage
    url: https://learn.microsoft.com/azure/storage/queues/queues-storage-monitoring-scenarios?tabs=azure-powershell
  guid: f75dec98-78a3-4e42-954d-375fe3352857
- name: FileShareCount
  description: The number of file shares in the storage account.
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-407
  properties:
    metricName: FileShareCount
    metricNamespace: Microsoft.Storage/storageAccounts/fileServices
    severity: 0
    windowSize: PT1H
    evaluationFrequency: PT1H
    timeAggregation: Average
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    threshold: 0.0
    autoMitigate: false
    enabled: true
  guid: a4adc774-7ca4-4a4b-b2fa-514b9fcbbc80
- name: UsedCapacity
  description: The amount of storage used by the storage account. For standard storage
    accounts, it's the sum of capacity used by blob, table, file, and queue. For premium
    storage accounts and Blob storage accounts, it is the same as BlobCapacity or
    FileCapacity.
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-42019
  - hpc
  - auto-generated
  - agc-35128
  - rag
  properties:
    metricName: UsedCapacity
    metricNamespace: Microsoft.Storage/storageAccounts
    severity: 3
    windowSize: PT1H
    evaluationFrequency: PT1H
    timeAggregation: Average
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    threshold: 2251800000000000.0
    enabled: true
  references:
  - name: Account Level Metrics
    url: https://learn.microsoft.com/azure/azure-monitor/reference/supported-metrics/microsoft-storage-storageaccounts-metrics
  - name: Azure Storage Metric - Used Capacity
    url: https://learn.microsoft.com/azure/storage/blobs/monitor-blob-storage-reference#account-level
  guid: b663a689-6db8-467d-8b5d-8cd34afe4b0e
- name: Egress
  description: The amount of egress data. This number includes egress to external
    client from Azure Storage as well as egress within Azure. As a result, this number
    does not reflect billable egress.
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-3835
  - hpc
  - auto-generated
  - agc-2980
  - rag
  properties:
    metricName: Egress
    metricNamespace: Microsoft.Storage/storageAccounts
    severity: 2
    windowSize: PT5M
    evaluationFrequency: PT5M
    timeAggregation: Total
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    threshold: 60000000.0
    enabled: true
  references:
  - name: Transaction Metrics
    url: https://learn.microsoft.com/azure/storage/blobs/monitor-blob-storage-reference#transaction-metrics
  - name: Storage Account Metric Dimensions (all storage)
    url: https://learn.microsoft.com/azure/storage/blobs/monitor-blob-storage-reference#metrics-dimensions
  guid: eb186756-b63b-408a-bbaf-ac94c1010287
- name: Ingress
  description: The amount of ingress data, in bytes. This number includes ingress
    from an external client into Azure Storage as well as ingress within Azure.
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-2468
  - hpc
  - auto-generated
  - agc-2078
  - rag
  properties:
    metricName: Ingress
    metricNamespace: Microsoft.Storage/storageAccounts
    severity: 3
    windowSize: PT5M
    evaluationFrequency: PT5M
    timeAggregation: Total
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    threshold: 1073741824.0
    enabled: true
  references:
  - name: Transaction Metrics
    url: https://learn.microsoft.com/azure/storage/blobs/monitor-blob-storage-reference#transaction-metrics
  - name: Storage Account Metric Dimensions (all storage)
    url: https://learn.microsoft.com/azure/storage/blobs/monitor-blob-storage-reference#metrics-dimensions
  guid: 5d872cb4-7f71-4275-81eb-98c968c0cadd
- name: blobServices - BlobCapacity
  description: The amount of storage used by the storage account's Blob service in
    bytes.
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-1834
  properties:
    metricName: BlobCapacity
    metricNamespace: Microsoft.Storage/storageAccounts/blobServices
    severity: 3
    windowSize: P1D
    evaluationFrequency: PT5M
    timeAggregation: Average
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    threshold: 107374182400.0
    enabled: true
  references:
  - name: Blob Storage Metrics
    url: https://learn.microsoft.com/azure/storage/blobs/monitor-blob-storage-reference#blob-storage
  - name: Storage Account Metric Dimensions (Blob Storage)
    url: https://learn.microsoft.com/azure/storage/blobs/monitor-blob-storage-reference#dimensions-specific-to-blob-storage
  guid: 8c0aaea9-bcce-4c27-a090-ffe54b7e1d1c
- name: blobServices - SuccessE2ELatency
  description: The average end-to-end latency of successful requests made to a storage
    service or the specified API operation, in milliseconds. This value includes the
    required processing time within Azure Storage to read the request, send the response,
    and receive acknowledgment of the response.
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-504
  - hpc
  - auto-generated
  - agc-496
  - rag
  properties:
    metricName: SuccessE2ELatency
    metricNamespace: Microsoft.Storage/storageAccounts/blobServices
    severity: 3
    windowSize: PT5M
    evaluationFrequency: PT1M
    timeAggregation: Average
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    threshold: 1000.0
    enabled: true
  references:
  - name: Verify throughput and latency metrics for a storage account
    url: https://learn.microsoft.com/azure/storage/blobs/storage-blob-scalable-app-verify-metrics
  - name: Troubleshoot performance in Azure storage accounts
    url: https://learn.microsoft.com/troubleshoot/azure/azure-storage/troubleshoot-storage-performance#metrics-show-high-successe2elatency-and-low-successserverlatency
  guid: 0acc30dc-881d-46c9-b634-8cba507a263f
- name: blobServices - SuccessServerLatency
  description: The average time used to process a successful request by Azure Storage.
    This value does not include the network latency specified in SuccessE2ELatency.
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-257
  - hpc
  - auto-generated
  - agc-297
  - rag
  properties:
    metricName: SuccessServerLatency
    metricNamespace: Microsoft.Storage/storageAccounts/blobServices
    severity: 2
    windowSize: PT5M
    evaluationFrequency: PT1M
    timeAggregation: Average
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    threshold: 1000.0
    enabled: true
  references:
  - name: Trouble shoot performance in Azure storage accounts
    url: https://learn.microsoft.com/troubleshoot/azure/azure-storage/troubleshoot-storage-performance
  - name: Verify throughput and latency metrics for a storage account
    url: https://learn.microsoft.com/azure/storage/blobs/storage-blob-scalable-app-verify-metrics
  - name: Storage Transaction Metrics
    url: https://learn.microsoft.com/azure/storage/blobs/monitor-blob-storage-reference#transaction-metrics
  guid: 0a3689c7-b610-4c52-ae84-ab0640f3d6e4
- name: blobServices - BlobCount
  description: The number of blob objects stored in the storage account.
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-277
  properties:
    metricName: BlobCount
    metricNamespace: Microsoft.Storage/storageAccounts/blobServices
    severity: 3
    windowSize: PT1H
    evaluationFrequency: PT1M
    timeAggregation: Average
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    threshold: 0.
    enabled: true
  references:
  - name: Monitor the use of a container
    url: https://learn.microsoft.com/azure/storage/blobs/blob-storage-monitoring-scenarios#monitor-the-use-of-a-container
  guid: c4d93fac-a6b6-4731-a92a-c499b6fb2bcb
- name: queueServices - QueueMessageCount
  description: The number of unexpired queue messages in the storage account.
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-2080
  properties:
    metricName: QueueMessageCount
    metricNamespace: Microsoft.Storage/storageAccounts/queueServices
    severity: 3
    windowSize: PT1H
    evaluationFrequency: PT5M
    timeAggregation: Average
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    threshold: 1000.0
    enabled: true
  references:
  - name: Best practices for Azure Queue storage
    url: https://learn.microsoft.com/azure/storage/queues/queues-storage-monitoring-scenarios?tabs=azure-powershell
  - name: Queue Storage Metrics
    url: https://learn.microsoft.com/azure/storage/queues/monitor-queue-storage-reference#queue-storage-metrics
  - name: supported metrics for Microsoft.Storage/storageAccounts/queueServices
    url: https://learn.microsoft.com/azure/azure-monitor/reference/supported-metrics/microsoft-storage-storageaccounts-queueservices-metrics
  guid: 34769aaa-5014-4ced-bb08-9fabfba3d959
- name: queueServices - QueueCapacity
  description: The amount of Queue storage used by the storage account.
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-427
  properties:
    metricName: QueueCapacity
    metricNamespace: Microsoft.Storage/storageAccounts/queueServices
    severity: 4
    windowSize: PT1H
    evaluationFrequency: PT5M
    timeAggregation: Average
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    threshold: 31457280.0
    enabled: true
  references:
  - name: Queue Storage Metrics
    url: https://learn.microsoft.com/azure/storage/queues/monitor-queue-storage-reference#queue-storage-metrics
  - name: Best practices for monitoring Azure Queue Storage
    url: https://learn.microsoft.com/azure/storage/queues/queues-storage-monitoring-scenarios?tabs=azure-powershell
  guid: 7815fc6f-bfb1-4474-9ea6-05e1449a2ed5
- name: fileServices - FileCapacity
  description: The amount of File storage used by the storage account.
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-8269
  properties:
    metricName: FileCapacity
    metricNamespace: Microsoft.Storage/storageAccounts/fileServices
    severity: 2
    windowSize: PT1H
    evaluationFrequency: PT15M
    timeAggregation: Average
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    threshold: 96636764160.0
    enabled: true
  references:
  - name: File Storage Metrics
    url: https://learn.microsoft.com/azure/storage/files/storage-files-monitoring-scenarios#file-storage-metrics
  guid: 26e09eae-c784-4e8f-a225-d3f13efff76f
- name: fileServices - Transactions
  description: The number of requests made to a storage service or the specified API
    operation. This number includes successful and failed requests, as well as requests
    which produced errors. Use ResponseType dimension for the number of different
    type of response.
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-1467
  - hpc
  - auto-generated
  - agc-1507
  - rag
  properties:
    metricName: Transactions
    metricNamespace: Microsoft.Storage/storageAccounts/fileServices
    severity: 3
    windowSize: PT5M
    evaluationFrequency: PT1M
    timeAggregation: Total
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    dimensions:
    - operator: include
      name: responsetype
      values:
      - success
    - operator: include
      name: authentication
      values:
      - anonymous
    threshold: 10.0
    enabled: true
  references:
  - name: Identify storage accounts with no or low use
    url: https://learn.microsoft.com/azure/storage/blobs/blob-storage-monitoring-scenarios#identify-storage-accounts-with-no-or-low-use
  - name: Monitor the use of a container
    url: https://learn.microsoft.com/azure/storage/blobs/blob-storage-monitoring-scenarios#monitor-the-use-of-a-container
  - name: Storage Transaction Metrics
    url: https://learn.microsoft.com/azure/storage/blobs/monitor-blob-storage-reference#transaction-metrics
  guid: c81d3e6c-5539-42ad-a95f-9bba504d91f0
- name: fileServices - FileShareSnapshotCount
  description: The number of snapshots present on the share in storage account's Files
    Service.
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-617
  properties:
    metricName: FileShareSnapshotCount
    metricNamespace: Microsoft.Storage/storageAccounts/fileServices
    severity: 3
    windowSize: PT1H
    evaluationFrequency: PT15M
    timeAggregation: Average
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    threshold: 190.0
    enabled: true
  references:
  - name: Azure Files monitoring data reference
    url: https://learn.microsoft.com/azure/storage/files/storage-files-monitoring-reference#azure-files
  guid: 8cbe449d-9264-4ae1-8221-5d97989005a8
- name: fileServices - Availability
  description: The percentage of availability for the storage service or the specified
    API operation. Availability is calculated by taking the TotalBillableRequests
    value and dividing it by the number of applicable requests, including those that
    produced unexpected errors. All unexpected errors result in reduced availability
    for the storage service or the specified API operation.
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-585
  properties:
    metricName: Availability
    metricNamespace: Microsoft.Storage/storageAccounts/fileServices
    severity: 3
    windowSize: PT5M
    evaluationFrequency: PT1M
    timeAggregation: Average
    operator: LessThanOrEqual
    criterionType: StaticThresholdCriterion
    threshold: 99.9
    enabled: true
  guid: 45fef979-c27e-425a-a6c3-e5bd28b1eb86
- name: fileServices - FileShareCapacityQuota
  description: The upper limit on the amount of storage that can be used by Azure
    Files Service in bytes.
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-578
  properties:
    metricName: FileShareCapacityQuota
    metricNamespace: Microsoft.Storage/storageAccounts/fileServices
    severity: 4
    windowSize: PT1H
    evaluationFrequency: PT5M
    timeAggregation: Average
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    threshold: 5222680231936.0
    enabled: true
  guid: 8660f357-83f9-4719-bdf3-bae57af2d967
