You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Get the usage of file service in storage account including account limits, file share limits and constants used in recommendations and bursting formula.
: Get the usage of file service in storage account including account limits, file share limits and constants used in recommendations and bursting formula.
Create a new share under the specified account as described by request body. The share resource includes metadata and properties for that share. It does not include a list of the files contained by the share.
- Create a new Azure file share 'myfileshare' with metadata and quota as 10 GB under the storage account 'mystorageaccount'(account name) in resource group 'MyResourceGroup'.
- Create a new Azure file share 'myfileshare' with metadata and quota as 6000 GB under the storage account 'mystorageaccount'(account name) which enables large file share in resource group 'MyResourceGroup'.
- Create a new Azure file share 'myfileshare' under the storage account 'mystorageaccount' which enables provisionedv2 in resource group 'MyResourceGroup'.
Delete the specified Azure file share or share snapshot.
4
+
5
+
Delete the specified Azure file share or share snapshot. \
6
+
BREAKING CHANGE: Snapshot can not be deleted by default and we have added a new parameter to use if you want to include sanpshots for delete operation.
- Show the properties for an Azure file share 'myfileshare' under the storage account 'mystorageaccount' (account name) in resource group 'MyResourceGroup'.
14
+
```bash
15
+
storage share-rm show -g MyResourceGroup --storage-account mystorageaccount --name myfileshare
16
+
```
17
+
18
+
- Show the properties for an Azure file share 'myfileshare' under the storage account 'mystorageaccount' (account id).
19
+
```bash
20
+
storage share-rm show --storage-account mystorageaccount --name myfileshare
21
+
```
22
+
23
+
- Show the properties of an Azure file share by resource id.
24
+
```bash
25
+
storage share-rm show --ids file-share-id
26
+
```
27
+
28
+
- Show the properties of an Azure file share snapshot
29
+
```bash
30
+
storage share-rm show --ids file-share-id --snapshot "2021-03-25T05:29:56.0000000Z"
Update a new share under the specified account as described by request body. The share resource includes metadata and properties for that share. It does not include a list of the files contained by the share.
- Update the properties for an Azure file share 'myfileshare' under the storage account 'mystorageaccount' (account name) in resource group 'MyResourceGroup'.
Manage Azure file shares using the Microsoft.Storage resource provider.
4
+
5
+
## Commands
6
+
7
+
-[create](/Commands/storage/share-rm/_create.md)
8
+
: Create a new share under the specified account as described by request body. The share resource includes metadata and properties for that share. It does not include a list of the files contained by the share.
9
+
10
+
-[delete](/Commands/storage/share-rm/_delete.md)
11
+
: Delete the specified Azure file share or share snapshot.
12
+
13
+
-[list](/Commands/storage/share-rm/_list.md)
14
+
: List all shares.
15
+
16
+
-[show](/Commands/storage/share-rm/_show.md)
17
+
: Show the properties for a specified Azure file share or share snapshot.
18
+
19
+
-[update](/Commands/storage/share-rm/_update.md)
20
+
: Update a new share under the specified account as described by request body. The share resource includes metadata and properties for that share. It does not include a list of the files contained by the share.
0 commit comments