9

ターゲット フレームワークを 4.5.1 から 4.6 に変更した後、Azure Fail 内のサービスはローカル デプロイが機能しています。

.Net 4.6 サポートを追加する必要がありますか? - Azure のクラスターで使用できるフレームワークを確認できる場所が見つかりません。

ありがとうございました

ApplicationName: fabric:/Lending20.Service.IdentityManagement AggregatedHealthState
: エラー UnhealthyEvaluations: 異常なサービス: 100% (1/1)、ServiceType='IdentityManagementServiceType'、MaxPercentUnhealthyServices=0%。

異常なサービス: ServiceName='fabric:/Lending20.Service.IdentityManagement/Identity ManagementService'、AggregatedHealthState='Error'。

異常なパーティション: 100% (1/1)、MaxPercentUnhealthyPartitionsPerService=0%。

異常なパーティション: PartitionId='7c68b397-fda3-491d-9e17-921cd24217ca'、AggregatedHealthState='Error'。

エラー イベント: SourceId='System.FM'、Property='State'。

ServiceHealthStates: ServiceName: fabric:/Lending20.Service.IdentityManagement/IdentityManagementService AggregatedHealthState: エラー

DeployedApplicationHealthStates: ApplicationName: fabric:/Lending20.Service.IdentityManagement NodeName: _lending1 AggregatedHealthState: Ok

HealthEvents: SourceId: System.CM Property: State HealthState: Ok SequenceNumber: 3464 SentAt: 11/21/2015 12:38:08 PM ReceivedAt: 11/21/2015 12:38:08 PM TTL: Infinite Description: アプリケーションが作成した。RemoveWhenExpired : False IsExpired : False トランジション : 警告->Ok = 2015 年 11 月 21 日 12:38:

4

6 に答える 6

17

次の ARM テンプレートを使用して、.NET 4.6.1 をインストールできます。このスクリプトに依存していることに注意してください(Service Profiler によって使用されます)。また、他の PowerShell スクリプトに置き換えることもできます。

パラメータはノードのベース名です。したがって、クラスターに VM0、.. VM5 がある場合は、vmName = 'VM' を設定する必要があります。はvmExtensionLoop5 ノードに設定されています。もちろん変更することもできます。

ARM テンプレートを使用してクラスターをデプロイする場合、これをその一部として含めることができます。再起動が必要になるため、スケール セットのデプロイが遅くなる可能性があることに注意してください。

{
  "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "vmName": {
      "type": "string",
      "metadata": {
        "description": "Virtual machine name."
      },
    }
  },
  "resources": [
    {
      "apiVersion": "2015-05-01-preview",
      "type": "Microsoft.Compute/virtualMachines/extensions",
      "name": "[concat(parameters('vmName'),copyIndex(0), '/CustomScriptExtensionInstallNet461')]",
      "location": "[variables('location')]",
      "tags": {
        "displayName": "CustomScriptExtensionInstallNet461"
      },
      "properties": {
        "publisher": "Microsoft.Compute",
        "type": "CustomScriptExtension",
        "typeHandlerVersion": "1.4",
        "autoUpgradeMinorVersion": true,
        "settings": {
          "fileUris": [ "https://gist.githubusercontent.com/aelij/7ea90dda4a187a482584/raw/a3e0f946d4a22b0af803edb503d0a30a263fba2c/InstallNetFx461.ps1" ],
          "commandToExecute": "powershell.exe -ExecutionPolicy Unrestricted -File InstallNetFx461.ps1"
        }
      },
      "copy": {
        "name": "vmExtensionLoop",
        "count": 5
      }
    }
  ]
}
于 2015-12-11T11:09:22.223 に答える
0

4.6 が Azure でネイティブにサポートされるまでは、.NET 4.6 がプリインストールされたカスタム VM イメージを使用します。作成方法と使用方法の詳細については、この記事を参照してください。

于 2016-06-09T16:00:33.093 に答える
0

もう 1 つのオプションは、DSC 拡張機能を含む Azure リソース グループ テンプレートを使用して、.net 46 がインストールされるように VM をプロビジョニングすることです。より完全なスクリプトの .net 461コードまたは要点のインストールに対処するための私の dsc powershell のスニペットを次に示し ます。

于 2015-12-08T21:26:07.080 に答える