Azure / Azure/azure-cli

azurestackhci storagepath create example invalid

Open
#26,239 3 comments 0 reactions 1 assignee Assigned to @zhoxing-ms View on GitHub
Azure CLI Team AzureStackHCI feature-request Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Related command**

az azurestackhci storagepath create

**Describe the bug**

The example syntax is invalid. The --name of the storagepath can only be lowercase and contain hyphens. Also, the sample --path value is invalid--using a double backslash cause the replication to fail with an error like:

```
The local path 'c:\\clusterstorage\\csv-defaultvms\\da677371194d46c' of storage container '/subscriptions***/resourceGroups/rg-hcicluster/providers/Microsoft.AzureStackHCI/storageContainers/default-storagepath' in HCI Cluster 'hcicluster.fcride.com' is not correct.
```

**To Reproduce**

Follow the example and feel the pain.

**Expected behavior**

**Environment summary**

Preview extension version: 0.2.6
HCI Cluster Node

**Additional context**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.