From 565cdcd0b66efc5b104b215203acd52c6af4510a Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Mon, 20 Apr 2026 17:17:13 +0800 Subject: [PATCH 1/3] add commands `az storage advanced-platform-metric create/update/show/list/delete` from api version 2026-04-01 for preview --- .../advanced-platform-metric/_create.md | 9 + .../advanced-platform-metric/_delete.md | 9 + .../storage/advanced-platform-metric/_list.md | 9 + .../storage/advanced-platform-metric/_show.md | 9 + .../advanced-platform-metric/_update.md | 9 + .../advanced-platform-metric/readme.md | 20 + Commands/storage/readme.md | 3 + .../2026-04-01.json | 1 + .../2026-04-01.xml | 121 ++++ .../2026-04-01.json | 1 + .../2026-04-01.xml | 550 ++++++++++++++++++ 11 files changed, 741 insertions(+) create mode 100644 Commands/storage/advanced-platform-metric/_create.md create mode 100644 Commands/storage/advanced-platform-metric/_delete.md create mode 100644 Commands/storage/advanced-platform-metric/_list.md create mode 100644 Commands/storage/advanced-platform-metric/_show.md create mode 100644 Commands/storage/advanced-platform-metric/_update.md create mode 100644 Commands/storage/advanced-platform-metric/readme.md create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlL3N0b3JhZ2VhY2NvdW50cy97fS9hZHZhbmNlZHBsYXRmb3JtbWV0cmljcw==/2026-04-01.json create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlL3N0b3JhZ2VhY2NvdW50cy97fS9hZHZhbmNlZHBsYXRmb3JtbWV0cmljcw==/2026-04-01.xml create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlL3N0b3JhZ2VhY2NvdW50cy97fS9hZHZhbmNlZHBsYXRmb3JtbWV0cmljcy97fQ==/2026-04-01.json create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlL3N0b3JhZ2VhY2NvdW50cy97fS9hZHZhbmNlZHBsYXRmb3JtbWV0cmljcy97fQ==/2026-04-01.xml diff --git a/Commands/storage/advanced-platform-metric/_create.md b/Commands/storage/advanced-platform-metric/_create.md new file mode 100644 index 000000000..49624c1da --- /dev/null +++ b/Commands/storage/advanced-platform-metric/_create.md @@ -0,0 +1,9 @@ +# [Command] _storage advanced-platform-metric create_ + +Create the advanced platform metrics rule for the storage account. + +## Versions + +### [2026-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlL3N0b3JhZ2VhY2NvdW50cy97fS9hZHZhbmNlZHBsYXRmb3JtbWV0cmljcy97fQ==/2026-04-01.xml) **Preview** + + diff --git a/Commands/storage/advanced-platform-metric/_delete.md b/Commands/storage/advanced-platform-metric/_delete.md new file mode 100644 index 000000000..cea736e26 --- /dev/null +++ b/Commands/storage/advanced-platform-metric/_delete.md @@ -0,0 +1,9 @@ +# [Command] _storage advanced-platform-metric delete_ + +Delete the advanced platform metrics rule for the storage account by rule type. + +## Versions + +### [2026-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlL3N0b3JhZ2VhY2NvdW50cy97fS9hZHZhbmNlZHBsYXRmb3JtbWV0cmljcy97fQ==/2026-04-01.xml) **Preview** + + diff --git a/Commands/storage/advanced-platform-metric/_list.md b/Commands/storage/advanced-platform-metric/_list.md new file mode 100644 index 000000000..381612ec8 --- /dev/null +++ b/Commands/storage/advanced-platform-metric/_list.md @@ -0,0 +1,9 @@ +# [Command] _storage advanced-platform-metric list_ + +List the advanced platform metrics rules associated with the storage account. + +## Versions + +### [2026-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlL3N0b3JhZ2VhY2NvdW50cy97fS9hZHZhbmNlZHBsYXRmb3JtbWV0cmljcw==/2026-04-01.xml) **Preview** + + diff --git a/Commands/storage/advanced-platform-metric/_show.md b/Commands/storage/advanced-platform-metric/_show.md new file mode 100644 index 000000000..e69322312 --- /dev/null +++ b/Commands/storage/advanced-platform-metric/_show.md @@ -0,0 +1,9 @@ +# [Command] _storage advanced-platform-metric show_ + +Get the advanced platform metrics rule for the storage account by rule type. + +## Versions + +### [2026-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlL3N0b3JhZ2VhY2NvdW50cy97fS9hZHZhbmNlZHBsYXRmb3JtbWV0cmljcy97fQ==/2026-04-01.xml) **Preview** + + diff --git a/Commands/storage/advanced-platform-metric/_update.md b/Commands/storage/advanced-platform-metric/_update.md new file mode 100644 index 000000000..2ae85abfd --- /dev/null +++ b/Commands/storage/advanced-platform-metric/_update.md @@ -0,0 +1,9 @@ +# [Command] _storage advanced-platform-metric update_ + +Update the advanced platform metrics rule for the storage account. + +## Versions + +### [2026-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlL3N0b3JhZ2VhY2NvdW50cy97fS9hZHZhbmNlZHBsYXRmb3JtbWV0cmljcy97fQ==/2026-04-01.xml) **Preview** + + diff --git a/Commands/storage/advanced-platform-metric/readme.md b/Commands/storage/advanced-platform-metric/readme.md new file mode 100644 index 000000000..58ac320be --- /dev/null +++ b/Commands/storage/advanced-platform-metric/readme.md @@ -0,0 +1,20 @@ +# [Group] _storage advanced-platform-metric_ + +Manage Advanced Platform Metric + +## Commands + +- [create](/Commands/storage/advanced-platform-metric/_create.md) +: Create the advanced platform metrics rule for the storage account. + +- [delete](/Commands/storage/advanced-platform-metric/_delete.md) +: Delete the advanced platform metrics rule for the storage account by rule type. + +- [list](/Commands/storage/advanced-platform-metric/_list.md) +: List the advanced platform metrics rules associated with the storage account. + +- [show](/Commands/storage/advanced-platform-metric/_show.md) +: Get the advanced platform metrics rule for the storage account by rule type. + +- [update](/Commands/storage/advanced-platform-metric/_update.md) +: Update the advanced platform metrics rule for the storage account. diff --git a/Commands/storage/readme.md b/Commands/storage/readme.md index 6a82826c8..b7582b797 100644 --- a/Commands/storage/readme.md +++ b/Commands/storage/readme.md @@ -7,6 +7,9 @@ Manage Azure Cloud Storage resources. - [account](/Commands/storage/account/readme.md) : Manage storage accounts. +- [advanced-platform-metric](/Commands/storage/advanced-platform-metric/readme.md) +: Manage Advanced Platform Metric + - [blob](/Commands/storage/blob/readme.md) : Manage object storage for unstructured data (blobs). diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlL3N0b3JhZ2VhY2NvdW50cy97fS9hZHZhbmNlZHBsYXRmb3JtbWV0cmljcw==/2026-04-01.json b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlL3N0b3JhZ2VhY2NvdW50cy97fS9hZHZhbmNlZHBsYXRmb3JtbWV0cmljcw==/2026-04-01.json new file mode 100644 index 000000000..36ae4e4f8 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlL3N0b3JhZ2VhY2NvdW50cy97fS9hZHZhbmNlZHBsYXRmb3JtbWV0cmljcw==/2026-04-01.json @@ -0,0 +1 @@ +{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.storage/storageaccounts/{}/advancedplatformmetrics", "version": "2026-04-01", "swagger": "mgmt-plane/storage/ResourceProviders/Microsoft.Storage/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9zdG9yYWdlQWNjb3VudHMve2FjY291bnROYW1lfS9hZHZhbmNlZFBsYXRmb3JtTWV0cmljcw==/V/MjAyNi0wNC0wMQ=="}], "commandGroups": [{"name": "storage advanced-platform-metric", "commands": [{"name": "list", "version": "2026-04-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.storage/storageaccounts/{}/advancedplatformmetrics", "version": "2026-04-01", "swagger": "mgmt-plane/storage/ResourceProviders/Microsoft.Storage/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9zdG9yYWdlQWNjb3VudHMve2FjY291bnROYW1lfS9hZHZhbmNlZFBsYXRmb3JtTWV0cmljcw==/V/MjAyNi0wNC0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.accountName", "options": ["account-name"], "required": true, "idPart": "name", "help": {"short": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only."}, "format": {"pattern": "^[a-z0-9]+$", "maxLength": 24, "minLength": 3}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "AdvancedPlatformMetrics_List", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/advancedPlatformMetrics", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "accountName", "arg": "$Path.accountName", "required": true, "format": {"pattern": "^[a-z0-9]+$", "maxLength": 24, "minLength": 3}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2026-04-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"type": "array", "name": "value", "required": true, "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Storage/storageAccounts/{}/advancedPlatformMetrics/{}"}}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "boolean", "name": "enabled", "required": true}, {"readOnly": true, "type": "dateTime", "name": "lastModifiedTime", "format": {"protocol": "iso"}}, {"readOnly": true, "type": "array", "name": "metricsEmitted", "item": {"type": "string", "enum": {"items": [{"value": "ContainerBlobCount"}, {"value": "ContainerUsedSize"}]}}}, {"type": "object", "name": "ruleConfig", "required": true, "props": [{"type": "string", "name": "filterType", "enum": {"items": [{"value": "AllContainersFilter"}, {"value": "ContainerListFilter"}, {"value": "ContainerPrefixFilter"}]}}, {"type": "array", "name": "filterValues", "item": {"type": "string"}}]}, {"readOnly": true, "type": "string", "name": "ruleType", "enum": {"items": [{"value": "ContainerLevelCapacityMetrics"}]}}]}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}]}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlL3N0b3JhZ2VhY2NvdW50cy97fS9hZHZhbmNlZHBsYXRmb3JtbWV0cmljcw==/2026-04-01.xml b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlL3N0b3JhZ2VhY2NvdW50cy97fS9hZHZhbmNlZHBsYXRmb3JtbWV0cmljcw==/2026-04-01.xml new file mode 100644 index 000000000..e8a6315d4 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlL3N0b3JhZ2VhY2NvdW50cy97fS9hZHZhbmNlZHBsYXRmb3JtbWV0cmljcw==/2026-04-01.xml @@ -0,0 +1,121 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlL3N0b3JhZ2VhY2NvdW50cy97fS9hZHZhbmNlZHBsYXRmb3JtbWV0cmljcy97fQ==/2026-04-01.json b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlL3N0b3JhZ2VhY2NvdW50cy97fS9hZHZhbmNlZHBsYXRmb3JtbWV0cmljcy97fQ==/2026-04-01.json new file mode 100644 index 000000000..e40a8bc59 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlL3N0b3JhZ2VhY2NvdW50cy97fS9hZHZhbmNlZHBsYXRmb3JtbWV0cmljcy97fQ==/2026-04-01.json @@ -0,0 +1 @@ +{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.storage/storageaccounts/{}/advancedplatformmetrics/{}", "version": "2026-04-01", "swagger": "mgmt-plane/storage/ResourceProviders/Microsoft.Storage/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9zdG9yYWdlQWNjb3VudHMve2FjY291bnROYW1lfS9hZHZhbmNlZFBsYXRmb3JtTWV0cmljcy97YWR2YW5jZWRQbGF0Zm9ybU1ldHJpY3NSdWxlVHlwZX0=/V/MjAyNi0wNC0wMQ=="}], "commandGroups": [{"name": "storage advanced-platform-metric", "commands": [{"name": "show", "version": "2026-04-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.storage/storageaccounts/{}/advancedplatformmetrics/{}", "version": "2026-04-01", "swagger": "mgmt-plane/storage/ResourceProviders/Microsoft.Storage/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9zdG9yYWdlQWNjb3VudHMve2FjY291bnROYW1lfS9hZHZhbmNlZFBsYXRmb3JtTWV0cmljcy97YWR2YW5jZWRQbGF0Zm9ybU1ldHJpY3NSdWxlVHlwZX0=/V/MjAyNi0wNC0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.accountName", "options": ["account-name"], "required": true, "idPart": "name", "help": {"short": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only."}, "format": {"pattern": "^[a-z0-9]+$", "maxLength": 24, "minLength": 3}}, {"type": "string", "var": "$Path.advancedPlatformMetricsRuleType", "options": ["n", "name", "advanced-platform-metrics-rule-type"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "The type of the advanced platform metrics rule."}, "default": {"value": "ContainerLevelCapacityMetrics"}, "enum": {"items": [{"name": "ContainerLevelCapacityMetrics", "value": "ContainerLevelCapacityMetrics"}]}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "AdvancedPlatformMetrics_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/advancedPlatformMetrics/{advancedPlatformMetricsRuleType}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "accountName", "arg": "$Path.accountName", "required": true, "format": {"pattern": "^[a-z0-9]+$", "maxLength": 24, "minLength": 3}}, {"type": "string", "name": "advancedPlatformMetricsRuleType", "arg": "$Path.advancedPlatformMetricsRuleType", "required": true, "enum": {"items": [{"value": "ContainerLevelCapacityMetrics"}]}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2026-04-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Storage/storageAccounts/{}/advancedPlatformMetrics/{}"}}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "boolean", "name": "enabled", "required": true}, {"readOnly": true, "type": "dateTime", "name": "lastModifiedTime", "format": {"protocol": "iso"}}, {"readOnly": true, "type": "array", "name": "metricsEmitted", "item": {"type": "string", "enum": {"items": [{"value": "ContainerBlobCount"}, {"value": "ContainerUsedSize"}]}}}, {"type": "object", "name": "ruleConfig", "required": true, "props": [{"type": "string", "name": "filterType", "enum": {"items": [{"value": "AllContainersFilter"}, {"value": "ContainerListFilter"}, {"value": "ContainerPrefixFilter"}]}}, {"type": "array", "name": "filterValues", "item": {"type": "string"}}]}, {"readOnly": true, "type": "string", "name": "ruleType", "enum": {"items": [{"value": "ContainerLevelCapacityMetrics"}]}}]}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}, {"name": "delete", "version": "2026-04-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.storage/storageaccounts/{}/advancedplatformmetrics/{}", "version": "2026-04-01", "swagger": "mgmt-plane/storage/ResourceProviders/Microsoft.Storage/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9zdG9yYWdlQWNjb3VudHMve2FjY291bnROYW1lfS9hZHZhbmNlZFBsYXRmb3JtTWV0cmljcy97YWR2YW5jZWRQbGF0Zm9ybU1ldHJpY3NSdWxlVHlwZX0=/V/MjAyNi0wNC0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.accountName", "options": ["account-name"], "required": true, "idPart": "name", "help": {"short": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only."}, "format": {"pattern": "^[a-z0-9]+$", "maxLength": 24, "minLength": 3}}, {"type": "string", "var": "$Path.advancedPlatformMetricsRuleType", "options": ["n", "name", "advanced-platform-metrics-rule-type"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "The type of the advanced platform metrics rule."}, "default": {"value": "ContainerLevelCapacityMetrics"}, "enum": {"items": [{"name": "ContainerLevelCapacityMetrics", "value": "ContainerLevelCapacityMetrics"}]}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "AdvancedPlatformMetrics_Delete", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/advancedPlatformMetrics/{advancedPlatformMetricsRuleType}", "request": {"method": "delete", "path": {"params": [{"type": "string", "name": "accountName", "arg": "$Path.accountName", "required": true, "format": {"pattern": "^[a-z0-9]+$", "maxLength": 24, "minLength": 3}}, {"type": "string", "name": "advancedPlatformMetricsRuleType", "arg": "$Path.advancedPlatformMetricsRuleType", "required": true, "enum": {"items": [{"value": "ContainerLevelCapacityMetrics"}]}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2026-04-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200]}, {"statusCode": [204]}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "confirmation": "Are you sure you want to perform this operation?"}, {"name": "create", "version": "2026-04-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.storage/storageaccounts/{}/advancedplatformmetrics/{}", "version": "2026-04-01", "swagger": "mgmt-plane/storage/ResourceProviders/Microsoft.Storage/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9zdG9yYWdlQWNjb3VudHMve2FjY291bnROYW1lfS9hZHZhbmNlZFBsYXRmb3JtTWV0cmljcy97YWR2YW5jZWRQbGF0Zm9ybU1ldHJpY3NSdWxlVHlwZX0=/V/MjAyNi0wNC0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.accountName", "options": ["account-name"], "required": true, "idPart": "name", "help": {"short": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only."}, "format": {"pattern": "^[a-z0-9]+$", "maxLength": 24, "minLength": 3}}, {"type": "string", "var": "$Path.advancedPlatformMetricsRuleType", "options": ["n", "name", "advanced-platform-metrics-rule-type"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "The type of the advanced platform metrics rule."}, "default": {"value": "ContainerLevelCapacityMetrics"}, "enum": {"items": [{"name": "ContainerLevelCapacityMetrics", "value": "ContainerLevelCapacityMetrics"}]}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}, {"name": "Properties", "args": [{"type": "boolean", "var": "$resource.properties.enabled", "options": ["enabled"], "group": "Properties", "help": {"short": "A boolean flag which enables the advanced platform metrics rule."}}]}, {"name": "RuleConfig", "args": [{"type": "string", "var": "$resource.properties.ruleConfig.filterType", "options": ["filter-type", "rule-config-filter-type"], "group": "RuleConfig", "help": {"short": "The type of filter applied to the rule. Possible values include: AllContainersFilter, ContainerPrefixFilter, ContainerListFilter."}, "enum": {"items": [{"name": "AllContainersFilter", "value": "AllContainersFilter"}, {"name": "ContainerListFilter", "value": "ContainerListFilter"}, {"name": "ContainerPrefixFilter", "value": "ContainerPrefixFilter"}]}}, {"type": "array", "var": "$resource.properties.ruleConfig.filterValues", "options": ["filter-values", "rule-config-filter-values"], "group": "RuleConfig", "help": {"short": "The values for the filter applied to the rule. If filter type is AllContainersFilter, filter values should be empty. If filter type is ContainerPrefixFilter, filter values should contain a list of container prefixes. If filter type is ContainerListFilter, filter values should contain a list of container names."}, "item": {"type": "string"}}]}], "operations": [{"operationId": "AdvancedPlatformMetrics_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/advancedPlatformMetrics/{advancedPlatformMetricsRuleType}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "accountName", "arg": "$Path.accountName", "required": true, "format": {"pattern": "^[a-z0-9]+$", "maxLength": 24, "minLength": 3}}, {"type": "string", "name": "advancedPlatformMetricsRuleType", "arg": "$Path.advancedPlatformMetricsRuleType", "required": true, "enum": {"items": [{"value": "ContainerLevelCapacityMetrics"}]}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2026-04-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"schema": {"type": "object", "name": "resource", "required": true, "props": [{"type": "object", "name": "properties", "props": [{"type": "boolean", "name": "enabled", "arg": "$resource.properties.enabled", "required": true}, {"type": "object", "name": "ruleConfig", "required": true, "props": [{"type": "string", "name": "filterType", "arg": "$resource.properties.ruleConfig.filterType", "enum": {"items": [{"value": "AllContainersFilter"}, {"value": "ContainerListFilter"}, {"value": "ContainerPrefixFilter"}]}}, {"type": "array", "name": "filterValues", "arg": "$resource.properties.ruleConfig.filterValues", "item": {"type": "string"}}]}]}], "clientFlatten": true}}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Storage/storageAccounts/{}/advancedPlatformMetrics/{}"}}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "boolean", "name": "enabled", "required": true}, {"readOnly": true, "type": "dateTime", "name": "lastModifiedTime", "format": {"protocol": "iso"}}, {"readOnly": true, "type": "array", "name": "metricsEmitted", "item": {"type": "string", "enum": {"items": [{"value": "ContainerBlobCount"}, {"value": "ContainerUsedSize"}]}}}, {"type": "object", "name": "ruleConfig", "required": true, "props": [{"type": "string", "name": "filterType", "enum": {"items": [{"value": "AllContainersFilter"}, {"value": "ContainerListFilter"}, {"value": "ContainerPrefixFilter"}]}}, {"type": "array", "name": "filterValues", "item": {"type": "string"}}]}, {"readOnly": true, "type": "string", "name": "ruleType", "enum": {"items": [{"value": "ContainerLevelCapacityMetrics"}]}}]}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}, {"name": "update", "version": "2026-04-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.storage/storageaccounts/{}/advancedplatformmetrics/{}", "version": "2026-04-01", "swagger": "mgmt-plane/storage/ResourceProviders/Microsoft.Storage/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9zdG9yYWdlQWNjb3VudHMve2FjY291bnROYW1lfS9hZHZhbmNlZFBsYXRmb3JtTWV0cmljcy97YWR2YW5jZWRQbGF0Zm9ybU1ldHJpY3NSdWxlVHlwZX0=/V/MjAyNi0wNC0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.accountName", "options": ["account-name"], "required": true, "idPart": "name", "help": {"short": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only."}, "format": {"pattern": "^[a-z0-9]+$", "maxLength": 24, "minLength": 3}}, {"type": "string", "var": "$Path.advancedPlatformMetricsRuleType", "options": ["n", "name", "advanced-platform-metrics-rule-type"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "The type of the advanced platform metrics rule."}, "default": {"value": "ContainerLevelCapacityMetrics"}, "enum": {"items": [{"name": "ContainerLevelCapacityMetrics", "value": "ContainerLevelCapacityMetrics"}]}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}, {"name": "Properties", "args": [{"type": "boolean", "var": "$resource.properties.enabled", "options": ["enabled"], "group": "Properties", "help": {"short": "A boolean flag which enables the advanced platform metrics rule."}}]}, {"name": "RuleConfig", "args": [{"nullable": true, "type": "string", "var": "$resource.properties.ruleConfig.filterType", "options": ["filter-type", "rule-config-filter-type"], "group": "RuleConfig", "help": {"short": "The type of filter applied to the rule. Possible values include: AllContainersFilter, ContainerPrefixFilter, ContainerListFilter."}, "enum": {"items": [{"name": "AllContainersFilter", "value": "AllContainersFilter"}, {"name": "ContainerListFilter", "value": "ContainerListFilter"}, {"name": "ContainerPrefixFilter", "value": "ContainerPrefixFilter"}]}}, {"nullable": true, "type": "array", "var": "$resource.properties.ruleConfig.filterValues", "options": ["filter-values", "rule-config-filter-values"], "group": "RuleConfig", "help": {"short": "The values for the filter applied to the rule. If filter type is AllContainersFilter, filter values should be empty. If filter type is ContainerPrefixFilter, filter values should contain a list of container prefixes. If filter type is ContainerListFilter, filter values should contain a list of container names."}, "item": {"nullable": true, "type": "string"}}]}], "operations": [{"operationId": "AdvancedPlatformMetrics_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/advancedPlatformMetrics/{advancedPlatformMetricsRuleType}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "accountName", "arg": "$Path.accountName", "required": true, "format": {"pattern": "^[a-z0-9]+$", "maxLength": 24, "minLength": 3}}, {"type": "string", "name": "advancedPlatformMetricsRuleType", "arg": "$Path.advancedPlatformMetricsRuleType", "required": true, "enum": {"items": [{"value": "ContainerLevelCapacityMetrics"}]}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2026-04-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Storage/storageAccounts/{}/advancedPlatformMetrics/{}"}}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "boolean", "name": "enabled", "required": true}, {"readOnly": true, "type": "dateTime", "name": "lastModifiedTime", "format": {"protocol": "iso"}}, {"readOnly": true, "type": "array", "name": "metricsEmitted", "item": {"type": "string", "enum": {"items": [{"value": "ContainerBlobCount"}, {"value": "ContainerUsedSize"}]}}}, {"type": "object", "name": "ruleConfig", "required": true, "props": [{"type": "string", "name": "filterType", "enum": {"items": [{"value": "AllContainersFilter"}, {"value": "ContainerListFilter"}, {"value": "ContainerPrefixFilter"}]}}, {"type": "array", "name": "filterValues", "item": {"type": "string"}}]}, {"readOnly": true, "type": "string", "name": "ruleType", "enum": {"items": [{"value": "ContainerLevelCapacityMetrics"}]}}]}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "AdvancedPlatformMetricsRule_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"instanceUpdate": {"ref": "$Instance", "json": {"schema": {"type": "object", "name": "resource", "required": true, "props": [{"type": "object", "name": "properties", "props": [{"type": "boolean", "name": "enabled", "arg": "$resource.properties.enabled", "required": true}, {"type": "object", "name": "ruleConfig", "required": true, "props": [{"type": "string", "name": "filterType", "arg": "$resource.properties.ruleConfig.filterType", "enum": {"items": [{"value": "AllContainersFilter"}, {"value": "ContainerListFilter"}, {"value": "ContainerPrefixFilter"}]}}, {"type": "array", "name": "filterValues", "arg": "$resource.properties.ruleConfig.filterValues", "item": {"type": "string"}}]}]}], "clientFlatten": true}}}}, {"operationId": "AdvancedPlatformMetrics_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/advancedPlatformMetrics/{advancedPlatformMetricsRuleType}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "accountName", "arg": "$Path.accountName", "required": true, "format": {"pattern": "^[a-z0-9]+$", "maxLength": 24, "minLength": 3}}, {"type": "string", "name": "advancedPlatformMetricsRuleType", "arg": "$Path.advancedPlatformMetricsRuleType", "required": true, "enum": {"items": [{"value": "ContainerLevelCapacityMetrics"}]}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2026-04-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@AdvancedPlatformMetricsRule_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlL3N0b3JhZ2VhY2NvdW50cy97fS9hZHZhbmNlZHBsYXRmb3JtbWV0cmljcy97fQ==/2026-04-01.xml b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlL3N0b3JhZ2VhY2NvdW50cy97fS9hZHZhbmNlZHBsYXRmb3JtbWV0cmljcy97fQ==/2026-04-01.xml new file mode 100644 index 000000000..6e5d7b301 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlL3N0b3JhZ2VhY2NvdW50cy97fS9hZHZhbmNlZHBsYXRmb3JtbWV0cmljcy97fQ==/2026-04-01.xml @@ -0,0 +1,550 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From ce54d2711be255cfd265b1bec33c4207acceb176 Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Wed, 22 Apr 2026 15:09:44 +0800 Subject: [PATCH 2/3] fix lint, add examples --- .../storage/advanced-platform-metric/_create.md | 17 +++++++++++++++++ .../storage/advanced-platform-metric/_delete.md | 7 +++++++ .../storage/advanced-platform-metric/_list.md | 7 +++++++ .../storage/advanced-platform-metric/_show.md | 7 +++++++ .../storage/advanced-platform-metric/_update.md | 7 +++++++ .../2026-04-01.json | 2 +- .../2026-04-01.xml | 1 - 7 files changed, 46 insertions(+), 2 deletions(-) diff --git a/Commands/storage/advanced-platform-metric/_create.md b/Commands/storage/advanced-platform-metric/_create.md index 49624c1da..cc0be3ab3 100644 --- a/Commands/storage/advanced-platform-metric/_create.md +++ b/Commands/storage/advanced-platform-metric/_create.md @@ -7,3 +7,20 @@ Create the advanced platform metrics rule for the storage account. ### [2026-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlL3N0b3JhZ2VhY2NvdW50cy97fS9hZHZhbmNlZHBsYXRmb3JtbWV0cmljcy97fQ==/2026-04-01.xml) **Preview** + +#### examples + +- Create AllContainersFilter AdvancedPlatformMetric + ```bash + storage advanced-platform-metric create -g resource_group_name --account-name storage_account_name --enabled --rule-config-filter-type AllContainersFilter + ``` + +- Create ContainerPrefixFilter AdvancedPlatformMetric + ```bash + storage advanced-platform-metric create -g resource_group_name --account-name storage_account_name --enabled --rule-config-filter-type ContainerPrefixFilter --rule-config-filter-value logsprefix dataprefix + ``` + +- Create ContainerListFilter AdvancedPlatformMetric + ```bash + storage advanced-platform-metric create -g resource_group_name --account-name storage_account_name --enabled --rule-config-filter-type ContainerListFilter --rule-config-filter-value logs data + ``` diff --git a/Commands/storage/advanced-platform-metric/_delete.md b/Commands/storage/advanced-platform-metric/_delete.md index cea736e26..dc95e7bd7 100644 --- a/Commands/storage/advanced-platform-metric/_delete.md +++ b/Commands/storage/advanced-platform-metric/_delete.md @@ -7,3 +7,10 @@ Delete the advanced platform metrics rule for the storage account by rule type. ### [2026-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlL3N0b3JhZ2VhY2NvdW50cy97fS9hZHZhbmNlZHBsYXRmb3JtbWV0cmljcy97fQ==/2026-04-01.xml) **Preview** + +#### examples + +- Delete advanced platform metrics rule + ```bash + storage advanced-platform-metric delete -g resource_group_name --account-name storage_account_name + ``` diff --git a/Commands/storage/advanced-platform-metric/_list.md b/Commands/storage/advanced-platform-metric/_list.md index 381612ec8..122d9265a 100644 --- a/Commands/storage/advanced-platform-metric/_list.md +++ b/Commands/storage/advanced-platform-metric/_list.md @@ -7,3 +7,10 @@ List the advanced platform metrics rules associated with the storage account. ### [2026-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlL3N0b3JhZ2VhY2NvdW50cy97fS9hZHZhbmNlZHBsYXRmb3JtbWV0cmljcw==/2026-04-01.xml) **Preview** + +#### examples + +- List advanced platform metrics rules + ```bash + storage advanced-platform-metric list -g resource_group_name --account-name storage_account_name + ``` diff --git a/Commands/storage/advanced-platform-metric/_show.md b/Commands/storage/advanced-platform-metric/_show.md index e69322312..f56c57a69 100644 --- a/Commands/storage/advanced-platform-metric/_show.md +++ b/Commands/storage/advanced-platform-metric/_show.md @@ -7,3 +7,10 @@ Get the advanced platform metrics rule for the storage account by rule type. ### [2026-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlL3N0b3JhZ2VhY2NvdW50cy97fS9hZHZhbmNlZHBsYXRmb3JtbWV0cmljcy97fQ==/2026-04-01.xml) **Preview** + +#### examples + +- Get advanced platform metrics rule + ```bash + storage advanced-platform-metric show -g resource_group_name --account-name storage_account_name + ``` diff --git a/Commands/storage/advanced-platform-metric/_update.md b/Commands/storage/advanced-platform-metric/_update.md index 2ae85abfd..c66d497a6 100644 --- a/Commands/storage/advanced-platform-metric/_update.md +++ b/Commands/storage/advanced-platform-metric/_update.md @@ -7,3 +7,10 @@ Update the advanced platform metrics rule for the storage account. ### [2026-04-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlL3N0b3JhZ2VhY2NvdW50cy97fS9hZHZhbmNlZHBsYXRmb3JtbWV0cmljcy97fQ==/2026-04-01.xml) **Preview** + +#### examples + +- Update advanced platform metrics rule + ```bash + storage advanced-platform-metric create -g resource_group_name --account-name storage_account_name --enabled --rule-config-filter-type AllContainersFilter + ``` diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlL3N0b3JhZ2VhY2NvdW50cy97fS9hZHZhbmNlZHBsYXRmb3JtbWV0cmljcy97fQ==/2026-04-01.json b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlL3N0b3JhZ2VhY2NvdW50cy97fS9hZHZhbmNlZHBsYXRmb3JtbWV0cmljcy97fQ==/2026-04-01.json index e40a8bc59..c685f7070 100644 --- a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlL3N0b3JhZ2VhY2NvdW50cy97fS9hZHZhbmNlZHBsYXRmb3JtbWV0cmljcy97fQ==/2026-04-01.json +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlL3N0b3JhZ2VhY2NvdW50cy97fS9hZHZhbmNlZHBsYXRmb3JtbWV0cmljcy97fQ==/2026-04-01.json @@ -1 +1 @@ -{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.storage/storageaccounts/{}/advancedplatformmetrics/{}", "version": "2026-04-01", "swagger": "mgmt-plane/storage/ResourceProviders/Microsoft.Storage/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9zdG9yYWdlQWNjb3VudHMve2FjY291bnROYW1lfS9hZHZhbmNlZFBsYXRmb3JtTWV0cmljcy97YWR2YW5jZWRQbGF0Zm9ybU1ldHJpY3NSdWxlVHlwZX0=/V/MjAyNi0wNC0wMQ=="}], "commandGroups": [{"name": "storage advanced-platform-metric", "commands": [{"name": "show", "version": "2026-04-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.storage/storageaccounts/{}/advancedplatformmetrics/{}", "version": "2026-04-01", "swagger": "mgmt-plane/storage/ResourceProviders/Microsoft.Storage/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9zdG9yYWdlQWNjb3VudHMve2FjY291bnROYW1lfS9hZHZhbmNlZFBsYXRmb3JtTWV0cmljcy97YWR2YW5jZWRQbGF0Zm9ybU1ldHJpY3NSdWxlVHlwZX0=/V/MjAyNi0wNC0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.accountName", "options": ["account-name"], "required": true, "idPart": "name", "help": {"short": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only."}, "format": {"pattern": "^[a-z0-9]+$", "maxLength": 24, "minLength": 3}}, {"type": "string", "var": "$Path.advancedPlatformMetricsRuleType", "options": ["n", "name", "advanced-platform-metrics-rule-type"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "The type of the advanced platform metrics rule."}, "default": {"value": "ContainerLevelCapacityMetrics"}, "enum": {"items": [{"name": "ContainerLevelCapacityMetrics", "value": "ContainerLevelCapacityMetrics"}]}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "AdvancedPlatformMetrics_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/advancedPlatformMetrics/{advancedPlatformMetricsRuleType}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "accountName", "arg": "$Path.accountName", "required": true, "format": {"pattern": "^[a-z0-9]+$", "maxLength": 24, "minLength": 3}}, {"type": "string", "name": "advancedPlatformMetricsRuleType", "arg": "$Path.advancedPlatformMetricsRuleType", "required": true, "enum": {"items": [{"value": "ContainerLevelCapacityMetrics"}]}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2026-04-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Storage/storageAccounts/{}/advancedPlatformMetrics/{}"}}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "boolean", "name": "enabled", "required": true}, {"readOnly": true, "type": "dateTime", "name": "lastModifiedTime", "format": {"protocol": "iso"}}, {"readOnly": true, "type": "array", "name": "metricsEmitted", "item": {"type": "string", "enum": {"items": [{"value": "ContainerBlobCount"}, {"value": "ContainerUsedSize"}]}}}, {"type": "object", "name": "ruleConfig", "required": true, "props": [{"type": "string", "name": "filterType", "enum": {"items": [{"value": "AllContainersFilter"}, {"value": "ContainerListFilter"}, {"value": "ContainerPrefixFilter"}]}}, {"type": "array", "name": "filterValues", "item": {"type": "string"}}]}, {"readOnly": true, "type": "string", "name": "ruleType", "enum": {"items": [{"value": "ContainerLevelCapacityMetrics"}]}}]}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}, {"name": "delete", "version": "2026-04-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.storage/storageaccounts/{}/advancedplatformmetrics/{}", "version": "2026-04-01", "swagger": "mgmt-plane/storage/ResourceProviders/Microsoft.Storage/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9zdG9yYWdlQWNjb3VudHMve2FjY291bnROYW1lfS9hZHZhbmNlZFBsYXRmb3JtTWV0cmljcy97YWR2YW5jZWRQbGF0Zm9ybU1ldHJpY3NSdWxlVHlwZX0=/V/MjAyNi0wNC0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.accountName", "options": ["account-name"], "required": true, "idPart": "name", "help": {"short": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only."}, "format": {"pattern": "^[a-z0-9]+$", "maxLength": 24, "minLength": 3}}, {"type": "string", "var": "$Path.advancedPlatformMetricsRuleType", "options": ["n", "name", "advanced-platform-metrics-rule-type"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "The type of the advanced platform metrics rule."}, "default": {"value": "ContainerLevelCapacityMetrics"}, "enum": {"items": [{"name": "ContainerLevelCapacityMetrics", "value": "ContainerLevelCapacityMetrics"}]}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "AdvancedPlatformMetrics_Delete", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/advancedPlatformMetrics/{advancedPlatformMetricsRuleType}", "request": {"method": "delete", "path": {"params": [{"type": "string", "name": "accountName", "arg": "$Path.accountName", "required": true, "format": {"pattern": "^[a-z0-9]+$", "maxLength": 24, "minLength": 3}}, {"type": "string", "name": "advancedPlatformMetricsRuleType", "arg": "$Path.advancedPlatformMetricsRuleType", "required": true, "enum": {"items": [{"value": "ContainerLevelCapacityMetrics"}]}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2026-04-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200]}, {"statusCode": [204]}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "confirmation": "Are you sure you want to perform this operation?"}, {"name": "create", "version": "2026-04-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.storage/storageaccounts/{}/advancedplatformmetrics/{}", "version": "2026-04-01", "swagger": "mgmt-plane/storage/ResourceProviders/Microsoft.Storage/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9zdG9yYWdlQWNjb3VudHMve2FjY291bnROYW1lfS9hZHZhbmNlZFBsYXRmb3JtTWV0cmljcy97YWR2YW5jZWRQbGF0Zm9ybU1ldHJpY3NSdWxlVHlwZX0=/V/MjAyNi0wNC0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.accountName", "options": ["account-name"], "required": true, "idPart": "name", "help": {"short": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only."}, "format": {"pattern": "^[a-z0-9]+$", "maxLength": 24, "minLength": 3}}, {"type": "string", "var": "$Path.advancedPlatformMetricsRuleType", "options": ["n", "name", "advanced-platform-metrics-rule-type"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "The type of the advanced platform metrics rule."}, "default": {"value": "ContainerLevelCapacityMetrics"}, "enum": {"items": [{"name": "ContainerLevelCapacityMetrics", "value": "ContainerLevelCapacityMetrics"}]}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}, {"name": "Properties", "args": [{"type": "boolean", "var": "$resource.properties.enabled", "options": ["enabled"], "group": "Properties", "help": {"short": "A boolean flag which enables the advanced platform metrics rule."}}]}, {"name": "RuleConfig", "args": [{"type": "string", "var": "$resource.properties.ruleConfig.filterType", "options": ["filter-type", "rule-config-filter-type"], "group": "RuleConfig", "help": {"short": "The type of filter applied to the rule. Possible values include: AllContainersFilter, ContainerPrefixFilter, ContainerListFilter."}, "enum": {"items": [{"name": "AllContainersFilter", "value": "AllContainersFilter"}, {"name": "ContainerListFilter", "value": "ContainerListFilter"}, {"name": "ContainerPrefixFilter", "value": "ContainerPrefixFilter"}]}}, {"type": "array", "var": "$resource.properties.ruleConfig.filterValues", "options": ["filter-values", "rule-config-filter-values"], "group": "RuleConfig", "help": {"short": "The values for the filter applied to the rule. If filter type is AllContainersFilter, filter values should be empty. If filter type is ContainerPrefixFilter, filter values should contain a list of container prefixes. If filter type is ContainerListFilter, filter values should contain a list of container names."}, "item": {"type": "string"}}]}], "operations": [{"operationId": "AdvancedPlatformMetrics_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/advancedPlatformMetrics/{advancedPlatformMetricsRuleType}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "accountName", "arg": "$Path.accountName", "required": true, "format": {"pattern": "^[a-z0-9]+$", "maxLength": 24, "minLength": 3}}, {"type": "string", "name": "advancedPlatformMetricsRuleType", "arg": "$Path.advancedPlatformMetricsRuleType", "required": true, "enum": {"items": [{"value": "ContainerLevelCapacityMetrics"}]}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2026-04-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"schema": {"type": "object", "name": "resource", "required": true, "props": [{"type": "object", "name": "properties", "props": [{"type": "boolean", "name": "enabled", "arg": "$resource.properties.enabled", "required": true}, {"type": "object", "name": "ruleConfig", "required": true, "props": [{"type": "string", "name": "filterType", "arg": "$resource.properties.ruleConfig.filterType", "enum": {"items": [{"value": "AllContainersFilter"}, {"value": "ContainerListFilter"}, {"value": "ContainerPrefixFilter"}]}}, {"type": "array", "name": "filterValues", "arg": "$resource.properties.ruleConfig.filterValues", "item": {"type": "string"}}]}]}], "clientFlatten": true}}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Storage/storageAccounts/{}/advancedPlatformMetrics/{}"}}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "boolean", "name": "enabled", "required": true}, {"readOnly": true, "type": "dateTime", "name": "lastModifiedTime", "format": {"protocol": "iso"}}, {"readOnly": true, "type": "array", "name": "metricsEmitted", "item": {"type": "string", "enum": {"items": [{"value": "ContainerBlobCount"}, {"value": "ContainerUsedSize"}]}}}, {"type": "object", "name": "ruleConfig", "required": true, "props": [{"type": "string", "name": "filterType", "enum": {"items": [{"value": "AllContainersFilter"}, {"value": "ContainerListFilter"}, {"value": "ContainerPrefixFilter"}]}}, {"type": "array", "name": "filterValues", "item": {"type": "string"}}]}, {"readOnly": true, "type": "string", "name": "ruleType", "enum": {"items": [{"value": "ContainerLevelCapacityMetrics"}]}}]}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}, {"name": "update", "version": "2026-04-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.storage/storageaccounts/{}/advancedplatformmetrics/{}", "version": "2026-04-01", "swagger": "mgmt-plane/storage/ResourceProviders/Microsoft.Storage/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9zdG9yYWdlQWNjb3VudHMve2FjY291bnROYW1lfS9hZHZhbmNlZFBsYXRmb3JtTWV0cmljcy97YWR2YW5jZWRQbGF0Zm9ybU1ldHJpY3NSdWxlVHlwZX0=/V/MjAyNi0wNC0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.accountName", "options": ["account-name"], "required": true, "idPart": "name", "help": {"short": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only."}, "format": {"pattern": "^[a-z0-9]+$", "maxLength": 24, "minLength": 3}}, {"type": "string", "var": "$Path.advancedPlatformMetricsRuleType", "options": ["n", "name", "advanced-platform-metrics-rule-type"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "The type of the advanced platform metrics rule."}, "default": {"value": "ContainerLevelCapacityMetrics"}, "enum": {"items": [{"name": "ContainerLevelCapacityMetrics", "value": "ContainerLevelCapacityMetrics"}]}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}, {"name": "Properties", "args": [{"type": "boolean", "var": "$resource.properties.enabled", "options": ["enabled"], "group": "Properties", "help": {"short": "A boolean flag which enables the advanced platform metrics rule."}}]}, {"name": "RuleConfig", "args": [{"nullable": true, "type": "string", "var": "$resource.properties.ruleConfig.filterType", "options": ["filter-type", "rule-config-filter-type"], "group": "RuleConfig", "help": {"short": "The type of filter applied to the rule. Possible values include: AllContainersFilter, ContainerPrefixFilter, ContainerListFilter."}, "enum": {"items": [{"name": "AllContainersFilter", "value": "AllContainersFilter"}, {"name": "ContainerListFilter", "value": "ContainerListFilter"}, {"name": "ContainerPrefixFilter", "value": "ContainerPrefixFilter"}]}}, {"nullable": true, "type": "array", "var": "$resource.properties.ruleConfig.filterValues", "options": ["filter-values", "rule-config-filter-values"], "group": "RuleConfig", "help": {"short": "The values for the filter applied to the rule. If filter type is AllContainersFilter, filter values should be empty. If filter type is ContainerPrefixFilter, filter values should contain a list of container prefixes. If filter type is ContainerListFilter, filter values should contain a list of container names."}, "item": {"nullable": true, "type": "string"}}]}], "operations": [{"operationId": "AdvancedPlatformMetrics_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/advancedPlatformMetrics/{advancedPlatformMetricsRuleType}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "accountName", "arg": "$Path.accountName", "required": true, "format": {"pattern": "^[a-z0-9]+$", "maxLength": 24, "minLength": 3}}, {"type": "string", "name": "advancedPlatformMetricsRuleType", "arg": "$Path.advancedPlatformMetricsRuleType", "required": true, "enum": {"items": [{"value": "ContainerLevelCapacityMetrics"}]}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2026-04-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Storage/storageAccounts/{}/advancedPlatformMetrics/{}"}}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "boolean", "name": "enabled", "required": true}, {"readOnly": true, "type": "dateTime", "name": "lastModifiedTime", "format": {"protocol": "iso"}}, {"readOnly": true, "type": "array", "name": "metricsEmitted", "item": {"type": "string", "enum": {"items": [{"value": "ContainerBlobCount"}, {"value": "ContainerUsedSize"}]}}}, {"type": "object", "name": "ruleConfig", "required": true, "props": [{"type": "string", "name": "filterType", "enum": {"items": [{"value": "AllContainersFilter"}, {"value": "ContainerListFilter"}, {"value": "ContainerPrefixFilter"}]}}, {"type": "array", "name": "filterValues", "item": {"type": "string"}}]}, {"readOnly": true, "type": "string", "name": "ruleType", "enum": {"items": [{"value": "ContainerLevelCapacityMetrics"}]}}]}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "AdvancedPlatformMetricsRule_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"instanceUpdate": {"ref": "$Instance", "json": {"schema": {"type": "object", "name": "resource", "required": true, "props": [{"type": "object", "name": "properties", "props": [{"type": "boolean", "name": "enabled", "arg": "$resource.properties.enabled", "required": true}, {"type": "object", "name": "ruleConfig", "required": true, "props": [{"type": "string", "name": "filterType", "arg": "$resource.properties.ruleConfig.filterType", "enum": {"items": [{"value": "AllContainersFilter"}, {"value": "ContainerListFilter"}, {"value": "ContainerPrefixFilter"}]}}, {"type": "array", "name": "filterValues", "arg": "$resource.properties.ruleConfig.filterValues", "item": {"type": "string"}}]}]}], "clientFlatten": true}}}}, {"operationId": "AdvancedPlatformMetrics_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/advancedPlatformMetrics/{advancedPlatformMetricsRuleType}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "accountName", "arg": "$Path.accountName", "required": true, "format": {"pattern": "^[a-z0-9]+$", "maxLength": 24, "minLength": 3}}, {"type": "string", "name": "advancedPlatformMetricsRuleType", "arg": "$Path.advancedPlatformMetricsRuleType", "required": true, "enum": {"items": [{"value": "ContainerLevelCapacityMetrics"}]}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2026-04-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@AdvancedPlatformMetricsRule_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}]}]} \ No newline at end of file +{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.storage/storageaccounts/{}/advancedplatformmetrics/{}", "version": "2026-04-01", "swagger": "mgmt-plane/storage/ResourceProviders/Microsoft.Storage/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9zdG9yYWdlQWNjb3VudHMve2FjY291bnROYW1lfS9hZHZhbmNlZFBsYXRmb3JtTWV0cmljcy97YWR2YW5jZWRQbGF0Zm9ybU1ldHJpY3NSdWxlVHlwZX0=/V/MjAyNi0wNC0wMQ=="}], "commandGroups": [{"name": "storage advanced-platform-metric", "commands": [{"name": "show", "version": "2026-04-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.storage/storageaccounts/{}/advancedplatformmetrics/{}", "version": "2026-04-01", "swagger": "mgmt-plane/storage/ResourceProviders/Microsoft.Storage/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9zdG9yYWdlQWNjb3VudHMve2FjY291bnROYW1lfS9hZHZhbmNlZFBsYXRmb3JtTWV0cmljcy97YWR2YW5jZWRQbGF0Zm9ybU1ldHJpY3NSdWxlVHlwZX0=/V/MjAyNi0wNC0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.accountName", "options": ["account-name"], "required": true, "idPart": "name", "help": {"short": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only."}, "format": {"pattern": "^[a-z0-9]+$", "maxLength": 24, "minLength": 3}}, {"type": "string", "var": "$Path.advancedPlatformMetricsRuleType", "options": ["n", "name", "advanced-platform-metrics-rule-type"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "The type of the advanced platform metrics rule."}, "default": {"value": "ContainerLevelCapacityMetrics"}, "enum": {"items": [{"name": "ContainerLevelCapacityMetrics", "value": "ContainerLevelCapacityMetrics"}]}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "AdvancedPlatformMetrics_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/advancedPlatformMetrics/{advancedPlatformMetricsRuleType}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "accountName", "arg": "$Path.accountName", "required": true, "format": {"pattern": "^[a-z0-9]+$", "maxLength": 24, "minLength": 3}}, {"type": "string", "name": "advancedPlatformMetricsRuleType", "arg": "$Path.advancedPlatformMetricsRuleType", "required": true, "enum": {"items": [{"value": "ContainerLevelCapacityMetrics"}]}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2026-04-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Storage/storageAccounts/{}/advancedPlatformMetrics/{}"}}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "boolean", "name": "enabled", "required": true}, {"readOnly": true, "type": "dateTime", "name": "lastModifiedTime", "format": {"protocol": "iso"}}, {"readOnly": true, "type": "array", "name": "metricsEmitted", "item": {"type": "string", "enum": {"items": [{"value": "ContainerBlobCount"}, {"value": "ContainerUsedSize"}]}}}, {"type": "object", "name": "ruleConfig", "required": true, "props": [{"type": "string", "name": "filterType", "enum": {"items": [{"value": "AllContainersFilter"}, {"value": "ContainerListFilter"}, {"value": "ContainerPrefixFilter"}]}}, {"type": "array", "name": "filterValues", "item": {"type": "string"}}]}, {"readOnly": true, "type": "string", "name": "ruleType", "enum": {"items": [{"value": "ContainerLevelCapacityMetrics"}]}}]}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}, {"name": "delete", "version": "2026-04-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.storage/storageaccounts/{}/advancedplatformmetrics/{}", "version": "2026-04-01", "swagger": "mgmt-plane/storage/ResourceProviders/Microsoft.Storage/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9zdG9yYWdlQWNjb3VudHMve2FjY291bnROYW1lfS9hZHZhbmNlZFBsYXRmb3JtTWV0cmljcy97YWR2YW5jZWRQbGF0Zm9ybU1ldHJpY3NSdWxlVHlwZX0=/V/MjAyNi0wNC0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.accountName", "options": ["account-name"], "required": true, "idPart": "name", "help": {"short": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only."}, "format": {"pattern": "^[a-z0-9]+$", "maxLength": 24, "minLength": 3}}, {"type": "string", "var": "$Path.advancedPlatformMetricsRuleType", "options": ["n", "name", "advanced-platform-metrics-rule-type"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "The type of the advanced platform metrics rule."}, "default": {"value": "ContainerLevelCapacityMetrics"}, "enum": {"items": [{"name": "ContainerLevelCapacityMetrics", "value": "ContainerLevelCapacityMetrics"}]}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "AdvancedPlatformMetrics_Delete", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/advancedPlatformMetrics/{advancedPlatformMetricsRuleType}", "request": {"method": "delete", "path": {"params": [{"type": "string", "name": "accountName", "arg": "$Path.accountName", "required": true, "format": {"pattern": "^[a-z0-9]+$", "maxLength": 24, "minLength": 3}}, {"type": "string", "name": "advancedPlatformMetricsRuleType", "arg": "$Path.advancedPlatformMetricsRuleType", "required": true, "enum": {"items": [{"value": "ContainerLevelCapacityMetrics"}]}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2026-04-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200]}, {"statusCode": [204]}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "confirmation": "Are you sure you want to perform this operation?"}, {"name": "create", "version": "2026-04-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.storage/storageaccounts/{}/advancedplatformmetrics/{}", "version": "2026-04-01", "swagger": "mgmt-plane/storage/ResourceProviders/Microsoft.Storage/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9zdG9yYWdlQWNjb3VudHMve2FjY291bnROYW1lfS9hZHZhbmNlZFBsYXRmb3JtTWV0cmljcy97YWR2YW5jZWRQbGF0Zm9ybU1ldHJpY3NSdWxlVHlwZX0=/V/MjAyNi0wNC0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.accountName", "options": ["account-name"], "required": true, "idPart": "name", "help": {"short": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only."}, "format": {"pattern": "^[a-z0-9]+$", "maxLength": 24, "minLength": 3}}, {"type": "string", "var": "$Path.advancedPlatformMetricsRuleType", "options": ["n", "name", "advanced-platform-metrics-rule-type"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "The type of the advanced platform metrics rule."}, "default": {"value": "ContainerLevelCapacityMetrics"}, "enum": {"items": [{"name": "ContainerLevelCapacityMetrics", "value": "ContainerLevelCapacityMetrics"}]}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}, {"name": "Properties", "args": [{"type": "boolean", "var": "$resource.properties.enabled", "options": ["enabled"], "group": "Properties", "help": {"short": "A boolean flag which enables the advanced platform metrics rule."}}]}, {"name": "RuleConfig", "args": [{"type": "string", "var": "$resource.properties.ruleConfig.filterType", "options": ["filter-type", "rule-config-filter-type"], "group": "RuleConfig", "help": {"short": "The type of filter applied to the rule. Possible values include: AllContainersFilter, ContainerPrefixFilter, ContainerListFilter."}, "enum": {"items": [{"name": "AllContainersFilter", "value": "AllContainersFilter"}, {"name": "ContainerListFilter", "value": "ContainerListFilter"}, {"name": "ContainerPrefixFilter", "value": "ContainerPrefixFilter"}]}}, {"type": "array", "var": "$resource.properties.ruleConfig.filterValues", "options": ["filter-values", "rule-config-filter-values"], "group": "RuleConfig", "help": {"short": "The values for the filter applied to the rule. If filter type is AllContainersFilter, filter values should be empty. If filter type is ContainerPrefixFilter, filter values should contain a list of container prefixes. If filter type is ContainerListFilter, filter values should contain a list of container names."}, "item": {"type": "string"}}]}], "operations": [{"operationId": "AdvancedPlatformMetrics_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/advancedPlatformMetrics/{advancedPlatformMetricsRuleType}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "accountName", "arg": "$Path.accountName", "required": true, "format": {"pattern": "^[a-z0-9]+$", "maxLength": 24, "minLength": 3}}, {"type": "string", "name": "advancedPlatformMetricsRuleType", "arg": "$Path.advancedPlatformMetricsRuleType", "required": true, "enum": {"items": [{"value": "ContainerLevelCapacityMetrics"}]}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2026-04-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"schema": {"type": "object", "name": "resource", "required": true, "props": [{"type": "object", "name": "properties", "props": [{"type": "boolean", "name": "enabled", "arg": "$resource.properties.enabled", "required": true}, {"type": "object", "name": "ruleConfig", "required": true, "props": [{"type": "string", "name": "filterType", "arg": "$resource.properties.ruleConfig.filterType", "enum": {"items": [{"value": "AllContainersFilter"}, {"value": "ContainerListFilter"}, {"value": "ContainerPrefixFilter"}]}}, {"type": "array", "name": "filterValues", "arg": "$resource.properties.ruleConfig.filterValues", "item": {"type": "string"}}]}]}], "clientFlatten": true}}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Storage/storageAccounts/{}/advancedPlatformMetrics/{}"}}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "boolean", "name": "enabled", "required": true}, {"readOnly": true, "type": "dateTime", "name": "lastModifiedTime", "format": {"protocol": "iso"}}, {"readOnly": true, "type": "array", "name": "metricsEmitted", "item": {"type": "string", "enum": {"items": [{"value": "ContainerBlobCount"}, {"value": "ContainerUsedSize"}]}}}, {"type": "object", "name": "ruleConfig", "required": true, "props": [{"type": "string", "name": "filterType", "enum": {"items": [{"value": "AllContainersFilter"}, {"value": "ContainerListFilter"}, {"value": "ContainerPrefixFilter"}]}}, {"type": "array", "name": "filterValues", "item": {"type": "string"}}]}, {"readOnly": true, "type": "string", "name": "ruleType", "enum": {"items": [{"value": "ContainerLevelCapacityMetrics"}]}}]}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}, {"name": "update", "version": "2026-04-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.storage/storageaccounts/{}/advancedplatformmetrics/{}", "version": "2026-04-01", "swagger": "mgmt-plane/storage/ResourceProviders/Microsoft.Storage/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9zdG9yYWdlQWNjb3VudHMve2FjY291bnROYW1lfS9hZHZhbmNlZFBsYXRmb3JtTWV0cmljcy97YWR2YW5jZWRQbGF0Zm9ybU1ldHJpY3NSdWxlVHlwZX0=/V/MjAyNi0wNC0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.accountName", "options": ["account-name"], "required": true, "idPart": "name", "help": {"short": "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only."}, "format": {"pattern": "^[a-z0-9]+$", "maxLength": 24, "minLength": 3}}, {"type": "string", "var": "$Path.advancedPlatformMetricsRuleType", "options": ["n", "name", "advanced-platform-metrics-rule-type"], "required": true, "group": "", "idPart": "child_name_1", "help": {"short": "The type of the advanced platform metrics rule."}, "enum": {"items": [{"name": "ContainerLevelCapacityMetrics", "value": "ContainerLevelCapacityMetrics"}]}}, {"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}, {"name": "Properties", "args": [{"type": "boolean", "var": "$resource.properties.enabled", "options": ["enabled"], "group": "Properties", "help": {"short": "A boolean flag which enables the advanced platform metrics rule."}}]}, {"name": "RuleConfig", "args": [{"nullable": true, "type": "string", "var": "$resource.properties.ruleConfig.filterType", "options": ["filter-type", "rule-config-filter-type"], "group": "RuleConfig", "help": {"short": "The type of filter applied to the rule. Possible values include: AllContainersFilter, ContainerPrefixFilter, ContainerListFilter."}, "enum": {"items": [{"name": "AllContainersFilter", "value": "AllContainersFilter"}, {"name": "ContainerListFilter", "value": "ContainerListFilter"}, {"name": "ContainerPrefixFilter", "value": "ContainerPrefixFilter"}]}}, {"nullable": true, "type": "array", "var": "$resource.properties.ruleConfig.filterValues", "options": ["filter-values", "rule-config-filter-values"], "group": "RuleConfig", "help": {"short": "The values for the filter applied to the rule. If filter type is AllContainersFilter, filter values should be empty. If filter type is ContainerPrefixFilter, filter values should contain a list of container prefixes. If filter type is ContainerListFilter, filter values should contain a list of container names."}, "item": {"nullable": true, "type": "string"}}]}], "operations": [{"operationId": "AdvancedPlatformMetrics_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/advancedPlatformMetrics/{advancedPlatformMetricsRuleType}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "accountName", "arg": "$Path.accountName", "required": true, "format": {"pattern": "^[a-z0-9]+$", "maxLength": 24, "minLength": 3}}, {"type": "string", "name": "advancedPlatformMetricsRuleType", "arg": "$Path.advancedPlatformMetricsRuleType", "required": true, "enum": {"items": [{"value": "ContainerLevelCapacityMetrics"}]}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2026-04-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Storage/storageAccounts/{}/advancedPlatformMetrics/{}"}}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "boolean", "name": "enabled", "required": true}, {"readOnly": true, "type": "dateTime", "name": "lastModifiedTime", "format": {"protocol": "iso"}}, {"readOnly": true, "type": "array", "name": "metricsEmitted", "item": {"type": "string", "enum": {"items": [{"value": "ContainerBlobCount"}, {"value": "ContainerUsedSize"}]}}}, {"type": "object", "name": "ruleConfig", "required": true, "props": [{"type": "string", "name": "filterType", "enum": {"items": [{"value": "AllContainersFilter"}, {"value": "ContainerListFilter"}, {"value": "ContainerPrefixFilter"}]}}, {"type": "array", "name": "filterValues", "item": {"type": "string"}}]}, {"readOnly": true, "type": "string", "name": "ruleType", "enum": {"items": [{"value": "ContainerLevelCapacityMetrics"}]}}]}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}], "cls": "AdvancedPlatformMetricsRule_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"instanceUpdate": {"ref": "$Instance", "json": {"schema": {"type": "object", "name": "resource", "required": true, "props": [{"type": "object", "name": "properties", "props": [{"type": "boolean", "name": "enabled", "arg": "$resource.properties.enabled", "required": true}, {"type": "object", "name": "ruleConfig", "required": true, "props": [{"type": "string", "name": "filterType", "arg": "$resource.properties.ruleConfig.filterType", "enum": {"items": [{"value": "AllContainersFilter"}, {"value": "ContainerListFilter"}, {"value": "ContainerPrefixFilter"}]}}, {"type": "array", "name": "filterValues", "arg": "$resource.properties.ruleConfig.filterValues", "item": {"type": "string"}}]}]}], "clientFlatten": true}}}}, {"operationId": "AdvancedPlatformMetrics_CreateOrUpdate", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/advancedPlatformMetrics/{advancedPlatformMetricsRuleType}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "accountName", "arg": "$Path.accountName", "required": true, "format": {"pattern": "^[a-z0-9]+$", "maxLength": 24, "minLength": 3}}, {"type": "string", "name": "advancedPlatformMetricsRuleType", "arg": "$Path.advancedPlatformMetricsRuleType", "required": true, "enum": {"items": [{"value": "ContainerLevelCapacityMetrics"}]}}, {"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2026-04-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200, 201], "body": {"json": {"var": "$Instance", "schema": {"type": "@AdvancedPlatformMetricsRule_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}]}]} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlL3N0b3JhZ2VhY2NvdW50cy97fS9hZHZhbmNlZHBsYXRmb3JtbWV0cmljcy97fQ==/2026-04-01.xml b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlL3N0b3JhZ2VhY2NvdW50cy97fS9hZHZhbmNlZHBsYXRmb3JtbWV0cmljcy97fQ==/2026-04-01.xml index 6e5d7b301..c9ba4f4a0 100644 --- a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlL3N0b3JhZ2VhY2NvdW50cy97fS9hZHZhbmNlZHBsYXRmb3JtbWV0cmljcy97fQ==/2026-04-01.xml +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlL3N0b3JhZ2VhY2NvdW50cy97fS9hZHZhbmNlZHBsYXRmb3JtbWV0cmljcy97fQ==/2026-04-01.xml @@ -348,7 +348,6 @@ - From 383a952f62cf6e3511c804739aa1a00e5ea1dd12 Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Mon, 27 Apr 2026 15:32:29 +0800 Subject: [PATCH 3/3] fix lint --- Commands/storage/advanced-platform-metric/_create.md | 4 ++-- Commands/storage/advanced-platform-metric/_update.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Commands/storage/advanced-platform-metric/_create.md b/Commands/storage/advanced-platform-metric/_create.md index cc0be3ab3..31ec49036 100644 --- a/Commands/storage/advanced-platform-metric/_create.md +++ b/Commands/storage/advanced-platform-metric/_create.md @@ -17,10 +17,10 @@ Create the advanced platform metrics rule for the storage account. - Create ContainerPrefixFilter AdvancedPlatformMetric ```bash - storage advanced-platform-metric create -g resource_group_name --account-name storage_account_name --enabled --rule-config-filter-type ContainerPrefixFilter --rule-config-filter-value logsprefix dataprefix + storage advanced-platform-metric create -g resource_group_name --account-name storage_account_name --enabled --rule-config-filter-type ContainerPrefixFilter --rule-config-filter-values logsprefix dataprefix ``` - Create ContainerListFilter AdvancedPlatformMetric ```bash - storage advanced-platform-metric create -g resource_group_name --account-name storage_account_name --enabled --rule-config-filter-type ContainerListFilter --rule-config-filter-value logs data + storage advanced-platform-metric create -g resource_group_name --account-name storage_account_name --enabled --rule-config-filter-type ContainerListFilter --rule-config-filter-values logs data ``` diff --git a/Commands/storage/advanced-platform-metric/_update.md b/Commands/storage/advanced-platform-metric/_update.md index c66d497a6..a92a27a41 100644 --- a/Commands/storage/advanced-platform-metric/_update.md +++ b/Commands/storage/advanced-platform-metric/_update.md @@ -12,5 +12,5 @@ Update the advanced platform metrics rule for the storage account. - Update advanced platform metrics rule ```bash - storage advanced-platform-metric create -g resource_group_name --account-name storage_account_name --enabled --rule-config-filter-type AllContainersFilter + storage advanced-platform-metric update -g resource_group_name --account-name storage_account_name --enabled --rule-config-filter-type AllContainersFilter ```