File tree Expand file tree Collapse file tree 3 files changed +0
-43
lines changed
src/ResourceManager/SiteRecovery/Commands.SiteRecovery Expand file tree Collapse file tree 3 files changed +0
-43
lines changed Original file line number Diff line number Diff line change @@ -27,31 +27,6 @@ namespace Microsoft.Azure.Commands.SiteRecovery
27
27
/// </summary>
28
28
public partial class PSRecoveryServicesClient
29
29
{
30
- /// <summary>
31
- /// Gets all fabrics associated with a vault.
32
- /// </summary>
33
- /// <param name="callback">Callback to execute on the result.</param>
34
- /// <returns>Task object tracking async operation.</returns>
35
- public Task EnumerateFabricsAsync ( Action < IEnumerable < Fabric > > callback )
36
- {
37
- CancellationToken cancellationToken = new CancellationToken ( ) ;
38
-
39
- Task backgroundTask = new Task ( new Action ( ( ) =>
40
- {
41
- Task < FabricListResponse > storageTask =
42
- this . GetSiteRecoveryClient ( ) . Fabrics . ListAsync (
43
- this . GetRequestHeaders ( ) ,
44
- cancellationToken ) ;
45
-
46
- Task . WaitAll ( storageTask ) ;
47
-
48
- callback ( storageTask . Result . Fabrics ) ;
49
- } ) ) ;
50
-
51
- backgroundTask . Start ( ) ;
52
- return backgroundTask ;
53
- }
54
-
55
30
/// <summary>
56
31
/// Gets Azure Site Recovery Fabrics.
57
32
/// </summary>
Original file line number Diff line number Diff line change @@ -1349,11 +1349,6 @@ public class ASRStorageClassification
1349
1349
/// Gets or sets Storage classification friendly name.
1350
1350
/// </summary>
1351
1351
public string FriendlyName { get ; set ; }
1352
-
1353
- /// <summary>
1354
- /// Gets or sets Fabric friendly name.
1355
- /// </summary>
1356
- public string FabricFriendlyName { get ; set ; }
1357
1352
}
1358
1353
1359
1354
/// <summary>
Original file line number Diff line number Diff line change @@ -58,24 +58,14 @@ public override void ExecuteSiteRecoveryCmdlet()
58
58
{
59
59
base . ExecuteSiteRecoveryCmdlet ( ) ;
60
60
61
- List < Fabric > fabrics = new List < Fabric > ( ) ;
62
61
List < StorageClassification > storageClassifications = new List < StorageClassification > ( ) ;
63
62
64
- Task fabricTask = RecoveryServicesClient . EnumerateFabricsAsync ( ( entities ) =>
65
- {
66
- fabrics . AddRange ( entities ) ;
67
- } ) ;
68
-
69
63
Task storageClassificationTask =
70
64
RecoveryServicesClient . EnumerateStorageClassificationsAsync ( ( entities ) =>
71
65
{
72
66
storageClassifications . AddRange ( entities ) ;
73
67
} ) ;
74
68
75
- Task . WaitAll ( fabricTask , storageClassificationTask ) ;
76
-
77
- var fabricMap = fabrics . ToDictionary ( item => item . Id , item => item ) ;
78
-
79
69
switch ( this . ParameterSetName )
80
70
{
81
71
case ASRParameterSets . ByFriendlyName :
@@ -100,11 +90,8 @@ public override void ExecuteSiteRecoveryCmdlet()
100
90
101
91
var psObject = storageClassifications . ConvertAll ( item =>
102
92
{
103
- var fabric = fabricMap [ item . GetFabricId ( ) ] ;
104
-
105
93
return new ASRStorageClassification ( )
106
94
{
107
- FabricFriendlyName = fabric . Properties . FriendlyName ,
108
95
FriendlyName = item . Properties . FriendlyName ,
109
96
Id = item . Id ,
110
97
Name = item . Name
You can’t perform that action at this time.
0 commit comments