2016-11-17 52 views
1

當部署ARM模板創建虛擬機規模集時,最終的azure診斷擴展安裝失敗。Azure虛擬機規模集:Microsoft.Azure.Diagnostics.IaaSDiagnostics已退出,退出代碼爲:-3

Handler 'Microsoft.Azure.Diagnostics.IaaSDiagnostics' has reported failure for VM Extension 'VMDiagnostics_Name' with terminal error code '1009' and error message: 'Enable failed for plugin (name: Microsoft.Azure.Diagnostics.IaaSDiagnostics, version 1.7.4.0) with exception Command C:\Packages\Plugins\Microsoft.Azure.Diagnostics.IaaSDiagnostics\1.7.4.0\DiagnosticsPluginLauncher.exe of Microsoft.Azure.Diagnostics.IaaSDiagnostics has exited with Exit code: -3'

看不到是什麼原因造成的問題,當遠程桌面連接到服務器之一。

從ARM模板(標準):

"extensionProfile": { 
    "extensions": [ (...) 
{ 
    "properties": { 
     "publisher": "Microsoft.Azure.Diagnostics", 
     "type": "IaaSDiagnostics", 
     "typeHandlerVersion": "1.5", 
     "autoUpgradeMinorVersion": true, 
     "settings": { 
      "WadCfg": { 
       "DiagnosticMonitorConfiguration": { 
        "overallQuotaInMB": "50000", 
        "EtwProviders": { 
         "EtwEventSourceProviderConfiguration": [ 
          { 
           "provider": "Microsoft-ServiceFabric-Actors", 
           "scheduledTransferKeywordFilter": "1", 
           "scheduledTransferPeriod": "PT5M", 
           "DefaultEvents": { 
            "eventDestination": "ServiceFabricReliableActorEventTable" 
           } 
          }, 
          { 
           "provider": "Microsoft-ServiceFabric-Services", 
           "scheduledTransferPeriod": "PT5M", 
           "DefaultEvents": { 
            "eventDestination": "ServiceFabricReliableServiceEventTable" 
           } 
          } 
         ], 
         "EtwManifestProviderConfiguration": [ 
          { 
           "provider": "cbd93bc2-71e5-4566-b3a7-595d8eeca6e8", 
           "scheduledTransferLogLevelFilter": "Information", 
           "scheduledTransferKeywordFilter": "4611686018427387904", 
           "scheduledTransferPeriod": "PT5M", 
           "DefaultEvents": { 
            "eventDestination": "ServiceFabricSystemEventTable" 
           } 
          } 
         ] 
        } 
       } 
      }, 
      "StorageAccount": "storageaccountname" 
     } 
    }, 
    "name": "VMDiagnostics_Name" 
} 

任何人都知道什麼是突破此部署?

+0

得到相同的問題和退出代碼。 – DannyThunder

回答

1

我在其中一個集羣VMSS上遇到同樣的問題。我還沒有解決它,但我挖了一個虛擬機,並檢查Windows日誌,退出是由於在運行時設置文件中缺少證書指紋: C:\ Packages \ Plugins \ Microsoft.Azure.Diagnostics.IaaSDiagnostics \ 1.7.4.0 \ RuntimeSettings 在工作VMSS配置的設置文件有:

{ 
    "runtimeSettings": [ 
    { 
     "handlerSettings": { 
     "protectedSettingsCertThumbprint": "7F7682DBF9CB9C4D8F6768602973A49CC16D2523" 

,其中指紋是 「TenantEncryptionCert」。失敗的VMSS具有等效的證書,但設置文件缺少指紋條目。我刪除了擴展名,然後嘗試重新部署但結果相同。

+0

這可能也是導致我的問題。我確實有一些證書問題。最後,我放棄了嘗試重新部署從現有實例導出的模板,並使用市場上的「創建」服務結構重新創建模板。然後只是編輯回我所需要的。 – MetalMichael