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
12 changes: 12 additions & 0 deletions Commands/storage-discovery/workspace/_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,15 @@ Create a StorageDiscoveryWorkspace
az storage-discovery workspace create --resource-group myRG --name myWorkspace --location francecentral --workspace-roots "/subscriptions/mySubId/resourceGroups/myRG" --scopes '[{"displayName":"basic","resourceTypes":["Microsoft.Storage/storageAccounts"]}]'
storage-discovery workspace create --resource-group myRG --name myWorkspace --location francecentral --description "My workspace for storage discovery" --sku Standard --workspace-roots "/subscriptions/mySubId/resourceGroups/myRG" --scopes '[{"displayName":"production","resourceTypes":["Microsoft.Storage/storageAccounts"],"tagKeysOnly":["environment"],"tags":{"project":"demo","tier":"prod"}}]'
```

### [2025-09-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlZGlzY292ZXJ5L3N0b3JhZ2VkaXNjb3Zlcnl3b3Jrc3BhY2VzL3t9/2025-09-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.storagediscovery/storagediscoveryworkspaces/{} 2025-09-01 -->

#### examples

- Create or Update a StorageDiscoveryWorkspace
```bash
az storage-discovery workspace create --resource-group myRG --name myWorkspace --location francecentral --workspace-roots "/subscriptions/mySubId/resourceGroups/myRG" --scopes '[{"displayName":"basic","resourceTypes":["Microsoft.Storage/storageAccounts"]}]'
storage-discovery workspace create --resource-group myRG --name myWorkspace --location francecentral --description "My workspace for storage discovery" --sku Standard --workspace-roots "/subscriptions/mySubId/resourceGroups/myRG" --scopes '[{"displayName":"production","resourceTypes":["Microsoft.Storage/storageAccounts"],"tagKeysOnly":["environment"],"tags":{"project":"demo","tier":"prod"}}]'
```
11 changes: 11 additions & 0 deletions Commands/storage-discovery/workspace/_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@ Delete a StorageDiscoveryWorkspace
```bash
storage-discovery workspace delete --resource-group myRG --name myWorkspace
```

### [2025-09-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlZGlzY292ZXJ5L3N0b3JhZ2VkaXNjb3Zlcnl3b3Jrc3BhY2VzL3t9/2025-09-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.storagediscovery/storagediscoveryworkspaces/{} 2025-09-01 -->

#### examples

- Delete a StorageDiscoveryWorkspace
```bash
storage-discovery workspace delete --resource-group myRG --name myWorkspace
```
13 changes: 13 additions & 0 deletions Commands/storage-discovery/workspace/_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,16 @@ List StorageDiscoveryWorkspace resources by subscription ID
storage-discovery workspace list
storage-discovery workspace list --resource-group myRG
```

### [2025-09-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlZGlzY292ZXJ5L3N0b3JhZ2VkaXNjb3Zlcnl3b3Jrc3BhY2Vz/2025-09-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.storagediscovery/storagediscoveryworkspaces 2025-09-01 -->
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.storagediscovery/storagediscoveryworkspaces 2025-09-01 -->

#### examples

- List StorageDiscoveryWorkspaces by Subscription
```bash
storage-discovery workspace list
storage-discovery workspace list --resource-group myRG
```
11 changes: 11 additions & 0 deletions Commands/storage-discovery/workspace/_show.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@ Get a StorageDiscoveryWorkspace
```bash
storage-discovery workspace show --resource-group myRG --name myWorkspace
```

### [2025-09-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlZGlzY292ZXJ5L3N0b3JhZ2VkaXNjb3Zlcnl3b3Jrc3BhY2VzL3t9/2025-09-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.storagediscovery/storagediscoveryworkspaces/{} 2025-09-01 -->

#### examples

- Get a StorageDiscoveryWorkspace
```bash
storage-discovery workspace show --resource-group myRG --name myWorkspace
```
11 changes: 11 additions & 0 deletions Commands/storage-discovery/workspace/_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@ Update a StorageDiscoveryWorkspace
```bash
storage-discovery workspace update --resource-group myRG --name myWorkspace --description "Updated description" --sku Free --scopes '[{"displayName":"updated","resourceTypes":["Microsoft.Storage/storageAccounts"],"tags":{"environment":"test"}}]' --tags environment=production team=storage
```

### [2025-09-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5zdG9yYWdlZGlzY292ZXJ5L3N0b3JhZ2VkaXNjb3Zlcnl3b3Jrc3BhY2VzL3t9/2025-09-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.storagediscovery/storagediscoveryworkspaces/{} 2025-09-01 -->

#### examples

