@@ -40,8 +40,8 @@ namespace Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.Extensions
40
40
public class GetAzureVMSqlServerExtensionCommand : VirtualMachineSqlServerExtensionCmdletBase
41
41
{
42
42
protected const string GetSqlServerExtensionParamSetName = "GetSqlServerExtension" ;
43
- protected const string AutoPatchingStatusMessageName = "Automatic Patching" ;
44
- protected const string AutoBackupStatusMessageName = "Automatic Backup" ;
43
+ protected const string AutoPatchingStatusMessageName = "Automated Patching" ;
44
+ protected const string AutoBackupStatusMessageName = "Automated Backup" ;
45
45
46
46
internal void ExecuteCommand ( )
47
47
{
@@ -89,18 +89,15 @@ private VirtualMachineSqlServerExtensionContext GetExtensionContext(ResourceExte
89
89
// Note: valid reference to an extension status list is returned by GetResourceExtensionStatusList()
90
90
foreach ( NSM . ResourceExtensionStatus res in extensionStatusList )
91
91
{
92
- // Extension handler name in format publisher.ReferenceName
93
- string extensionHandlerName = string . Format ( CultureInfo . InvariantCulture ,
94
- "{0}.{1}" ,
95
- r . Publisher ,
96
- r . ReferenceName ) ;
97
-
98
- // skip all non-sql extensions
99
- if ( ! res . HandlerName . Equals ( extensionHandlerName , System . StringComparison . InvariantCulture ) )
92
+ // Expected ReferenceName = "Microsoft.SqlServer.Management.SqlIaaSAgent"
93
+ if ( ! res . HandlerName . Equals ( r . ReferenceName , System . StringComparison . InvariantCulture ) )
100
94
{
95
+ // skip all non-sql extensions
101
96
continue ;
102
97
}
103
98
99
+ WriteVerboseWithTimestamp ( "Found SQL Extension:" + r . ReferenceName ) ;
100
+
104
101
if ( null != res . ExtensionSettingStatus )
105
102
{
106
103
context . SubStatusList = res . ExtensionSettingStatus . SubStatusList ;
0 commit comments