Skip to content

Commit f8638f9

Browse files
authored
Fix a issue cause SDK breaking change (#14307)
1 parent 320cf96 commit f8638f9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Storage/Storage.Management/StorageAccount/NewAzureStorageAccount.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ public override void ExecuteCmdlet()
420420

421421
if (AssignIdentity.IsPresent)
422422
{
423-
createParameters.Identity = new Identity();
423+
createParameters.Identity = new Identity() { Type = IdentityType.SystemAssigned };
424424
}
425425
if (NetworkRuleSet != null)
426426
{

src/Storage/Storage.Management/StorageAccount/SetAzureStorageAccount.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ public override void ExecuteCmdlet()
421421

422422
if (AssignIdentity.IsPresent)
423423
{
424-
updateParameters.Identity = new Identity();
424+
updateParameters.Identity = new Identity() { Type = IdentityType.SystemAssigned };
425425
}
426426

427427
if (StorageEncryption || (ParameterSetName == KeyvaultEncryptionParameterSet))

0 commit comments

Comments
 (0)