File tree Expand file tree Collapse file tree 3 files changed +0
-9
lines changed
src/ResourceManager/Compute/Commands.Compute/VirtualMachine/Operation Expand file tree Collapse file tree 3 files changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -86,10 +86,6 @@ public override void ExecuteCmdlet()
86
86
{
87
87
var result = this . VirtualMachineClient . GetWithHttpMessagesAsync (
88
88
this . ResourceGroupName , this . Name ) . GetAwaiter ( ) . GetResult ( ) ;
89
- //var op = this.VirtualMachineClient.GetWithHttpMessagesAsync(
90
- // this.ResourceGroupName, this.Name);
91
- //var wait = op.GetAwaiter();
92
- //var result = wait.GetResult();
93
89
94
90
var psResult = Mapper . Map < PSVirtualMachine > ( result ) ;
95
91
if ( result . Body != null )
Original file line number Diff line number Diff line change @@ -96,7 +96,6 @@ public override void ExecuteCmdlet()
96
96
parameters ) ;
97
97
var wait = op . GetAwaiter ( ) ;
98
98
var resultop = wait . GetResult ( ) ;
99
- //.GetAwaiter().GetResult();
100
99
var result = Mapper . Map < PSAzureOperationResponse > ( resultop ) ;
101
100
102
101
if ( ! ( this . DisableBginfoExtension . IsPresent || IsLinuxOs ( ) ) )
@@ -110,12 +109,9 @@ public override void ExecuteCmdlet()
110
109
{
111
110
Location = this . Location ,
112
111
Publisher = VirtualMachineBGInfoExtensionContext . ExtensionDefaultPublisher ,
113
- //VirtualMachineExtensionType = VirtualMachineExtensionType,
114
112
VirtualMachineExtensionType = VirtualMachineBGInfoExtensionContext . ExtensionDefaultName ,
115
113
TypeHandlerVersion = currentBginfoVersion ,
116
114
AutoUpgradeMinorVersion = true ,
117
- //Settings = "{}",
118
- //ProtectedSettings = "{}"
119
115
} ;
120
116
121
117
typeof ( Resource ) . GetRuntimeProperty ( "Name" ) . SetValue ( extensionParameters , VirtualMachineBGInfoExtensionContext . ExtensionDefaultName ) ;
Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ public override void ExecuteCmdlet()
50
50
Plan = this . VM . Plan ,
51
51
AvailabilitySet = this . VM . AvailabilitySetReference ,
52
52
Location = this . VM . Location ,
53
- //Name = this.VM.Name,
54
53
Tags = this . Tags != null ? this . Tags . ToDictionary ( ) : this . VM . Tags
55
54
} ;
56
55
You can’t perform that action at this time.
0 commit comments