Skip to content

Commit 27ff424

Browse files
{Compute} Fix #20091: Add missing kind parameter to storage account c… (#20111)
* {Compute} Fix #20091: Add missing kind parameter to storage account create command Fixes #20091 * Update ChangeLog.md * Update ChangeLog.md
1 parent 40c91d1 commit 27ff424

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Compute/Compute/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
-->
2222
## Upcoming Release
2323
* Fixed `Get-AzVm` cmdlet when parameter "-Status" is provided, return property `OsName`, `OsVersion` and `HyperVGeneration`
24+
* Fixed `New-AzVM` cmdlet when creating VM with bootdiagnostic storage causes exception `Kind` cannot be null.
2425

2526
## Version 5.1.0
2627
* Fixed EdgeZone does not pass to VM for `New-AzVM` "SimpleParameterSet" [#18978]

src/Compute/Compute/VirtualMachine/Operation/NewAzureVMCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,6 +1226,7 @@ private string CreateStandardStorageAccount(StorageManagementClient client)
12261226

12271227
var storaeAccountParameter = new StorageAccountCreateParameters
12281228
{
1229+
Kind = "StorageV2",
12291230
Location = this.Location ?? this.VM.Location,
12301231
ExtendedLocation = extendedLocation
12311232
};

0 commit comments

Comments
 (0)