Skip to content

Commit 95bc3f9

Browse files
committed
add setazstorageaccount
1 parent d1eacc4 commit 95bc3f9

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ public override void ExecuteCmdlet()
580580
}
581581
}
582582
}
583-
}
583+
}
584584
}
585585

586586
if (StorageEncryption || ParameterSetName == KeyvaultEncryptionParameterSet || this.KeyVaultUserAssignedIdentityId != null)
@@ -619,13 +619,13 @@ public override void ExecuteCmdlet()
619619
var originStorageAccount = this.StorageClientTrack2.GetSingleStorageAccount(this.ResourceGroupName, this.Name);
620620

621621
if (originStorageAccount.Data.AzureFilesIdentityBasedAuthentication != null
622-
&& originStorageAccount.Data.AzureFilesIdentityBasedAuthentication.DirectoryServiceOptions == Track2Models.DirectoryServiceOptions.AD)
622+
&& originStorageAccount.Data.AzureFilesIdentityBasedAuthentication.DirectoryServiceOptions == Track2Models.DirectoryServiceOption.AD)
623623
{
624624
throw new System.ArgumentException("The Storage account already enabled ActiveDirectoryDomainServicesForFile, please disable it by run this cmdlets with \"-EnableActiveDirectoryDomainServicesForFile $false\" before enable AzureActiveDirectoryDomainServicesForFile.");
625625
}
626626

627627
storageAccountPatch.AzureFilesIdentityBasedAuthentication =
628-
new Track2Models.AzureFilesIdentityBasedAuthentication(Track2Models.DirectoryServiceOptions.Aadds);
628+
new Track2Models.AzureFilesIdentityBasedAuthentication(Track2Models.DirectoryServiceOption.Aadds);
629629

630630
}
631631
else //Disable AADDS
@@ -635,10 +635,10 @@ public override void ExecuteCmdlet()
635635
var originStorageAccount = this.StorageClientTrack2.GetSingleStorageAccount(this.ResourceGroupName, this.Name);
636636

637637
if (originStorageAccount.Data.AzureFilesIdentityBasedAuthentication == null
638-
|| originStorageAccount.Data.AzureFilesIdentityBasedAuthentication.DirectoryServiceOptions == Track2Models.DirectoryServiceOptions.Aadds)
638+
|| originStorageAccount.Data.AzureFilesIdentityBasedAuthentication.DirectoryServiceOptions == Track2Models.DirectoryServiceOption.Aadds)
639639
{
640640
storageAccountPatch.AzureFilesIdentityBasedAuthentication =
641-
new Track2Models.AzureFilesIdentityBasedAuthentication(Track2Models.DirectoryServiceOptions.None);
641+
new Track2Models.AzureFilesIdentityBasedAuthentication(Track2Models.DirectoryServiceOption.None);
642642
}
643643
else
644644
{
@@ -671,13 +671,13 @@ public override void ExecuteCmdlet()
671671

672672

673673
if (originStorageAccount.Data.AzureFilesIdentityBasedAuthentication != null
674-
&& originStorageAccount.Data.AzureFilesIdentityBasedAuthentication.DirectoryServiceOptions == Track2Models.DirectoryServiceOptions.Aadds)
674+
&& originStorageAccount.Data.AzureFilesIdentityBasedAuthentication.DirectoryServiceOptions == Track2Models.DirectoryServiceOption.Aadds)
675675
{
676676
throw new System.ArgumentException("The Storage account already enabled AzureActiveDirectoryDomainServicesForFile, please disable it by run this cmdlets with \"-EnableAzureActiveDirectoryDomainServicesForFile $false\" before enable ActiveDirectoryDomainServicesForFile.");
677677
}
678678

679679
storageAccountPatch.AzureFilesIdentityBasedAuthentication =
680-
new Track2Models.AzureFilesIdentityBasedAuthentication(Track2Models.DirectoryServiceOptions.AD);
680+
new Track2Models.AzureFilesIdentityBasedAuthentication(Track2Models.DirectoryServiceOption.AD);
681681

682682
storageAccountPatch.AzureFilesIdentityBasedAuthentication.ActiveDirectoryProperties =
683683
new Track2Models.ActiveDirectoryProperties(this.ActiveDirectoryDomainName, this.ActiveDirectoryNetBiosDomainName,
@@ -707,10 +707,10 @@ public override void ExecuteCmdlet()
707707
var originStorageAccount = this.StorageClientTrack2.GetSingleStorageAccount(this.ResourceGroupName, this.Name);
708708

709709
if (originStorageAccount.Data.AzureFilesIdentityBasedAuthentication == null
710-
|| originStorageAccount.Data.AzureFilesIdentityBasedAuthentication.DirectoryServiceOptions == Track2Models.DirectoryServiceOptions.AD)
710+
|| originStorageAccount.Data.AzureFilesIdentityBasedAuthentication.DirectoryServiceOptions == Track2Models.DirectoryServiceOption.AD)
711711
{
712712
storageAccountPatch.AzureFilesIdentityBasedAuthentication =
713-
new Track2Models.AzureFilesIdentityBasedAuthentication(Track2Models.DirectoryServiceOptions.None);
713+
new Track2Models.AzureFilesIdentityBasedAuthentication(Track2Models.DirectoryServiceOption.None);
714714

715715
}
716716
else
@@ -726,7 +726,7 @@ public override void ExecuteCmdlet()
726726
{
727727
storageAccountPatch.AzureFilesIdentityBasedAuthentication =
728728
new Track2Models.AzureFilesIdentityBasedAuthentication(
729-
Track2Models.DirectoryServiceOptions.None);
729+
Track2Models.DirectoryServiceOption.None);
730730
}
731731

732732
storageAccountPatch.AzureFilesIdentityBasedAuthentication.DefaultSharePermission = this.DefaultSharePermission;

0 commit comments

Comments
 (0)