- Update a StorageDiscoveryWorkspace
```bash
storage-discovery workspace update --resource-group myRG --name myWorkspace --description "Updated description" --sku Free --scopes '[{"displayName":"updated","resourceTypes":["Microsoft.Storage/storageAccounts"],"tags":{"environment":"test"}}]' --tags environment=production team=storage
```
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/providers/microsoft.storagediscovery/storagediscoveryworkspaces", "version": "2025-09-01", "swagger": "mgmt-plane/storagediscovery/ResourceProviders/Microsoft.StorageDiscovery/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2VEaXNjb3Zlcnkvc3RvcmFnZURpc2NvdmVyeVdvcmtzcGFjZXM=/V/MjAyNS0wOS0wMQ=="}, {"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.storagediscovery/storagediscoveryworkspaces", "version": "2025-09-01", "swagger": "mgmt-plane/storagediscovery/ResourceProviders/Microsoft.StorageDiscovery/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZURpc2NvdmVyeS9zdG9yYWdlRGlzY292ZXJ5V29ya3NwYWNlcw==/V/MjAyNS0wOS0wMQ=="}], "commandGroups": [{"name": "storage-discovery workspace", "commands": [{"name": "list", "version": "2025-09-01", "resources": [{"id": "/subscriptions/{}/providers/microsoft.storagediscovery/storagediscoveryworkspaces", "version": "2025-09-01", "swagger": "mgmt-plane/storagediscovery/ResourceProviders/Microsoft.StorageDiscovery/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2VEaXNjb3Zlcnkvc3RvcmFnZURpc2NvdmVyeVdvcmtzcGFjZXM=/V/MjAyNS0wOS0wMQ=="}, {"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.storagediscovery/storagediscoveryworkspaces", "version": "2025-09-01", "swagger": "mgmt-plane/storagediscovery/ResourceProviders/Microsoft.StorageDiscovery/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZURpc2NvdmVyeS9zdG9yYWdlRGlzY292ZXJ5V29ya3NwYWNlcw==/V/MjAyNS0wOS0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "conditions": [{"var": "$Condition_StorageDiscoveryWorkspaces_ListBySubscription", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.subscriptionId"}, {"type": "not", "operator": {"type": "hasValue", "arg": "$Path.resourceGroupName"}}]}}, {"var": "$Condition_StorageDiscoveryWorkspaces_ListByResourceGroup", "operator": {"type": "and", "operators": [{"type": "hasValue", "arg": "$Path.resourceGroupName"}, {"type": "hasValue", "arg": "$Path.subscriptionId"}]}}], "operations": [{"when": ["$Condition_StorageDiscoveryWorkspaces_ListBySubscription"], "operationId": "StorageDiscoveryWorkspaces_ListBySubscription", "http": {"path": "/subscriptions/{subscriptionId}/providers/Microsoft.StorageDiscovery/storageDiscoveryWorkspaces", "request": {"method": "get", "path": {"params": [{"type": "uuid", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2025-09-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.StorageDiscovery/storageDiscoveryWorkspaces/{}"}}, {"type": "ResourceLocation", "name": "location", "required": true}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "description"}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Canceled"}, {"value": "Failed"}, {"value": "Succeeded"}]}}, {"type": "array<object>", "name": "scopes", "required": true, "item": {"type": "object", "props": [{"type": "string", "name": "displayName", "required": true, "format": {"pattern": "^[a-zA-Z0-9]+([ -][a-zA-Z0-9]+)*$", "maxLength": 64, "minLength": 4}}, {"type": "array<string>", "name": "resourceTypes", "required": true, "item": {"type": "string", "enum": {"items": [{"value": "Microsoft.Storage/storageAccounts"}]}}}, {"type": "array<string>", "name": "tagKeysOnly", "item": {"type": "string"}}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}]}, "identifiers": ["displayName"]}, {"default": {"value": "Standard"}, "type": "string", "name": "sku", "enum": {"items": [{"value": "Free"}, {"value": "Standard"}]}}, {"type": "array<ResourceId>", "name": "workspaceRoots", "required": true, "item": {"type": "ResourceId"}}]}, {"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"}]}}]}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}, {"when": ["$Condition_StorageDiscoveryWorkspaces_ListByResourceGroup"], "operationId": "StorageDiscoveryWorkspaces_ListByResourceGroup", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageDiscovery/storageDiscoveryWorkspaces", "request": {"method": "get", "path": {"params": [{"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": "2025-09-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.StorageDiscovery/storageDiscoveryWorkspaces/{}"}}, {"type": "ResourceLocation", "name": "location", "required": true}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "description"}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Canceled"}, {"value": "Failed"}, {"value": "Succeeded"}]}}, {"type": "array<object>", "name": "scopes", "required": true, "item": {"type": "object", "props": [{"type": "string", "name": "displayName", "required": true, "format": {"pattern": "^[a-zA-Z0-9]+([ -][a-zA-Z0-9]+)*$", "maxLength": 64, "minLength": 4}}, {"type": "array<string>", "name": "resourceTypes", "required": true, "item": {"type": "string", "enum": {"items": [{"value": "Microsoft.Storage/storageAccounts"}]}}}, {"type": "array<string>", "name": "tagKeysOnly", "item": {"type": "string"}}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}]}, "identifiers": ["displayName"]}, {"default": {"value": "Standard"}, "type": "string", "name": "sku", "enum": {"items": [{"value": "Free"}, {"value": "Standard"}]}}, {"type": "array<ResourceId>", "name": "workspaceRoots", "required": true, "item": {"type": "ResourceId"}}]}, {"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"}]}}]}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}], "confirmation": ""}]}]}
Loading