Поделиться через


Upgrade the configuration of a cluster in Azure

This article describes how to customize the various fabric settings for your Service Fabric cluster. For clusters hosted in Azure, you can customize settings through the Azure portal or by using an Azure Resource Manager template.

Примечание.

Not all settings are available in the portal, and it is a best practice to customize it using an Azure Resource Manager template; Portal is for Service Fabric Dev\Test scenario's only.

Примечание.

Мы рекомендуем использовать модуль Azure Az PowerShell для взаимодействия с Azure. Сведения о начале работы см. в статье "Установка Azure PowerShell". Чтобы узнать, как перейти на модуль Az PowerShell, см. статью Миграция Azure PowerShell с AzureRM на Az.

Customize cluster settings using Resource Manager templates

Azure clusters can be configured through the JSON Resource Manager template. To learn more about the different settings, see Configuration settings for clusters. As an example, the steps below show how to add a new setting MaxDiskQuotaInMB to the Diagnostics section using Azure Resource Explorer.

  1. Перейдите по адресу https://resources.azure.com
  2. Navigate to your subscription by expanding subscriptions -><Your Subscription> ->resourceGroups -><Your Resource Group> ->providers ->Microsoft.ServiceFabric ->clusters -><Your Cluster Name>
  3. In the top right corner, select Read/Write.
  4. Select Edit and update the fabricSettings JSON element and add a new element:
{
  "name": "Diagnostics",
  "parameters": [
    {
      "name": "MaxDiskQuotaInMB",
      "value": "65536"
    }
  ]
}

You can also customize cluster settings in one of the following ways with Azure Resource Manager:

Дальнейшие действия