Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions Commands/storage/advanced-platform-metric/_create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# [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**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.storage/storageaccounts/{}/advancedplatformmetrics/{} 2026-04-01 -->

#### 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-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-values logs data
```
16 changes: 16 additions & 0 deletions Commands/storage/advanced-platform-metric/_delete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [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**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.storage/storageaccounts/{}/advancedplatformmetrics/{} 2026-04-01 -->

#### examples

- Delete advanced platform metrics rule
```bash
storage advanced-platform-metric delete -g resource_group_name --account-name storage_account_name
```
16 changes: 16 additions & 0 deletions Commands/storage/advanced-platform-metric/_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [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**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.storage/storageaccounts/{}/advancedplatformmetrics 2026-04-01 -->

#### examples

- List advanced platform metrics rules
```bash
storage advanced-platform-metric list -g resource_group_name --account-name storage_account_name
```
16 changes: 16 additions & 0 deletions Commands/storage/advanced-platform-metric/_show.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [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**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.storage/storageaccounts/{}/advancedplatformmetrics/{} 2026-04-01 -->

#### examples

- Get advanced platform metrics rule
```bash
storage advanced-platform-metric show -g resource_group_name --account-name storage_account_name
```
16 changes: 16 additions & 0 deletions Commands/storage/advanced-platform-metric/_update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# [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**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.storage/storageaccounts/{}/advancedplatformmetrics/{} 2026-04-01 -->

#### examples

- Update advanced platform metrics rule
```bash
storage advanced-platform-metric update -g resource_group_name --account-name storage_account_name --enabled --rule-config-filter-type AllContainersFilter
```
20 changes: 20 additions & 0 deletions Commands/storage/advanced-platform-metric/readme.md
Original file line number Diff line number Diff line change
@@ -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.
3 changes: 3 additions & 0 deletions Commands/storage/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down
Original file line number Diff line number Diff line change
@@ -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<object>", "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<string>", "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<string>", "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"}]}]}]}
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.storage/storageaccounts/{}/advancedplatformmetrics" version="2026-04-01" swagger="mgmt-plane/storage/ResourceProviders/Microsoft.Storage/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9zdG9yYWdlQWNjb3VudHMve2FjY291bnROYW1lfS9hZHZhbmNlZFBsYXRmb3JtTWV0cmljcw==/V/MjAyNi0wNC0wMQ=="/>
<commandGroup name="storage advanced-platform-metric">
<command name="list" version="2026-04-01">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.storage/storageaccounts/{}/advancedplatformmetrics" version="2026-04-01" swagger="mgmt-plane/storage/ResourceProviders/Microsoft.Storage/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9zdG9yYWdlQWNjb3VudHMve2FjY291bnROYW1lfS9hZHZhbmNlZFBsYXRmb3JtTWV0cmljcw==/V/MjAyNi0wNC0wMQ=="/>
<argGroup name="">
<arg 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"/>
</arg>
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
</argGroup>
<operation operationId="AdvancedPlatformMetrics_List">
<http path="/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/advancedPlatformMetrics">
<request method="get">
<path>
<param type="string" name="accountName" arg="$Path.accountName" required="True">
<format pattern="^[a-z0-9]+$" maxLength="24" minLength="3"/>
</param>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="uuid" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2026-04-01&quot;"/>
<format minLength="1"/>
</const>
</query>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="object">
<prop type="string" name="nextLink"/>
<prop type="array<object>" name="value" required="True">
<item type="object">
<prop readOnly="True" type="ResourceId" name="id">
<format template="/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Storage/storageAccounts/{}/advancedPlatformMetrics/{}"/>
</prop>
<prop readOnly="True" type="string" name="name"/>
<prop type="object" name="properties">
<prop type="boolean" name="enabled" required="True"/>
<prop readOnly="True" type="dateTime" name="lastModifiedTime">
<format protocol="iso"/>
</prop>
<prop readOnly="True" type="array<string>" name="metricsEmitted">
<item type="string">
<enum>
<item value="&quot;ContainerBlobCount&quot;"/>
<item value="&quot;ContainerUsedSize&quot;"/>
</enum>
</item>
</prop>
<prop type="object" name="ruleConfig" required="True">
<prop type="string" name="filterType">
<enum>
<item value="&quot;AllContainersFilter&quot;"/>
<item value="&quot;ContainerListFilter&quot;"/>
<item value="&quot;ContainerPrefixFilter&quot;"/>
</enum>
</prop>
<prop type="array<string>" name="filterValues">
<item type="string"/>
</prop>
</prop>
<prop readOnly="True" type="string" name="ruleType">
<enum>
<item value="&quot;ContainerLevelCapacityMetrics&quot;"/>
</enum>
</prop>
</prop>
<prop readOnly="True" type="object" name="systemData">
<prop type="dateTime" name="createdAt">
<format protocol="iso"/>
</prop>
<prop type="string" name="createdBy"/>
<prop type="string" name="createdByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
<prop type="dateTime" name="lastModifiedAt">
<format protocol="iso"/>
</prop>
<prop type="string" name="lastModifiedBy"/>
<prop type="string" name="lastModifiedByType">
<enum>
<item value="&quot;Application&quot;"/>
<item value="&quot;Key&quot;"/>
<item value="&quot;ManagedIdentity&quot;"/>
<item value="&quot;User&quot;"/>
</enum>
</prop>
</prop>
<prop readOnly="True" type="string" name="type"/>
</item>
</prop>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="array" ref="$Instance.value" clientFlatten="True" nextLink="$Instance.nextLink"/>
</command>
</commandGroup>
</CodeGen>

Large diffs are not rendered by default.

Loading
Loading