|
| 1 | +# Azure CLI Pscloud Extension # |
| 2 | + |
| 3 | +This is an extension to Azure CLI to manage PureStorage Cloud resources including reservations and storage pools. |
| 4 | + |
| 5 | +## How to use ## |
| 6 | + |
| 7 | +### Install the extension ### |
| 8 | + |
| 9 | +Install this extension using the below CLI command: |
| 10 | +``` |
| 11 | +az extension add --name pscloud |
| 12 | +``` |
| 13 | + |
| 14 | +### Check the version ### |
| 15 | + |
| 16 | +``` |
| 17 | +az extension show --name pscloud --query version |
| 18 | +``` |
| 19 | + |
| 20 | +### Connect to Azure subscription ### |
| 21 | + |
| 22 | +``` |
| 23 | +az login |
| 24 | +az account set -s {subscription_id} |
| 25 | +``` |
| 26 | + |
| 27 | +### Create a resource group (or use an existing one) ### |
| 28 | + |
| 29 | +``` |
| 30 | +az group create -n demoResourceGroup -l eastus |
| 31 | +``` |
| 32 | + |
| 33 | +## Available Commands ## |
| 34 | + |
| 35 | +#### Show a PureStorage Cloud Resource #### |
| 36 | + |
| 37 | +``` |
| 38 | +az pscloud show --resource-group {resource_group} --name {reservation_name} |
| 39 | +``` |
| 40 | + |
| 41 | +#### List PureStorage Cloud Resources #### |
| 42 | + |
| 43 | +``` |
| 44 | +az pscloud list --resource-group {resource_group} |
| 45 | +``` |
| 46 | + |
| 47 | +#### Create a Storage Pool #### |
| 48 | + |
| 49 | +``` |
| 50 | +az pscloud pool create --resource-group {resource_group} --storage-pool-name {storage_pool_name} --location {location} --availability-zone {availability_zone} --vnet-injection '{{"subnet-id": "{subnet_id}", "vnet-id": "{vnet_id}"}}' --provisioned-bandwidth {bandwidth_mb_per_sec} --reservation-id {reservation_resource_id} --system-assigned --user-assigned {user_assigned_identity_ids} --tags "{key:value}" |
| 51 | +``` |
| 52 | + |
| 53 | +#### Show a Storage Pool #### |
| 54 | + |
| 55 | +``` |
| 56 | +az pscloud pool show --resource-group {resource_group} --storage-pool-name {storage_pool_name} |
| 57 | +``` |
| 58 | + |
| 59 | +#### List Storage Pools #### |
| 60 | + |
| 61 | +``` |
| 62 | +az pscloud pool list --resource-group {resource_group} |
| 63 | +``` |
| 64 | + |
| 65 | +#### Update a Storage Pool #### |
| 66 | + |
| 67 | +``` |
| 68 | +az pscloud pool update --resource-group {resource_group} --name {storage_pool_name} --provisioned-bandwidth {bandwidth_mb_per_sec} |
| 69 | +``` |
| 70 | + |
| 71 | +#### Delete a Storage Pool #### |
| 72 | + |
| 73 | +``` |
| 74 | +az pscloud pool delete --resource-group {resource_group} --storage-pool-name {storage_pool_name} |
| 75 | +``` |
| 76 | + |
| 77 | +#### Get Storage Pool Health Status #### |
| 78 | + |
| 79 | +``` |
| 80 | +az pscloud pool get-health-status --resource-group {resource_group} --storage-pool-name {storage_pool_name} |
| 81 | +``` |
| 82 | + |
| 83 | +#### Get Storage Pool AVS Status #### |
| 84 | + |
| 85 | +``` |
| 86 | +az pscloud pool get-avs-status --resource-group {resource_group} --storage-pool-name {storage_pool_name} |
| 87 | +``` |
| 88 | + |
| 89 | +If you have issues, please give feedback by opening an issue at https://github.com/Azure/azure-cli-extensions/issues. |
0 commit comments