Skip to content

Commit 2bb79e0

Browse files
authored
Merge pull request #7414 from wastoresh/locationusage
[Storage] Add warning message for get global usage is obsolete
2 parents 0635d12 + abf6829 commit 2bb79e0

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

src/ResourceManager/Storage/Commands.Management.Storage/ChangeLog.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!--
1+
,<!--
22
Please leave this section at the top of the change log.
33

44
Changes for the current release should go under the section titled "Current Release", and should adhere to the following format:
@@ -18,7 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Current Release
21-
* Support get the Storage resource usage of a specific location
21+
* Support get the Storage resource usage of a specific location, and add warning message for get global Storage resource usage is obsolete.
2222
- Get-AzureRmStorageUsage
2323

2424
## Version 5.1.0

src/ResourceManager/Storage/Commands.Management.Storage/StorageAccount/GetAzureStorageUsage.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public override void ExecuteCmdlet()
3939
IEnumerable<Usage> usages;
4040
if (Location == null)
4141
{
42+
WriteWarning("Get global storage usage is obsolete, please use get location usage with -Location Parameter instead.");
4243
usages = this.StorageClient.Usages.List();
4344
}
4445
else

src/ResourceManager/Storage/documentation/upcoming-breaking-changes.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,19 @@
2525
https://github.com/Azure/azure-powershell/blob/dev/documentation/breaking-changes/breaking-change-template.md
2626
-->
2727

28-
# Upcoming Breaking Changes
28+
# Upcoming Breaking Changes
29+
30+
Release 7.0.0 - November 2018
31+
32+
The following cmdlets were affected this release:
33+
34+
**Get-AzureRmStorageUsage**
35+
- The -Location parameter changes from optional to mandatory. User must specify -Location to get Storage resource usage, since get global Storage resource usage is obsolete.
36+
37+
```powershell
38+
# Old
39+
$usage = Get-AzureRmStorageUsage
40+
41+
# New
42+
$usage = Get-AzureRmStorageUsage -Location $location
43+
```

0 commit comments

Comments
 (0)