Skip to content

Commit 18b9182

Browse files
committed
Adding extension name and publisher to get/remove ASM cmdlets that got ommitted during refactoring
1 parent e27e3b8 commit 18b9182

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/DSC/GetAzureVMDscExtension.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ protected override void ProcessRecord()
4343

4444
private void ExecuteCommand()
4545
{
46+
extensionName = DscExtensionCmdletConstants.ExtensionPublishedName;
47+
publisherName = DscExtensionCmdletConstants.ExtensionPublishedNamespace;
48+
4649
List<ResourceExtensionReference> extensionRefs = GetPredicateExtensionList();
4750
WriteObject(
4851
extensionRefs == null ? null : extensionRefs.Select(

src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/DSC/RemoveAzureVMDscExtension.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using System.Management.Automation;
16+
using Microsoft.WindowsAzure.Commands.Common.Extensions.DSC;
1617
using Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions.DSC;
1718
using Microsoft.WindowsAzure.Commands.ServiceManagement.Model;
1819
using Microsoft.WindowsAzure.Commands.ServiceManagement.Properties;
@@ -44,6 +45,9 @@ protected override void ProcessRecord()
4445
}
4546
private void ExecuteCommand()
4647
{
48+
extensionName = DscExtensionCmdletConstants.ExtensionPublishedName;
49+
publisherName = DscExtensionCmdletConstants.ExtensionPublishedNamespace;
50+
4751
//this parameter needs to be true for remove to work
4852
Uninstall = true;
4953
Version = DscExtensionCmdletCommonBase.DefaultExtensionVersion;

src/ServiceManagement/Compute/Commands.ServiceManagement/IaaS/Extensions/DSC/SetAzureVMDscExtension.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,6 @@ private class ConfigurationUris
145145
public string ModulesUrl { get; set; }
146146
}
147147

148-
public SetAzureVMDscExtension()
149-
{
150-
this.extensionName = DscExtensionCmdletConstants.ExtensionPublishedName;
151-
this.publisherName = DscExtensionCmdletConstants.ExtensionPublishedNamespace;
152-
}
153-
154148
protected override void ProcessRecord()
155149
{
156150
base.ProcessRecord();
@@ -159,6 +153,9 @@ protected override void ProcessRecord()
159153

160154
internal void ExecuteCommand()
161155
{
156+
extensionName = DscExtensionCmdletConstants.ExtensionPublishedName;
157+
publisherName = DscExtensionCmdletConstants.ExtensionPublishedNamespace;
158+
162159
ValidateParameters();
163160

164161
CreateConfiguration();

0 commit comments

Comments
 (0)