服务模型 XML 架构元素

AddRemoveIncrementalNamedPartitionScalingMechanism 元素

定义用于添加或删除已命名分区的机制。

属性 Value
type 匿名的 complexType
内容 0 个元素,3 个属性
defined ScalingPolicyMechanismGroup 组本地
name AddRemoveIncrementalNamedPartitionScalingMechanism
minOccurs 0
maxOccurs 1

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="AddRemoveIncrementalNamedPartitionScalingMechanism" minOccurs="0" maxOccurs="1">
                <xs:annotation>
                    <xs:documentation>Defines a mechanism for adding or removing named partitions.</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:attribute name="MinPartitionCount" type="xs:string" use="required">
                        <xs:annotation>
                            <xs:documentation>The minimum number of partitions.</xs:documentation>
                        </xs:annotation>
                    </xs:attribute>
                    <xs:attribute name="MaxPartitionCount" type="xs:string" use="required">
                        <xs:annotation>
                            <xs:documentation>The maximum number of partitions.</xs:documentation>
                        </xs:annotation>
                    </xs:attribute>
                    <xs:attribute name="ScaleIncrement" type="xs:string" use="required">
                        <xs:annotation>
                            <xs:documentation>The number of partitions by which to perform the upshift/downshift.</xs:documentation>
                        </xs:annotation>
                    </xs:attribute>
                </xs:complexType>
            </xs:element>

属性详细信息

MinPartitionCount

最小分区数。

属性
name MinPartitionCount
type xs:string
use 必填

MaxPartitionCount

最大分区数。

属性
name MaxPartitionCount
type xs:string
use 必填

ScaleIncrement

作为执行升档/降档依据的分区数。

属性
name ScaleIncrement
type xs:string
use 必填

Application 元素

用于创建应用程序的特定于应用程序实例的信息,例如应用程序名称和应用程序参数值。 此文件中的参数值重写应用程序清单中定义的默认参数值。

属性 Value
type AppInstanceDefinitionType
content 0 个元素,0 个属性
defined globally
name 应用程序

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Application" type="AppInstanceDefinitionType">
                <xs:annotation>
                        <xs:documentation>Application Instance specific information like application name and application parameter values used to create application. Parameter values in this file overrides the default parameter values defined in Application Manifest.</xs:documentation>
                </xs:annotation>
        </xs:element>

ApplicationEndpoints 元素

属性 Value
type 匿名的 complexType
内容 0 个元素,2 个属性
defined FabricEndpointsType complexType 本地
name ApplicationEndpoints
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ApplicationEndpoints" minOccurs="0">
        <xs:complexType>
          <xs:attribute name="StartPort" type="xs:int" use="required"/>
          <xs:attribute name="EndPort" type="xs:int" use="required"/>
        </xs:complexType>
      </xs:element>

属性详细信息

StartPort

属性
name StartPort
type xs:int
use 必填

EndPort

属性
name EndPort
type xs:int
use 必填

ApplicationInstance 元素

描述 Azure Service Fabric 应用程序的实例。

Attribute Value
type ApplicationInstanceType
content 0 个元素,0 个属性
defined globally
name ApplicationInstance

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ApplicationInstance" type="ApplicationInstanceType">
    <xs:annotation>
      <xs:documentation>Describes an instance of an Azure Service Fabric application.</xs:documentation>
    </xs:annotation>
  </xs:element>

ApplicationManifest 元素

以声明方式描述应用程序类型和版本。 引用构成服务的一个或多个服务清单来撰写应用程序类型。 可以使用参数化应用程序设置重写构成服务的配置设置。 默认服务、服务模板、主体、策略、诊断设置和证书也可以在应用程序级别声明。

属性 Value
type ApplicationManifestType
content 0 个元素,0 个属性
defined globally
name ApplicationManifest

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ApplicationManifest" type="ApplicationManifestType"/>

ApplicationPackage 元素

ApplicationPackage 表示节点所需的带版本应用程序信息。

属性 Value
type ApplicationPackageType
content 0 个元素,0 个属性
defined globally
name ApplicationPackage

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ApplicationPackage" type="ApplicationPackageType">
    <xs:annotation>
      <xs:documentation>ApplicationPackage represents the versioned Application information required by the node.</xs:documentation>
    </xs:annotation>
  </xs:element>

ApplicationPackageRef 元素

属性 Value
type 匿名的 complexType
内容 0 个元素,0 个属性
defined ApplicationInstanceType complexType 本地
name ApplicationPackageRef

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ApplicationPackageRef">
        <xs:complexType>
          <xs:attributeGroup ref="VersionedItemAttrGroup"/>
        </xs:complexType>
      </xs:element>

Arguments 元素

属性 Value
type xs:string
内容 0 个元素,0 个属性
defined ExeHostEntryPointType complexType 本地
name 参数
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Arguments" type="xs:string" minOccurs="0"/>

AveragePartitionLoadScalingTrigger 元素

定义基于分区副本平均负载的缩放机制。

属性 Value
type 匿名的 complexType
content 0 个元素,4 个属性
defined ScalingPolicyTriggerGroup 组本地
name AveragePartitionLoadScalingTrigger
minOccurs 0
maxOccurs 1

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="AveragePartitionLoadScalingTrigger" minOccurs="0" maxOccurs="1">
                <xs:annotation>
                    <xs:documentation>Defines a scaling mechanism based on the average load of replicas of a partition.</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:attribute name="MetricName" type="xs:string" use="required">
                        <xs:annotation>
                            <xs:documentation>The name of metric which should be used for scaling operations.</xs:documentation>
                        </xs:annotation>
                    </xs:attribute>
                    <xs:attribute name="LowerLoadThreshold" type="xs:string" use="required">
                        <xs:annotation>
                            <xs:documentation>The lower limit of the load value of a metric.</xs:documentation>
                        </xs:annotation>
                    </xs:attribute>
                    <xs:attribute name="UpperLoadThreshold" type="xs:string" use="required">
                        <xs:annotation>
                            <xs:documentation>The upper limit of the load value of a metric.</xs:documentation>
                        </xs:annotation>
                    </xs:attribute>
                    <xs:attribute name="ScaleIntervalInSeconds" type="xs:string" use="required">
                        <xs:annotation>
                            <xs:documentation>The time interval in seconds to be considered for scaling.</xs:documentation>
                        </xs:annotation>
                    </xs:attribute>
                </xs:complexType>
            </xs:element>

属性详细信息

MetricName

用于缩放操作的指标的名称。

属性
name MetricName
type xs:string
use 必填

LowerLoadThreshold

指标负载值的下限。

属性
name LowerLoadThreshold
type xs:string
use 必填

UpperLoadThreshold

指标负载值的上限。

属性
name UpperLoadThreshold
type xs:string
use 必填

ScaleIntervalInSeconds

缩放时应考虑的时间间隔(以秒为单位)。

属性
name ScaleIntervalInSeconds
type xs:string
use 必填

AverageServiceLoadScalingTrigger 元素

定义基于服务分区平均负载的缩放机制。

属性 Value
type 匿名的 complexType
内容 0 个元素,5 个属性
defined ScalingPolicyTriggerGroup 组本地
name AverageServiceLoadScalingTrigger
minOccurs 0
maxOccurs 1

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="AverageServiceLoadScalingTrigger" minOccurs="0" maxOccurs="1">
                <xs:annotation>
                    <xs:documentation>Defines a scaling mechanism based on the average load of partitions of a service.</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:attribute name="MetricName" type="xs:string" use="required">
                        <xs:annotation>
                            <xs:documentation>The name of metric which should be used for scaling operations.</xs:documentation>
                        </xs:annotation>
                    </xs:attribute>
                    <xs:attribute name="LowerLoadThreshold" type="xs:string" use="required">
                        <xs:annotation>
                            <xs:documentation>The lower limit of the load value of a metric.</xs:documentation>
                        </xs:annotation>
                    </xs:attribute>
                    <xs:attribute name="UpperLoadThreshold" type="xs:string" use="required">
                        <xs:annotation>
                            <xs:documentation>The upper limit of the load value of a metric.</xs:documentation>
                        </xs:annotation>
                    </xs:attribute>
                    <xs:attribute name="ScaleIntervalInSeconds" type="xs:string" use="required">
                        <xs:annotation>
                            <xs:documentation>The time interval in seconds to be considered for scaling.</xs:documentation>
                        </xs:annotation>
                    </xs:attribute>
                    <xs:attribute name="UseOnlyPrimaryLoad" type="xs:string" use="optional">
                        <xs:annotation>
                            <xs:documentation>Use load of primary replica as average load of partition.</xs:documentation>
                        </xs:annotation>
                    </xs:attribute>
                </xs:complexType>
            </xs:element>

属性详细信息

MetricName

用于缩放操作的指标的名称。

属性
name MetricName
type xs:string
use 必填

LowerLoadThreshold

指标负载值的下限。

属性
name LowerLoadThreshold
type xs:string
use 必填

UpperLoadThreshold

指标负载值的上限。

属性
name UpperLoadThreshold
type xs:string
use 必填

ScaleIntervalInSeconds

缩放时应考虑的时间间隔(以秒为单位)。

属性
name ScaleIntervalInSeconds
type xs:string
use 必填

UseOnlyPrimaryLoad

将主要副本的负载用作分区的平均负载。

属性
name UseOnlyPrimaryLoad
type xs:string
use 可选

AzureBlob 元素(类型 AzureBlobETWType)

描述 ETW 事件的 Azure blob 存储目标。 只能在 Azure 环境中运行。

属性 Value
type AzureBlobETWType
content 0 个元素,0 个属性
defined 在 Destinations 元素本地
name AzureBlob
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="AzureBlob" type="AzureBlobETWType" minOccurs="0" maxOccurs="unbounded"/>

AzureBlob 元素(类型 AzureBlobType)

描述诊断数据的 Azure blob 存储目标。 只能在 Azure 群集环境中运行。

属性 Value
type AzureBlobType
content 0 个元素,0 个属性
defined 在 Destinations 元素本地、Destinations 元素
name AzureBlob
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="AzureBlob" type="AzureBlobType" minOccurs="0" maxOccurs="unbounded"/>

BackupRestoreServiceReplicatorEndpoint 元素

属性 Value
type InternalEndpointType
内容 0 个元素,0 个属性
defined FabricEndpointsType complexType 本地
name BackupRestoreServiceReplicatorEndpoint
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="BackupRestoreServiceReplicatorEndpoint" type="InternalEndpointType" minOccurs="0"/>

Blackbird 元素

属性 Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined 在 Infrastructure 元素本地
name Blackbird

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Blackbird">
                                                        <xs:complexType>
                                                                <xs:sequence>
                                                                        <xs:element name="Roles">
                                                                                <xs:complexType>
                                                                                        <xs:sequence>
                                                                                                <xs:element name="Role" type="BlackbirdRoleType" minOccurs="1" maxOccurs="unbounded"/>
                                                                                        </xs:sequence>
                                                                                </xs:complexType>
                                                                        </xs:element>
                                                                </xs:sequence>
                                                        </xs:complexType>
                                                </xs:element>

Content 元素详细信息

角色

属性
name 角色

Capacities 元素

此节点类型的各个指标的容量

属性 Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined 在 NodeType 元素本地
name Capacities
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Capacities" minOccurs="0">
                                                                                <xs:annotation>
                                                                                        <xs:documentation>The capacities of various metrics for this node type</xs:documentation>
                                                                                </xs:annotation>
                                                                                <xs:complexType>
                                                                                        <xs:sequence>
                                                                                                <xs:element name="Capacity" type="KeyValuePairType" minOccurs="0" maxOccurs="unbounded"/>
                                                                                        </xs:sequence>
                                                                                </xs:complexType>
                                                                        </xs:element>

Content 元素详细信息

容量

属性
name 容量
type KeyValuePairType
minOccurs 0
maxOccurs unbounded

Capacity 元素

属性 Value
type KeyValuePairType
内容 0 个元素,0 个属性
defined 在 Capacities 元素本地
name 容量
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Capacity" type="KeyValuePairType" minOccurs="0" maxOccurs="unbounded"/>

CentralSecretServiceReplicatorEndpoint 元素

属性 Value
type InternalEndpointType
内容 0 个元素,0 个属性
defined FabricEndpointsType complexType 本地
name CentralSecretServiceReplicatorEndpoint
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="CentralSecretServiceReplicatorEndpoint" type="InternalEndpointType" minOccurs="0"/>

CertificateRef 元素

指定要向容器公开的证书的信息。

属性 Value
type ContainerCertificateType
content 0 个元素,0 个属性
defined ContainerHostPoliciesType complexType 本地
name CertificateRef
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="CertificateRef" type="ContainerCertificateType" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>Specifies information for a certificate which will be exposed to the container.</xs:documentation>
        </xs:annotation>
      </xs:element>

Certificates 元素(类型 CertificatesType)

描述与此节点类型关联的证书

属性 Value
type CertificatesType
content 0 个元素,0 个属性
defined 在 NodeType 元素 InfrastructureNodeType complexType 本地
name 证书
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Certificates" type="CertificatesType" minOccurs="0">
                                                                                <xs:annotation>
                                                                                        <xs:documentation>Describe the certificates associated with this node type</xs:documentation>
                                                                                </xs:annotation>
                                                                        </xs:element>

Certificates 元素(在 ApplicationManifestType 中定义)

声明用于保护终结点或用于加密应用程序清单或群集清单中的机密的证书。

属性 Value
type 匿名的 complexType
content 2 个元素,0 个属性
defined ApplicationManifestType complexType 本地
name 证书
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Certificates" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Declares certificates used to secure endpoints or encrypt secrets within the application manifest or a cluster manifest.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence maxOccurs="unbounded">
            <xs:element name="SecretsCertificate" type="FabricCertificateType" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Declares a certificate used to encrypt sensitive information within the application manifest. The application author uses the Invoke-ServiceFabricEncryptSecret cmdlet to encrypt the sensitive information, which is copied to a Parameter in the ConfigOverrides section.</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="EndpointCertificate" type="EndpointCertificateType" minOccurs="0"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>

Content 元素详细信息

SecretsCertificate

声明用于加密应用程序清单中的敏感信息的证书。 应用程序作者可使用 Invoke-ServiceFabricEncryptSecret cmdlet 来加密要复制到 ConfigOverrides 节中某个参数的敏感信息。

属性
name SecretsCertificate
type FabricCertificateType
minOccurs 0

EndpointCertificate

属性
name EndpointCertificate
type EndpointCertificateType
minOccurs 0

Certificates 元素(在 ClusterManifestType 中定义)

属性 Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined ClusterManifestType complexType 本地
name 证书
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Certificates" minOccurs="0">
                                <xs:complexType>
                                        <xs:sequence>
                                                <xs:element name="SecretsCertificate" type="FabricCertificateType" minOccurs="0"/>
                                        </xs:sequence>
                                </xs:complexType>
                        </xs:element>

Content 元素详细信息

SecretsCertificate

属性
name SecretsCertificate
type FabricCertificateType
minOccurs 0

ClientCertificate 元素

用于保护客户端服务器通信的默认管理员角色客户端证书。

属性 Value
type FabricCertificateType
内容 0 个元素,0 个属性
defined CertificatesType complexType 本地
name ClientCertificate
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ClientCertificate" type="FabricCertificateType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>The default admin role client certificate used to secure client server communication.</xs:documentation>
        </xs:annotation>
      </xs:element>

ClientConnectionEndpoint 元素

属性 Value
type InputEndpointType
content 0 个元素,0 个属性
defined FabricEndpointsType complexType 本地
name ClientConnectionEndpoint

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ClientConnectionEndpoint" type="InputEndpointType"/>

ClusterCertificate 元素

用于保护群集内部通信的证书。

Attribute Value
type FabricCertificateType
内容 0 个元素,0 个属性
defined CertificatesType complexType 本地
name ClusterCertificate
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ClusterCertificate" type="FabricCertificateType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>The certificate used to secure the intra cluster communication.</xs:documentation>
        </xs:annotation>
      </xs:element>

ClusterConnectionEndpoint 元素

属性 Value
type InternalEndpointType
内容 0 个元素,0 个属性
defined FabricEndpointsType complexType 本地
name ClusterConnectionEndpoint

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ClusterConnectionEndpoint" type="InternalEndpointType"/>

ClusterManagerReplicatorEndpoint 元素

属性 Value
type InternalEndpointType
内容 0 个元素,0 个属性
defined FabricEndpointsType complexType 本地
name ClusterManagerReplicatorEndpoint
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ClusterManagerReplicatorEndpoint" type="InternalEndpointType" minOccurs="0"/>

ClusterManifest 元素

描述 Azure Service Fabric 群集。

Attribute Value
type ClusterManifestType
content 0 个元素,0 个属性
defined globally
name ClusterManifest

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ClusterManifest" type="ClusterManifestType">
                <xs:annotation>
                        <xs:documentation>Describes an Azure Service Fabric Cluster.</xs:documentation>
                </xs:annotation>
        </xs:element>

CodePackage 元素

描述支持定义的服务类型的代码包。 当一种服务针对这些服务类型之一进行实例化时,可激活此清单中声明的所有代码包,方法是运行这些代码包的入口点。 生成的进程应在运行时注册所支持的服务类型。 当存在多个代码包时,每当系统查找任何一种声明的服务类型时,它们都会被激活。

属性 Value
type CodePackageType
content 0 个元素,0 个属性
defined ServiceManifestType complexType DigestedCodePackage 元素本地
name CodePackage
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="CodePackage" type="CodePackageType" maxOccurs="unbounded"/>

Commands 元素

将以逗号分隔的命令列表传递给容器。

属性 Value
type xs:string
内容 0 个元素,0 个属性
defined ContainerHostEntryPointType complexType 本地
name 命令
minOccurs 0
maxOccurs 1

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Commands" type="xs:string" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation>Pass a comma delimited list of commands to the container.</xs:documentation>
        </xs:annotation>
      </xs:element>

ConfigOverride 元素

描述导入的服务清单中特定配置包的配置重写。

属性 Value
type ConfigOverrideType
content 0 个元素,0 个属性
defined 在 ConfigOverrides 元素、DigestedConfigPackage 元素本地
name ConfigOverride
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ConfigOverride" type="ConfigOverrideType" minOccurs="0" maxOccurs="unbounded"/>

ConfigOverrides 元素

描述所导入服务清单的配置重写。 使用配置重写可以做到仅当与特定的应用程序类型配合使用时才重写服务清单的配置,从而可在多个应用程序类型中重复使用相同的服务清单。 只要使用 ConfigPackage 文件夹中的 Settings.xml 定义默认配置,配置重写就能更改服务清单中的任何默认配置。

Attribute Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined 在 ServiceManifestImport 元素本地
name ConfigOverrides
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ConfigOverrides" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Describes configuration overrides for the imported service manifest. Configuration overrides allow the flexibility of re-using the same service manifests across multiple application types by overriding the service manifest's configuration only when used with a particular application type. Configuration overrides can change any default configuration in a service manifest as long as default configuration is defined using the Settings.xml in the ConfigPackage folder. </xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="ConfigOverride" type="ConfigOverrideType" minOccurs="0" maxOccurs="unbounded"/>
                </xs:sequence>
              </xs:complexType>
            </xs:element>

Content 元素详细信息

ConfigOverride

属性
name ConfigOverride
type ConfigOverrideType
minOccurs 0
maxOccurs unbounded

ConfigPackage 元素(ConfigPackageDescriptionType 类型)

声明一个由 Name 属性命名的文件夹,该文件夹中包含 Settings.xml 文件。 此文件包含进程用户定义的键值对设置,进程可在运行时读回这些设置。 升级期间,如果仅更改了 ConfigPackage 版本,则不重启正在运行的进程。 相反,一个回调会告知进程配置设置已更改,以便动态重新加载。

属性 Value
type ConfigPackageDescriptionType
content 0 个元素,0 个属性
defined ConfigPackagePoliciesType complexType 本地
name ConfigPackage
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ConfigPackage" type="ConfigPackageDescriptionType" minOccurs="0" maxOccurs="unbounded"/>

ConfigPackage 元素(ConfigPackageType 类型)

声明按 Name 属性命名的文件夹,该文件夹位于包含 Settings.xml 文件的 PackageRoot 中。 此文件包含进程用户定义的键值对设置,进程可在运行时读回这些设置。 升级期间,如果仅更改了 ConfigPackage 版本,则不重启正在运行的进程。 相反,一个回调会告知进程配置设置已更改,以便动态重新加载。

属性 Value
type ConfigPackageType
content 0 个元素,0 个属性
defined ServiceManifestType complexType DigestedConfigPackage 元素本地
name ConfigPackage
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ConfigPackage" type="ConfigPackageType" minOccurs="0" maxOccurs="unbounded"/>

ConfigPackagePolicies 元素

要在容器内装载的配置包。

属性 Value
type ConfigPackagePoliciesType
content 0 个元素,0 个属性
defined ServiceManifestImportPoliciesType complexType DigestedCodePackage 元素本地
name ConfigPackagePolicies
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ConfigPackagePolicies" type="ConfigPackagePoliciesType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Config Packages to be mounted inside the container.</xs:documentation>
        </xs:annotation>
      </xs:element>

ConsoleRedirection 元素

警告! 请勿在生产应用程序中使用控制台重定向,只能将其用于本地开发和调试。 请在部署和运行应用程序时所在的群集节点上,将控制台输出从启动脚本重定向到名为“log”的应用程序文件夹中的一个输出文件。

属性 Value
type 匿名的 complexType
内容 0 个元素,2 个属性
defined ExeHostEntryPointType complexType 本地
name ConsoleRedirection
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ConsoleRedirection" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Warning! Do not use console redirection in a production application, only use it for local development and debugging. Redirects console output from the startup script to an output file in the application folder called "log" on the cluster node where the application is deployed and run.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:attribute name="FileRetentionCount" default="2">
            <xs:annotation>
              <xs:documentation>Sets the number of console redirection output files to retain.  Must be a positive integer, the default value is "2".</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:int">
                <xs:minInclusive value="1"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="FileMaxSizeInKb" default="20480">
            <xs:annotation>
              <xs:documentation>Set the maximum size of a console redirection output file.  Must be a positive integer greater than 128KB, the default value is "20480".</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:int">
                <xs:minInclusive value="128"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:complexType>
      </xs:element>

属性详细信息

FileRetentionCount

设置要保留的控制台重定向输出文件的数量。 必须为正整数,默认值为“2”。

属性
name FileRetentionCount
默认值 2

FileMaxSizeInKb

设置控制台重定向输出文件的最大大小。 必须是大于 128 KB 的正整数,默认值为“20480”。

属性
name FileMaxSizeInKb
默认值 20480

ContainerEntryPoint 元素

已重写容器的入口点,以便能够启动调试程序。

属性 Value
type xs:string
内容 0 个元素,0 个属性
defined DebugParametersType complexType 本地
name ContainerEntryPoint
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ContainerEntryPoint" type="xs:string" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>Overridden entrypoint for containers so debugger can be launched.</xs:documentation>
        </xs:annotation>
      </xs:element>

ContainerEnvironmentBlock 元素

容器的 EnvironmentBlock。

属性 Value
type xs:string
内容 0 个元素,0 个属性
defined DebugParametersType complexType 本地
name ContainerEnvironmentBlock
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ContainerEnvironmentBlock" type="xs:string" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>EnvironmentBlock for containers.</xs:documentation>
        </xs:annotation>
      </xs:element>

ContainerHost 元素

属性 Value
type ContainerHostEntryPointType
content 0 个元素,0 个属性
defined EntryPointDescriptionType complexType 本地
name ContainerHost

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ContainerHost" type="ContainerHostEntryPointType"/>

ContainerHostPolicies 元素

指定用于激活容器主机的策略。

属性 Value
type ContainerHostPoliciesType
content 0 个元素,0 个属性
defined ServiceManifestImportPoliciesType complexType DigestedCodePackage 元素本地
name ContainerHostPolicies
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ContainerHostPolicies" type="ContainerHostPoliciesType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Specifies policies for activating container hosts.</xs:documentation>
        </xs:annotation>
      </xs:element>

ContainerLabel 元素

“键=值”形式的容器标签。

属性 Value
type xs:string
内容 0 个元素,0 个属性
defined DebugParametersType complexType 本地
name ContainerLabel
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ContainerLabel" type="xs:string" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>Labels for containers in form key=value.</xs:documentation>
        </xs:annotation>
      </xs:element>

ContainerMountedVolume 元素

要在容器内部装载的卷。

属性 Value
type xs:string
内容 0 个元素,0 个属性
defined DebugParametersType complexType 本地
name ContainerMountedVolume
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ContainerMountedVolume" type="xs:string" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>Volumes to be mounted inside container.</xs:documentation>
        </xs:annotation>
      </xs:element>

ContainerNetworkPolicy 元素

描述服务包的容器网络策略。

属性 Value
type ContainerNetworkPolicyType
content 0 个元素,0 个属性
defined NetworkPoliciesType complexType 本地
name ContainerNetworkPolicy
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ContainerNetworkPolicy" type="ContainerNetworkPolicyType" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>Describes container network policies for the service package.</xs:documentation>
        </xs:annotation>
      </xs:element>

CrashDumpSource 元素

指定故障转储收集。 故障转储是针对托管属于应用程序的所有服务的代码包的可执行文件收集的。

属性 Value
type 匿名的 complexType
content 2 个元素,1 个属性
defined DiagnosticsType complexType 本地
name CrashDumpSource
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="CrashDumpSource" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Specifies crash dump collection. Crash dumps are collected for executables that host the code packages of all services belonging to the application.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Destinations" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Destinations to which the crash dumps need to be transferred.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="LocalStore" type="LocalStoreType" minOccurs="0" maxOccurs="unbounded"/>
                  <xs:element name="FileStore" type="FileStoreType" minOccurs="0" maxOccurs="unbounded"/>
                  <xs:element name="AzureBlob" type="AzureBlobType" minOccurs="0" maxOccurs="unbounded"/>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element ref="Parameters" minOccurs="0" maxOccurs="1"/>
          </xs:sequence>
          <xs:attribute name="IsEnabled" type="xs:string">
            <xs:annotation>
              <xs:documentation>Whether or not crash dump collection is enabled. By default, it is not enabled.</xs:documentation>
            </xs:annotation>
          </xs:attribute>
        </xs:complexType>
      </xs:element>

属性详细信息

IsEnabled

指示是否启用故障转储收集。 默认未启用。

属性
name IsEnabled
type xs:string

Content 元素详细信息

Destinations

故障转储需要传输到的目标。

属性
name Destinations
minOccurs 0

Attribute
ref parameters
minOccurs 0
maxOccurs 1

CurrentInstallation 元素

属性 Value
type WindowsFabricDeploymentInformation
内容 0 个元素,0 个属性
defined TargetInformationType complexType 本地
name CurrentInstallation
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="CurrentInstallation" type="WindowsFabricDeploymentInformation" minOccurs="0"/>

DataPackage 元素

声明一个按 Name 属性命名的文件夹,该文件夹位于将由进程在运行时使用的静态数据文件所在的 PackageRoot 中。 升级服务清单中所列的任何数据包时,Service Fabric 会回收主机和支持包中指定的所有 EXE 和 DLLHOST。

属性 Value
type DataPackageType
content 0 个元素,0 个属性
defined ServiceManifestType complexType DigestedDataPackage 元素本地
name DataPackage
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="DataPackage" type="DataPackageType" minOccurs="0" maxOccurs="unbounded"/>

DebugParameters 元素

指定激活代码包时要附加的调试程序的相关信息

属性 Value
type DebugParametersType
content 0 个元素,0 个属性
defined 在 DigestedCodePackage 元素、DigestedConfigPackage 元素、DigestedDataPackage 元素本地
name DebugParameters
minOccurs 0
maxOccurs 1

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="DebugParameters" type="DebugParametersType" minOccurs="0" maxOccurs="1"/>

DefaultReplicatorEndpoint 元素

属性 Value
type InternalEndpointType
内容 0 个元素,0 个属性
defined FabricEndpointsType complexType 本地
name DefaultReplicatorEndpoint
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="DefaultReplicatorEndpoint" type="InternalEndpointType" minOccurs="0"/>

DefaultRunAsPolicy 元素

针对在 ServiceManifestImport 节中未定义特定 RunAsPolicy 的所有服务代码包指定默认用户帐户。

属性 Value
type 匿名的 complexType
内容 0 个元素,1 个属性
defined ApplicationPoliciesType complexType 本地
name DefaultRunAsPolicy
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="DefaultRunAsPolicy" minOccurs="0">
                                <xs:annotation>
                                        <xs:documentation>Specify a default user account for all service code packages that don't have a specific RunAsPolicy defined in the ServiceManifestImport section.</xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                        <xs:attribute name="UserRef" type="xs:string" use="required">
                                                <xs:annotation>
                                                        <xs:documentation>The user account that the service code packages will run as.  The user account must be declared in the Principals section. Often it is preferable to run the setup entry point using a local system account rather than an administrators account.</xs:documentation>
                                                </xs:annotation>
                                        </xs:attribute>
                                </xs:complexType>
                        </xs:element>

属性详细信息

UserRef

服务代码包运行时将采用的用户帐户身份。 必须在“Principals”部分中声明用户帐户。 一般情况下,最好是使用本地系统帐户而不是管理员帐户来运行安装程序入口点。

属性
name UserRef
type xs:string
use 必填

DefaultServiceTypeHealthPolicy 元素

指定默认服务类型运行状况策略,该策略会替换应用程序中所有服务类型的默认运行状况策略。

属性 Value
type ServiceTypeHealthPolicyType
content 0 个元素,0 个属性
defined ApplicationHealthPolicyType complexType 本地
name DefaultServiceTypeHealthPolicy
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="DefaultServiceTypeHealthPolicy" type="ServiceTypeHealthPolicyType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Specifies the default service type health policy, which will replace the default health policy for all service types in the application.</xs:documentation>
        </xs:annotation>
      </xs:element>

DefaultServices 元素

声明每当一个应用程序依据此应用程序类型进行实例化时自动创建的服务实例。

属性 Value
type DefaultServicesType
content 0 个元素,0 个属性
defined ApplicationManifestType complexTypeApplicationInstanceType complexType 本地
name DefaultServices
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="DefaultServices" type="DefaultServicesType" minOccurs="0">

      </xs:element>

Description 元素

描述此应用程序的文本。

属性 Value
type xs:string
内容 0 个元素,0 个属性
defined ApplicationManifestType complexTypeServiceManifestType complexTypeServicePackageType complexType 本地
name 说明
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Description" type="xs:string" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Text describing this application.</xs:documentation>
        </xs:annotation>
      </xs:element>

Destinations 元素(在 CrashDumpSource 中定义)

故障转储需要传输到的目标。

属性 Value
type 匿名的 complexType
content 3 个元素,0 个属性
defined 在 CrashDumpSource 元素本地
name Destinations
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Destinations" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Destinations to which the crash dumps need to be transferred.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="LocalStore" type="LocalStoreType" minOccurs="0" maxOccurs="unbounded"/>
                  <xs:element name="FileStore" type="FileStoreType" minOccurs="0" maxOccurs="unbounded"/>
                  <xs:element name="AzureBlob" type="AzureBlobType" minOccurs="0" maxOccurs="unbounded"/>
                </xs:sequence>
              </xs:complexType>
            </xs:element>

Content 元素详细信息

LocalStore

属性
name LocalStore
type LocalStoreType
minOccurs 0
maxOccurs unbounded

FileStore

属性
name FileStore
type FileStoreType
minOccurs 0
maxOccurs unbounded

AzureBlob

属性
name AzureBlob
type AzureBlobType
minOccurs 0
maxOccurs unbounded

Destinations 元素(在 ETWSource 中定义)

故障转储需要传输到的目标。

属性 Value
type 匿名的 complexType
content 3 个元素,0 个属性
defined 在 ETWSource 元素本地
name Destinations
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Destinations" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Destinations to which the crash dumps need to be transferred.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="LocalStore" type="LocalStoreETWType" minOccurs="0" maxOccurs="unbounded"/>
                  <xs:element name="FileStore" type="FileStoreETWType" minOccurs="0" maxOccurs="unbounded"/>
                  <xs:element name="AzureBlob" type="AzureBlobETWType" minOccurs="0" maxOccurs="unbounded"/>
                </xs:sequence>
              </xs:complexType>
            </xs:element>

Content 元素详细信息

LocalStore

属性
name LocalStore
type LocalStoreETWType
minOccurs 0
maxOccurs unbounded

FileStore

属性
name FileStore
type FileStoreETWType
minOccurs 0
maxOccurs unbounded

AzureBlob

属性
name AzureBlob
type AzureBlobETWType
minOccurs 0
maxOccurs unbounded

Destinations 元素(在 FolderSource 中定义)

文件夹内容需要传输到的目标。

属性 Value
type 匿名的 complexType
content 3 个元素,0 个属性
defined 在 FolderSource 元素本地
name Destinations
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Destinations" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Destinations to which the folder contents need to be transferred.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="LocalStore" type="LocalStoreType" minOccurs="0" maxOccurs="unbounded"/>
                  <xs:element name="FileStore" type="FileStoreType" minOccurs="0" maxOccurs="unbounded"/>
                  <xs:element name="AzureBlob" type="AzureBlobType" minOccurs="0" maxOccurs="unbounded"/>
                </xs:sequence>
              </xs:complexType>
            </xs:element>

Content 元素详细信息

LocalStore

属性
name LocalStore
type LocalStoreType
minOccurs 0
maxOccurs unbounded

FileStore

属性
name FileStore
type FileStoreType
minOccurs 0
maxOccurs unbounded

AzureBlob

属性
name AzureBlob
type AzureBlobType
minOccurs 0
maxOccurs unbounded

Diagnostics 元素(类型 DiagnosticsType)

描述应用程序的诊断设置。

属性 Value
type DiagnosticsType
content 0 个元素,0 个属性
defined ApplicationManifestType complexTypeEnvironmentType complexType 本地
name 诊断
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Diagnostics" type="DiagnosticsType" minOccurs="0"/>

Diagnostics 元素(类型 ServiceDiagnosticsType)

描述此服务清单的组件的诊断设置。

属性 Value
type ServiceDiagnosticsType
content 0 个元素,0 个属性
defined ServiceManifestType complexTypeServicePackageType complexType 本地
name 诊断
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Diagnostics" type="ServiceDiagnosticsType" minOccurs="0"/>

DigestedCertificates 元素(在 ApplicationPackageType 中定义)

属性 Value
type 匿名的 complexType
content 2 个元素,0 个属性
defined ApplicationPackageType complexType 本地
name DigestedCertificates

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="DigestedCertificates">
        <xs:complexType>
          <xs:sequence maxOccurs="unbounded">
            <xs:element name="SecretsCertificate" type="FabricCertificateType" minOccurs="0"/>
            <xs:element name="EndpointCertificate" type="EndpointCertificateType" minOccurs="0"/>
          </xs:sequence>
          <xs:attributeGroup ref="VersionedItemAttrGroup"/>
        </xs:complexType>
      </xs:element>

Content 元素详细信息

SecretsCertificate

属性
name SecretsCertificate
type FabricCertificateType
minOccurs 0

EndpointCertificate

属性
name EndpointCertificate
type EndpointCertificateType
minOccurs 0

DigestedCertificates 元素(在 DigestedResources 中定义)

属性 Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined 在 DigestedResources 元素本地
name DigestedCertificates
minOccurs 0
maxOccurs 1

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="DigestedCertificates" minOccurs="0" maxOccurs="1">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="EndpointCertificate" type="EndpointCertificateType" minOccurs="0" maxOccurs="unbounded"/>
                </xs:sequence>
              </xs:complexType>
            </xs:element>

Content 元素详细信息

EndpointCertificate

属性
name EndpointCertificate
type EndpointCertificateType
minOccurs 0
maxOccurs unbounded

DigestedCodePackage 元素

属性 Value
type 匿名的 complexType
content 6 个元素,2 个属性
defined ServicePackageType complexType 本地
name DigestedCodePackage
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="DigestedCodePackage" maxOccurs="unbounded">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="CodePackage" type="CodePackageType"/>
            <xs:element name="RunAsPolicy" type="RunAsPolicyType" minOccurs="0" maxOccurs="2"/>
            <xs:element name="DebugParameters" type="DebugParametersType" minOccurs="0" maxOccurs="1"/>
            <xs:element name="ContainerHostPolicies" type="ContainerHostPoliciesType" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Specifies policies for activating container hosts.</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="ResourceGovernancePolicy" type="ResourceGovernancePolicyType" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Specifies resource limits for codepackage.</xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element name="ConfigPackagePolicies" type="ConfigPackagePoliciesType" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Specifies config policies for mounts.</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
          <xs:attributeGroup ref="VersionedItemAttrGroup"/>
          <xs:attribute name="ContentChecksum" type="xs:string"/>
          <xs:attribute name="IsShared" type="xs:boolean"/>
        </xs:complexType>
      </xs:element>

属性详细信息

ContentChecksum

属性
name ContentChecksum
type xs:string

IsShared

属性
name IsShared
type xs:boolean

Content 元素详细信息

CodePackage

属性
name CodePackage
type CodePackageType

RunAsPolicy

属性
name RunAsPolicy
type RunAsPolicyType
minOccurs 0
maxOccurs 2

DebugParameters

属性
name DebugParameters
type DebugParametersType
minOccurs 0
maxOccurs 1

ContainerHostPolicies

指定用于激活容器主机的策略。

属性
name ContainerHostPolicies
type ContainerHostPoliciesType
minOccurs 0

ResourceGovernancePolicy

指定代码包的资源限制。

属性
name ResourceGovernancePolicy
type ResourceGovernancePolicyType
minOccurs 0

ConfigPackagePolicies

指定装载的配置策略。

属性
name ConfigPackagePolicies
type ConfigPackagePoliciesType
minOccurs 0

DigestedConfigPackage 元素

属性 Value
type 匿名的 complexType
content 3 个元素,2 个属性
defined ServicePackageType complexType 本地
name DigestedConfigPackage
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="DigestedConfigPackage" minOccurs="0" maxOccurs="unbounded">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ConfigPackage" type="ConfigPackageType"/>
            <xs:element name="ConfigOverride" type="ConfigOverrideType" minOccurs="0"/>
            <xs:element name="DebugParameters" type="DebugParametersType" minOccurs="0" maxOccurs="1"/>
          </xs:sequence>
          <xs:attributeGroup ref="VersionedItemAttrGroup"/>
          <xs:attribute name="ContentChecksum" type="xs:string"/>
          <xs:attribute name="IsShared" type="xs:boolean"/>
        </xs:complexType>
      </xs:element>

属性详细信息

ContentChecksum

属性
name ContentChecksum
type xs:string

IsShared

属性
name IsShared
type xs:boolean

Content 元素详细信息

ConfigPackage

属性
name ConfigPackage
type ConfigPackageType

ConfigOverride

属性
name ConfigOverride
type ConfigOverrideType
minOccurs 0

DebugParameters

属性
name DebugParameters
type DebugParametersType
minOccurs 0
maxOccurs 1

DigestedDataPackage 元素

属性 Value
type 匿名的 complexType
内容 2 个元素,2 个属性
defined ServicePackageType complexType 本地
name DigestedDataPackage
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="DigestedDataPackage" minOccurs="0" maxOccurs="unbounded">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="DataPackage" type="DataPackageType"/>
            <xs:element name="DebugParameters" type="DebugParametersType" minOccurs="0" maxOccurs="1"/>
          </xs:sequence>
          <xs:attributeGroup ref="VersionedItemAttrGroup"/>
          <xs:attribute name="ContentChecksum" type="xs:string"/>
          <xs:attribute name="IsShared" type="xs:boolean"/>
        </xs:complexType>
      </xs:element>

属性详细信息

ContentChecksum

属性
name ContentChecksum
type xs:string

IsShared

属性
name IsShared
type xs:boolean

Content 元素详细信息

DataPackage

属性
name DataPackage
type DataPackageType

DebugParameters

属性
name DebugParameters
type DebugParametersType
minOccurs 0
maxOccurs 1

DigestedEndpoint 元素

属性 Value
type 匿名的 complexType
content 4 个元素,0 个属性
defined 在 DigestedEndpoints 元素本地
name DigestedEndpoint
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="DigestedEndpoint" minOccurs="0" maxOccurs="unbounded">
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="Endpoint" type="EndpointType"/>
                        <xs:element name="SecurityAccessPolicy" type="SecurityAccessPolicyType" minOccurs="0"/>
                        <xs:element name="EndpointBindingPolicy" type="EndpointBindingPolicyType" minOccurs="0"/>
                        <xs:element name="ResourceGovernancePolicy" type="ResourceGovernancePolicyType" minOccurs="0" maxOccurs="1"/>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>

Content 元素详细信息

终结点

属性
name 终结点
type EndpointType

SecurityAccessPolicy

Attribute
name SecurityAccessPolicy
type SecurityAccessPolicyType
minOccurs 0

EndpointBindingPolicy

属性
name EndpointBindingPolicy
type EndpointBindingPolicyType
minOccurs 0

ResourceGovernancePolicy

属性
name ResourceGovernancePolicy
type ResourceGovernancePolicyType
minOccurs 0
maxOccurs 1

DigestedEndpoints 元素

属性 Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined 在 DigestedResources 元素本地
name DigestedEndpoints
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="DigestedEndpoints" minOccurs="0">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="DigestedEndpoint" minOccurs="0" maxOccurs="unbounded">
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="Endpoint" type="EndpointType"/>
                        <xs:element name="SecurityAccessPolicy" type="SecurityAccessPolicyType" minOccurs="0"/>
                        <xs:element name="EndpointBindingPolicy" type="EndpointBindingPolicyType" minOccurs="0"/>
                        <xs:element name="ResourceGovernancePolicy" type="ResourceGovernancePolicyType" minOccurs="0" maxOccurs="1"/>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>

Content 元素详细信息

DigestedEndpoint

属性
name DigestedEndpoint
minOccurs 0
maxOccurs unbounded

DigestedEnvironment 元素

属性 Value
type EnvironmentType
content 0 个元素,0 个属性
defined ApplicationPackageType complexType 本地
name DigestedEnvironment

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="DigestedEnvironment" type="EnvironmentType"/>

DigestedResources 元素

属性 Value
type 匿名的 complexType
content 2 个元素,0 个属性
defined ServicePackageType complexType 本地
name DigestedResources
minOccurs 1

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="DigestedResources" minOccurs="1">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="DigestedEndpoints" minOccurs="0">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="DigestedEndpoint" minOccurs="0" maxOccurs="unbounded">
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element name="Endpoint" type="EndpointType"/>
                        <xs:element name="SecurityAccessPolicy" type="SecurityAccessPolicyType" minOccurs="0"/>
                        <xs:element name="EndpointBindingPolicy" type="EndpointBindingPolicyType" minOccurs="0"/>
                        <xs:element name="ResourceGovernancePolicy" type="ResourceGovernancePolicyType" minOccurs="0" maxOccurs="1"/>
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="DigestedCertificates" minOccurs="0" maxOccurs="1">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="EndpointCertificate" type="EndpointCertificateType" minOccurs="0" maxOccurs="unbounded"/>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
          <xs:attributeGroup ref="VersionedItemAttrGroup"/>
        </xs:complexType>
      </xs:element>

Content 元素详细信息

DigestedEndpoints

属性
name DigestedEndpoints
minOccurs 0

DigestedCertificates

属性
name DigestedCertificates
minOccurs 0
maxOccurs 1

DigestedServiceTypes 元素

属性 Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined ServicePackageType complexType 本地
name DigestedServiceTypes

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="DigestedServiceTypes">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ServiceTypes" type="ServiceTypesType"/>
          </xs:sequence>
          <xs:attributeGroup ref="VersionedItemAttrGroup"/>
        </xs:complexType>
      </xs:element>

Content 元素详细信息

ServiceTypes

属性
name ServiceTypes
type ServiceTypesType

DllHost 元素

不受支持,请不要使用。 DLL 宿主支持(程序集入口点)通过 FWP.exe 进程提供。 在激活过程中,Service Fabric 会启动结构工作进程 (FWP.exe) 并加载程序集。

属性 Value
type DllHostEntryPointType
content 0 个元素,0 个属性
defined EntryPointDescriptionType complexType 本地
name DllHost

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="DllHost" type="DllHostEntryPointType"/>

DomainGroup 元素

属性 Value
type 匿名的 complexType
内容 0 个元素,1 个属性
defined 在 Membership 元素本地
name DomainGroup
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="DomainGroup" minOccurs="0" maxOccurs="unbounded">
                                                    <xs:complexType>
                                                        <xs:attribute name="Name" type="xs:string" use="required"/>
                                                    </xs:complexType>
                                                </xs:element>

属性详细信息

名称

Attribute
name 名称
type xs:string
use 必填

DomainUser 元素

属性 Value
type 匿名的 complexType
内容 0 个元素,1 个属性
defined 在 Membership 元素本地
name DomainUser
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="DomainUser" minOccurs="0" maxOccurs="unbounded">
                                                    <xs:complexType>
                                                        <xs:attribute name="Name" type="xs:string" use="required"/>
                                                    </xs:complexType>
                                                </xs:element>

属性详细信息

名称

Attribute
name 名称
type xs:string
use 必填

DriverOption 元素

要传递给驱动程序的驱动程序选项。

属性 Value
type DriverOptionType
content 0 个元素,0 个属性
defined ContainerLoggingDriverType complexTypeContainerVolumeType complexType 本地
name DriverOption
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="DriverOption" type="DriverOptionType" minOccurs="0" maxOccurs="unbounded">
              <xs:annotation>
                  <xs:documentation>Driver options to be passed to driver.</xs:documentation>
              </xs:annotation>
          </xs:element>

ETW 元素

描述此服务清单的组件的 ETW 设置。

属性 Value
type 匿名的 complexType
content 2 个元素,0 个属性
defined ServiceDiagnosticsType complexType 本地
name ETW
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ETW" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Describes the ETW settings for the components of this service manifest.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ProviderGuids" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Lists the ETW provider GUIDs for the components of this service manifest.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="ProviderGuid" minOccurs="0" maxOccurs="unbounded">
                    <xs:complexType>
                      <xs:attribute name="Value" use="required">
                        <xs:simpleType>
                          <xs:restriction base="xs:string">
                            <xs:pattern value="[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}"/>
                          </xs:restriction>
                        </xs:simpleType>
                      </xs:attribute>
                    </xs:complexType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="ManifestDataPackages" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Lists the data packages containing ETW manifests for the components of this service manifest. The data package containing ETW manifests should not contain any other files. </xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="ManifestDataPackage" type="DataPackageType" minOccurs="0" maxOccurs="unbounded"/>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>

Content 元素详细信息

ProviderGuids

列出此服务清单的组件的 ETW 提供程序 GUID。

Attribute
name ProviderGuids
minOccurs 0

ManifestDataPackages

列出包含此服务清单的组件的 ETW 清单的数据包。 包含 ETW 清单的数据包不应包含其他任何文件。

属性
name ManifestDataPackages
minOccurs 0

ETWSource 元素

指定 ETW 跟踪收集。 ETW 跟踪是针对属于应用程序的所有服务注册的提供程序收集的。

属性 Value
type 匿名的 complexType
content 2 个元素,1 个属性
defined DiagnosticsType complexType 本地
name ETWSource
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ETWSource" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Specifies ETW trace collection. ETW traces are collected for the providers that are registered by all services belonging to the application.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Destinations" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Destinations to which the crash dumps need to be transferred.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="LocalStore" type="LocalStoreETWType" minOccurs="0" maxOccurs="unbounded"/>
                  <xs:element name="FileStore" type="FileStoreETWType" minOccurs="0" maxOccurs="unbounded"/>
                  <xs:element name="AzureBlob" type="AzureBlobETWType" minOccurs="0" maxOccurs="unbounded"/>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element ref="Parameters" minOccurs="0" maxOccurs="1"/>
          </xs:sequence>
          <xs:attribute name="IsEnabled" type="xs:string">
            <xs:annotation>
              <xs:documentation>Whether or not ETW trace collection is enabled. By default, it is not enabled.</xs:documentation>
            </xs:annotation>
          </xs:attribute>
        </xs:complexType>
      </xs:element>

属性详细信息

IsEnabled

指示是否启用 ETW 跟踪收集。 默认未启用。

属性
name IsEnabled
type xs:string

Content 元素详细信息

Destinations

故障转储需要传输到的目标。

属性
name Destinations
minOccurs 0

Attribute
ref parameters
minOccurs 0
maxOccurs 1

Endpoint 元素(类型 EndpointOverrideType)

要重写的已在服务清单中声明的终结点。

属性 Value
type EndpointOverrideType
content 0 个元素,0 个属性
defined 在 Endpoints 元素本地
name 终结点
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Endpoint" type="EndpointOverrideType" maxOccurs="unbounded">
              <xs:annotation>
                <xs:documentation>The endpoint, declared in the service manifest, to override.</xs:documentation>
              </xs:annotation>
            </xs:element>

Endpoint 元素(类型 EndpointType)

定义服务的终结点。 可请求的特定端口。 如果未显式指定端口,则从保留的应用程序端口范围分配一个端口。 在不同群集节点上运行的服务副本可以分配不同的端口号,而运行在同一节点上的服务副本共享同一个端口。 服务副本可出于各种目的(例如复制或侦听客户端请求)使用此类端口。

属性 Value
type EndpointType
content 0 个元素,0 个属性
defined 在 Endpoints 元素、DigestedEndpoint 元素本地
name 终结点
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Endpoint" type="EndpointType" maxOccurs="unbounded"/>

EndpointBinding 元素

指定应在容器网络上公开的终结点。

属性 Value
type ContainerNetworkPolicyEndpointBindingType
content 0 个元素,0 个属性
defined ContainerNetworkPolicyType complexType 本地
name EndpointBinding
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="EndpointBinding" type="ContainerNetworkPolicyEndpointBindingType" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>Specifies an endpoint that should be exposed on the container network.</xs:documentation>
        </xs:annotation>
      </xs:element>

EndpointBindingPolicy 元素

指定应返回到 HTTPS 终结点客户端的证书。

属性 Value
type EndpointBindingPolicyType
content 0 个元素,0 个属性
defined ServiceManifestImportPoliciesType complexType DigestedEndpoint 元素本地
name EndpointBindingPolicy
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="EndpointBindingPolicy" type="EndpointBindingPolicyType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Specifies a certificate that should be returned to a client for an HTTPS endpoint.</xs:documentation>
        </xs:annotation>
      </xs:element>

EndpointCertificate 元素

指定用于保护终结点的 X509 证书的相关信息。

属性 Value
type EndpointCertificateType
content 0 个元素,0 个属性
defined 在 Certificates 元素、DigestedCertificates 元素、 DigestedCertificates 元素本地
name EndpointCertificate
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="EndpointCertificate" type="EndpointCertificateType" minOccurs="0"/>

Endpoints 元素(类型 FabricEndpointsType)

描述与此节点类型关联的终结点

属性 Value
type FabricEndpointsType
content 0 个元素,0 个属性
defined 在 NodeType 元素 InfrastructureNodeType complexType 本地
name 终结点
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Endpoints" type="FabricEndpointsType" minOccurs="0">
                                                                                <xs:annotation>
                                                                                        <xs:documentation>Describe the endpoints associated with this node type</xs:documentation>
                                                                                </xs:annotation>
                                                                        </xs:element>

Endpoints 元素(在 ResourceOverridesType 中定义)

要替代的服务终结点。

属性 Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined ResourceOverridesType complexType 本地
name 终结点
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Endpoints" minOccurs="0">
        <xs:annotation>
          <xs:documentation>The service endpoint(s) to override.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Endpoint" type="EndpointOverrideType" maxOccurs="unbounded">
              <xs:annotation>
                <xs:documentation>The endpoint, declared in the service manifest, to override.</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>

Content 元素详细信息

终结点

要重写的已在服务清单中声明的终结点。

属性
name 终结点
type EndpointOverrideType
maxOccurs unbounded

Endpoints 元素(在 ResourcesType 中定义)

定义服务的终结点。

属性 Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined ResourcesType complexType 本地
name 终结点
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Endpoints" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Defines endpoints for the service.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Endpoint" type="EndpointType" maxOccurs="unbounded"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>

Content 元素详细信息

终结点

属性
name 终结点
type EndpointType
maxOccurs unbounded

EntryPoint 元素(类型 EntryPointDescriptionType)

EntryPoint 指定的可执行文件通常是长时间运行的服务主机。 提供单独的设置入口点可避免长时间使用高特权运行服务主机。 由 EntryPoint 指定的可执行文件在 SetupEntryPoint 成功退出后运行。 如果总是终止或出现故障,则将监视并重启所产生的过程(再次从 SetupEntryPoint 开始)。

属性 Value
type EntryPointDescriptionType
content 0 个元素,0 个属性
defined CodePackageType complexType 本地
name EntryPoint
minOccurs 1

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="EntryPoint" type="EntryPointDescriptionType" minOccurs="1"/>

EntryPoint 元素(类型 xs:string)

属性 Value
type xs:string
内容 0 个元素,0 个属性
defined ContainerHostEntryPointType complexType 本地
name EntryPoint
minOccurs 0
maxOccurs 1

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="EntryPoint" type="xs:string" minOccurs="0" maxOccurs="1"/>

EnvironmentOverrides 元素

属性 Value
type EnvironmentOverridesType
content 0 个元素,0 个属性
defined 在 ServiceManifestImport 元素本地
name EnvironmentOverrides
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="EnvironmentOverrides" type="EnvironmentOverridesType" minOccurs="0" maxOccurs="unbounded"/>

EnvironmentVariable 元素(EnvironmentVariableOverrideType 类型)

环境变量。

属性 Value
type EnvironmentVariableOverrideType
content 0 个元素,0 个属性
defined EnvironmentOverridesType complexType 本地
name EnvironmentVariable
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="EnvironmentVariable" type="EnvironmentVariableOverrideType" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>Environment variable.</xs:documentation>
        </xs:annotation>
      </xs:element>

EnvironmentVariable 元素(EnvironmentVariableType 元素)

环境变量。

属性 Value
type EnvironmentVariableType
content 0 个元素,0 个属性
defined EnvironmentVariablesType complexType 本地
name EnvironmentVariable
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="EnvironmentVariable" type="EnvironmentVariableType" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>Environment variable.</xs:documentation>
        </xs:annotation>
      </xs:element>

EnvironmentVariables 元素

将环境变量传递给容器或 exe。

属性 Value
type EnvironmentVariablesType
content 0 个元素,0 个属性
defined CodePackageType complexType 本地
name EnvironmentVariables
minOccurs 0
maxOccurs 1

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="EnvironmentVariables" type="EnvironmentVariablesType" minOccurs="0" maxOccurs="1"/>

EphemeralEndpoints 元素

属性 Value
type 匿名的 complexType
内容 0 个元素,2 个属性
defined FabricEndpointsType complexType 本地
name EphemeralEndpoints
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="EphemeralEndpoints" minOccurs="0">
        <xs:complexType>
          <xs:attribute name="StartPort" type="xs:int" use="required"/>
          <xs:attribute name="EndPort" type="xs:int" use="required"/>
        </xs:complexType>
      </xs:element>

属性详细信息

StartPort

属性
name StartPort
type xs:int
use 必填

EndPort

属性
name EndPort
type xs:int
use 必填

EventStoreServiceReplicatorEndpoint 元素

属性 Value
type InternalEndpointType
内容 0 个元素,0 个属性
defined FabricEndpointsType complexType 本地
name EventStoreServiceReplicatorEndpoint
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="EventStoreServiceReplicatorEndpoint" type="InternalEndpointType" minOccurs="0"/>

EvictionPolicy 元素

服务类型的逐出策略扩展。

属性 Value
type 匿名的 complexType
content 1 个元素,2 个属性
defined globally
name EvictionPolicy

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="EvictionPolicy">
    <xs:annotation>
      <xs:documentation>Eviction Policy extension for the Service Type.</xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="Properties" type="ServiceTypeExtensionPolicyPropertiesType" minOccurs="0"/>
      </xs:sequence>
      <xs:attribute name="Name" type="xs:string" use="required"/>
      <xs:attribute name="Provider" type="xs:string" use="required"/>
    </xs:complexType>
  </xs:element>

属性详细信息

名称

Attribute
name 名称
type xs:string
use 必需

提供程序

Attribute
name 提供程序
type xs:string
use 必需

Content 元素详细信息

属性

Attribute
name 属性
type ServiceTypeExtensionPolicyPropertiesType
minOccurs 0

ExeHost 元素(类型 ExeHostEntryPointType)

属性 Value
type ExeHostEntryPointType
content 0 个元素,0 个属性
defined 在 SetupEntryPoint 元素本地
name ExeHost

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ExeHost" type="ExeHostEntryPointType"/>

ExeHost 元素(在 EntryPointDescriptionType 中定义)

属性 Value
type 匿名的 complexType
内容 0 个元素,0 个属性
defined EntryPointDescriptionType complexType 本地
name ExeHost

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ExeHost">
          <xs:complexType>
            <xs:complexContent>
              <xs:extension base="ExeHostEntryPointType">
                <xs:sequence>
                  <xs:element name="RunFrequency" minOccurs="0">
                    <xs:complexType>
                      <xs:attribute name="IntervalInSeconds" use="required">
                        <xs:simpleType>
                          <xs:restriction base="xs:int">
                            <xs:minInclusive value="0"/>
                            <xs:maxInclusive value="2147483647"/>
                          </xs:restriction>
                        </xs:simpleType>
                      </xs:attribute>
                    </xs:complexType>
                  </xs:element>
                </xs:sequence>
              </xs:extension>
            </xs:complexContent>
          </xs:complexType>
        </xs:element>

Extension 元素

属性 Value
type 匿名的 complexType
内容 0 个元素,2 个属性
defined ExtensionsType complexType 本地
name 分机
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Extension" minOccurs="0" maxOccurs="unbounded">
        <xs:complexType>
          <xs:sequence>
            <xs:any namespace="##other" processContents="lax"/>
          </xs:sequence>
          <xs:attribute name="Name" use="required">
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:minLength value="1"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="GeneratedId" type="xs:string" use="optional"/>
        </xs:complexType>
      </xs:element>

属性详细信息

名称

Attribute
name 名称
use 必填

GeneratedId

属性
name GeneratedId
type xs:string
use 可选

Extensions 元素

描述可应用到其他元素的扩展。

属性 Value
type ExtensionsType
content 0 个元素,0 个属性
defined globally
name 扩展

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Extensions" type="ExtensionsType"/>

FabricSettings 元素

声明要重写的服务清单中的配置设置。 它由键/值对的一个或多个节组成。 可以使用 Invoke-ServiceFabricEncryptSecret cmdlet 加密参数值。

Attribute Value
type SettingsOverridesType
内容 0 个元素,0 个属性
defined ClusterManifestType complexType 本地
name FabricSettings
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="FabricSettings" type="SettingsOverridesType" minOccurs="0"/>

FailoverManagerReplicatorEndpoint 元素

属性 Value
type InternalEndpointType
内容 0 个元素,0 个属性
defined FabricEndpointsType complexType 本地
name FailoverManagerReplicatorEndpoint
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="FailoverManagerReplicatorEndpoint" type="InternalEndpointType" minOccurs="0"/>

FaultAnalysisServiceReplicatorEndpoint 元素

属性 Value
type InternalEndpointType
内容 0 个元素,0 个属性
defined FabricEndpointsType complexType 本地
name FaultAnalysisServiceReplicatorEndpoint
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="FaultAnalysisServiceReplicatorEndpoint" type="InternalEndpointType" minOccurs="0"/>

FileStore 元素(类型 FileStoreETWType)

描述 ETW 事件的文件存储目标。 只能在本地环境中运行。

属性 Value
type FileStoreETWType
content 0 个元素,0 个属性
defined 在 Destinations 元素本地
name FileStore
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="FileStore" type="FileStoreETWType" minOccurs="0" maxOccurs="unbounded"/>

FileStore 元素(类型 FileStoreType)

描述诊断数据的文件存储目标。 只能在独立群集环境中运行。

属性 Value
type FileStoreType
content 0 个元素,0 个属性
defined 在 Destinations 元素本地、Destinations 元素
name FileStore
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="FileStore" type="FileStoreType" minOccurs="0" maxOccurs="unbounded"/>

FolderSource 元素

指定本地节点上特定文件夹的内容集合。

属性 Value
type 匿名的 complexType
content 2 个元素,1 个属性
defined DiagnosticsType complexType 本地
name FolderSource
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="FolderSource" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>Specifies the collection of the contents of a particular folder on the local node.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Destinations" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Destinations to which the folder contents need to be transferred.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="LocalStore" type="LocalStoreType" minOccurs="0" maxOccurs="unbounded"/>
                  <xs:element name="FileStore" type="FileStoreType" minOccurs="0" maxOccurs="unbounded"/>
                  <xs:element name="AzureBlob" type="AzureBlobType" minOccurs="0" maxOccurs="unbounded"/>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element ref="Parameters" minOccurs="0" maxOccurs="1"/>
          </xs:sequence>
          <xs:attribute name="IsEnabled" type="xs:string">
            <xs:annotation>
              <xs:documentation>Whether or not collection of the contents of this folder is enabled. By default, it is not enabled.</xs:documentation>
            </xs:annotation>
          </xs:attribute>
          <xs:attributeGroup ref="RelativeFolderPath"/>
          <xs:attributeGroup ref="DataDeletionAgeInDays"/>
        </xs:complexType>
      </xs:element>

属性详细信息

IsEnabled

指示是否启用对此文件夹的内容的收集。 默认未启用。

属性
name IsEnabled
type xs:string

Content 元素详细信息

Destinations

文件夹内容需要传输到的目标。

属性
name Destinations
minOccurs 0

Attribute
ref parameters
minOccurs 0
maxOccurs 1

FromSource 元素

属性 Value
type xs:string
内容 0 个元素,0 个属性
defined ContainerHostEntryPointType complexType 本地
name FromSource
minOccurs 0
maxOccurs 1

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="FromSource" type="xs:string" minOccurs="0" maxOccurs="1"/>

GatewayResourceManagerReplicatorEndpoint 元素

属性 Value
type InternalEndpointType
内容 0 个元素,0 个属性
defined FabricEndpointsType complexType 本地
name GatewayResourceManagerReplicatorEndpoint
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="GatewayResourceManagerReplicatorEndpoint" type="InternalEndpointType" minOccurs="0"/>

Group 元素(在 Groups 中定义)

将组声明为可在策略中引用的安全主体。

属性 Value
type 匿名的 complexType
content 2 个元素,1 个属性
defined 在 Groups 元素本地
name
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Group" maxOccurs="unbounded">
                            <xs:annotation>
                                <xs:documentation>Declares a group as a security principal, which can be referenced in policies.</xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                                <xs:sequence>
                                    <xs:element name="NTLMAuthenticationPolicy" minOccurs="0">
                                        <xs:complexType>
                                            <xs:attribute name="IsEnabled" type="xs:boolean" use="optional" default="true"/>
                                        </xs:complexType>
                                    </xs:element>
                                    <xs:element name="Membership" minOccurs="0">
                                        <xs:complexType>
                                            <xs:choice maxOccurs="unbounded">
                                                <xs:element name="DomainGroup" minOccurs="0" maxOccurs="unbounded">
                                                    <xs:complexType>
                                                        <xs:attribute name="Name" type="xs:string" use="required"/>
                                                    </xs:complexType>
                                                </xs:element>
                                                <xs:element name="SystemGroup" minOccurs="0" maxOccurs="unbounded">
                                                    <xs:complexType>
                                                        <xs:attribute name="Name" type="xs:string" use="required"/>
                                                    </xs:complexType>
                                                </xs:element>
                                                <xs:element name="DomainUser" minOccurs="0" maxOccurs="unbounded">
                                                    <xs:complexType>
                                                        <xs:attribute name="Name" type="xs:string" use="required"/>
                                                    </xs:complexType>
                                                </xs:element>
                                            </xs:choice>
                                        </xs:complexType>
                                    </xs:element>
                                </xs:sequence>
                                <xs:attribute name="Name" type="xs:string" use="required">
                                    <xs:annotation>
                                        <xs:documentation>Name of the local group account. The name will be prefixed with the application ID.</xs:documentation>
                                    </xs:annotation>
                                </xs:attribute>
                            </xs:complexType>
                        </xs:element>

属性详细信息

名称

本地组帐户的名称。 该名称将以应用程序 ID 作为前缀。

属性
name 名称
type xs:string
use 必需

Content 元素详细信息

NTLMAuthenticationPolicy

Attribute
name NTLMAuthenticationPolicy
minOccurs 0

Membership

属性
name Membership
minOccurs 0

Group 元素(在 MemberOf 中定义)

要将用户添加到的组。 必须在 Groups 节中定义该组。

属性 Value
type 匿名的 complexType
内容 0 个元素,1 个属性
defined 在 MemberOf 元素本地
name
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Group" minOccurs="0" maxOccurs="unbounded">
                                                                                                        <xs:annotation>
                                                                                                                <xs:documentation>The group to add the user to.  The group must be defined in the Groups section.</xs:documentation>
                                                                                                        </xs:annotation>
                                                                                                        <xs:complexType>
                                                                                                                <xs:attribute name="NameRef" type="xs:string" use="required">
                                                                                                                        <xs:annotation>
                                                                                                                                <xs:documentation>The name of the group.</xs:documentation>
                                                                                                                        </xs:annotation>
                                                                                                                </xs:attribute>
                                                                                                        </xs:complexType>
                                                                                                </xs:element>

属性详细信息

NameRef

组名称。

属性
name NameRef
type xs:string
use 必填

Groups 元素

将组集声明为可在策略中引用的安全主体。 如果不同的服务入口点有多个用户,而且这些用户需要拥有特定的常见组级别权限,Groups 就特别有用。

属性 Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined SecurityPrincipalsType complexType 本地
name
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Groups" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Declares a set of groups as security principals, which can be referenced in policies. Groups are useful if there are multiple users for different service entry points and they need to have certain common privileges that are available at the group level.</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="Group" maxOccurs="unbounded">
                            <xs:annotation>
                                <xs:documentation>Declares a group as a security principal, which can be referenced in policies.</xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                                <xs:sequence>
                                    <xs:element name="NTLMAuthenticationPolicy" minOccurs="0">
                                        <xs:complexType>
                                            <xs:attribute name="IsEnabled" type="xs:boolean" use="optional" default="true"/>
                                        </xs:complexType>
                                    </xs:element>
                                    <xs:element name="Membership" minOccurs="0">
                                        <xs:complexType>
                                            <xs:choice maxOccurs="unbounded">
                                                <xs:element name="DomainGroup" minOccurs="0" maxOccurs="unbounded">
                                                    <xs:complexType>
                                                        <xs:attribute name="Name" type="xs:string" use="required"/>
                                                    </xs:complexType>
                                                </xs:element>
                                                <xs:element name="SystemGroup" minOccurs="0" maxOccurs="unbounded">
                                                    <xs:complexType>
                                                        <xs:attribute name="Name" type="xs:string" use="required"/>
                                                    </xs:complexType>
                                                </xs:element>
                                                <xs:element name="DomainUser" minOccurs="0" maxOccurs="unbounded">
                                                    <xs:complexType>
                                                        <xs:attribute name="Name" type="xs:string" use="required"/>
                                                    </xs:complexType>
                                                </xs:element>
                                            </xs:choice>
                                        </xs:complexType>
                                    </xs:element>
                                </xs:sequence>
                                <xs:attribute name="Name" type="xs:string" use="required">
                                    <xs:annotation>
                                        <xs:documentation>Name of the local group account. The name will be prefixed with the application ID.</xs:documentation>
                                    </xs:annotation>
                                </xs:attribute>
                            </xs:complexType>
                        </xs:element>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>

Content 元素详细信息

将组声明为可在策略中引用的安全主体。

属性
name
maxOccurs unbounded

HealthConfig 元素

指定容器的 docker HEALTHCHECK 集成选项。

属性 Value
type ContainerHealthConfigType
content 0 个元素,0 个属性
defined ContainerHostPoliciesType complexType 本地
name HealthConfig
minOccurs 0
maxOccurs 1

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="HealthConfig" type="ContainerHealthConfigType" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation>Specifies docker HEALTHCHECK integration options for the container.</xs:documentation>
        </xs:annotation>
      </xs:element>

HealthPolicy 元素

描述各种应用程序评估运行状况事件报告该策略相关实体。 如果未指定策略,则假定实体处于警告或错误运行状况报告是否不正常状态。

属性 Value
type ApplicationHealthPolicyType
content 0 个元素,0 个属性
defined ApplicationPoliciesType complexType 本地
name HealthPolicy
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="HealthPolicy" type="ApplicationHealthPolicyType" minOccurs="0"/>

HttpApplicationGatewayEndpoint 元素

属性 Value
type InputEndpointType
content 0 个元素,0 个属性
defined FabricEndpointsType complexType 本地
name HttpApplicationGatewayEndpoint
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="HttpApplicationGatewayEndpoint" type="InputEndpointType" minOccurs="0"/>

HttpGatewayEndpoint 元素

属性 Value
type InputEndpointType
content 0 个元素,0 个属性
defined FabricEndpointsType complexType 本地
name HttpGatewayEndpoint
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="HttpGatewayEndpoint" type="InputEndpointType" minOccurs="0"/>

Image 元素

容器映像,对应于要启动的 OS 内部版本号。 如果 Os 属性未指定,则认为容器映像适合所有版本的 OS,并且会替代在服务清单中指定的映像。

属性 Value
type ImageType
content 0 个元素,0 个属性
defined ImageOverridesType complexType 本地
name 映像
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Image" type="ImageType" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>Container image corresponding to OS build version number to be launched. If the Os attribute is not specified, the container image
            is assumed to work across all versions of the OS and overrides the image specified in the service manifest.</xs:documentation>
        </xs:annotation>
      </xs:element>

ImageName 元素

https://hub.docker.com 或 Azure 容器注册表上的存储库和映像。

属性 Value
type xs:string
内容 0 个元素,0 个属性
defined ContainerHostEntryPointType complexType 本地
name ImageName

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ImageName" type="xs:string">
        <xs:annotation>
          <xs:documentation>The repo and image on https://hub.docker.com or Azure Container Registry.</xs:documentation>
        </xs:annotation>
      </xs:element>

ImageOverrides 元素

映像名对应于要启动的 OS 内部版本号。

属性 Value
type ImageOverridesType
content 0 个元素,0 个属性
defined ContainerHostPoliciesType complexType 本地
name ImageOverrides
minOccurs 0
maxOccurs 1

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ImageOverrides" type="ImageOverridesType" minOccurs="0" maxOccurs="1">
      <xs:annotation>
        <xs:documentation>Image names corresponding to OS build number to be launched.</xs:documentation>
      </xs:annotation>
      </xs:element>

ImageStoreServiceReplicatorEndpoint 元素

属性 Value
type InternalEndpointType
内容 0 个元素,0 个属性
defined FabricEndpointsType complexType 本地
name ImageStoreServiceReplicatorEndpoint
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ImageStoreServiceReplicatorEndpoint" type="InternalEndpointType" minOccurs="0"/>

Infrastructure 示例

属性 Value
type 匿名的 complexType
content 6 个元素,0 个属性
defined ClusterManifestType complexType 本地
name 基础结构

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Infrastructure">
                                <xs:complexType>
                                        <xs:choice>
                                                <xs:element name="WindowsServer">
                                                        <xs:complexType>
                                                                <xs:complexContent>
                                                                        <xs:extension base="WindowsInfrastructureType">
                                                                                <xs:attribute name="IsScaleMin" type="xs:boolean" default="false"/>
                                                                        </xs:extension>
                                                                </xs:complexContent>
                                                        </xs:complexType>
                                                </xs:element>
            <xs:element name="Linux">
              <xs:complexType>
                <xs:complexContent>
                  <xs:extension base="LinuxInfrastructureType">
                    <xs:attribute name="IsScaleMin" type="xs:boolean" default="false"/>
                  </xs:extension>
                </xs:complexContent>
              </xs:complexType>
            </xs:element>
                                                <xs:element name="WindowsAzure">
                                                        <xs:complexType>
                                                                <xs:sequence>
                                                                        <xs:element name="Roles">
                                                                                <xs:complexType>
                                                                                        <xs:sequence>
                                                                                                <xs:element name="Role" type="AzureRoleType" maxOccurs="unbounded"/>
                                                                                        </xs:sequence>
                                                                                </xs:complexType>
                                                                        </xs:element>
                                                                </xs:sequence>
                                                        </xs:complexType>
                                                </xs:element>
                                                <xs:element name="WindowsAzureStaticTopology">
                                                        <xs:complexType>
                                                                <xs:complexContent>
                                                                        <xs:extension base="WindowsInfrastructureType"/>
                                                                </xs:complexContent>
                                                        </xs:complexType>
                                                </xs:element>
                                                <xs:element name="Blackbird">
                                                        <xs:complexType>
                                                                <xs:sequence>
                                                                        <xs:element name="Roles">
                                                                                <xs:complexType>
                                                                                        <xs:sequence>
                                                                                                <xs:element name="Role" type="BlackbirdRoleType" minOccurs="1" maxOccurs="unbounded"/>
                                                                                        </xs:sequence>
                                                                                </xs:complexType>
                                                                        </xs:element>
                                                                </xs:sequence>
                                                        </xs:complexType>
                                                </xs:element>
                                                <xs:element name="PaaS">
                                                        <xs:complexType>
                                                                <xs:all>
                                                                        <xs:element name="Roles">
                                                                                <xs:complexType>
                                                                                        <xs:sequence>
                                                                                                <xs:element name="Role" type="PaaSRoleType" maxOccurs="unbounded"/>
                                                                                        </xs:sequence>
                                                                                </xs:complexType>
                                                                        </xs:element>
                                                                        <xs:element name="Votes">
                                                                                <xs:complexType>
                                                                                        <xs:sequence>
                                                                                                <xs:element name="Vote" type="PaaSVoteType" maxOccurs="unbounded"/>
                                                                                        </xs:sequence>
                                                                                </xs:complexType>
                                                                        </xs:element>
                                                                </xs:all>
                                                        </xs:complexType>
                                                </xs:element>
                                        </xs:choice>
                                </xs:complexType>
                        </xs:element>

Content 元素详细信息

WindowsServer

属性
name WindowsServer

Linux

属性
name Linux

WindowsAzure

属性
name WindowsAzure

WindowsAzureStaticTopology

属性
name WindowsAzureStaticTopology

Blackbird

属性
name Blackbird

PaaS

属性
name PaaS

InfrastructureInformation 元素

描述需要在其上运行结构的基础结构。

属性 Value
type InfrastructureInformationType
content 0 个元素,0 个属性
defined globally
name InfrastructureInformation

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="InfrastructureInformation" type="InfrastructureInformationType">
                <xs:annotation>
                        <xs:documentation>Describes the infrastructure on which fabric needs to run.</xs:documentation>
                </xs:annotation>
        </xs:element>

InstanceCountScalingMechanism 元素

定义用于增加分区实例数的机制。 此属性仅适用于无状态服务。

属性 Value
type 匿名的 complexType
内容 0 个元素,3 个属性
defined ScalingPolicyMechanismGroup 组本地
name InstanceCountScalingMechanism
minOccurs 0
maxOccurs 1

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="InstanceCountScalingMechanism" minOccurs="0" maxOccurs="1">
                <xs:annotation>
                    <xs:documentation>Defines a mechanism for increasing the instance count of a partition. This is for stateless services only.</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:attribute name="MinInstanceCount" type="xs:string" use="required">
                        <xs:annotation>
                            <xs:documentation>The minimum number of instances.</xs:documentation>
                        </xs:annotation>
                    </xs:attribute>
                    <xs:attribute name="MaxInstanceCount" type="xs:string" use="required">
                        <xs:annotation>
                            <xs:documentation>The maximum number of instances..</xs:documentation>
                        </xs:annotation>
                    </xs:attribute>
                    <xs:attribute name="ScaleIncrement" type="xs:string" use="required">
                        <xs:annotation>
                            <xs:documentation>The number of instances by which to perform the upshift/downshift.</xs:documentation>
                        </xs:annotation>
                    </xs:attribute>
                </xs:complexType>
            </xs:element>

属性详细信息

MinInstanceCount

最小实例数。

属性
name MinInstanceCount
type xs:string
use 必填

MaxInstanceCount

最大实例数。

属性
name MaxInstanceCount
type xs:string
use 必填

ScaleIncrement

作为执行升档/降档依据的实例数。

属性
name ScaleIncrement
type xs:string
use 必填

KtlLoggerSettings 元素

描述与此节点类型关联的 KtlLogger 信息

属性 Value
type FabricKtlLoggerSettingsType
content 0 个元素,0 个属性
defined 在 NodeType 元素本地
name KtlLoggerSettings
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="KtlLoggerSettings" type="FabricKtlLoggerSettingsType" minOccurs="0">
                                                                            <xs:annotation>
                                                                              <xs:documentation>Describe the KtlLogger information associated with this node type</xs:documentation>
                                                                            </xs:annotation>
                                                                          </xs:element>

Label 元素

指定容器的标签。

属性 Value
type ContainerLabelType
content 0 个元素,0 个属性
defined ContainerHostPoliciesType complexType 本地
name Label
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Label" type="ContainerLabelType" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
            <xs:documentation>Specifies the labels for the container.</xs:documentation>
        </xs:annotation>
      </xs:element>

LeaseDriverEndpoint 元素

属性 Value
type InternalEndpointType
内容 0 个元素,0 个属性
defined FabricEndpointsType complexType 本地
name LeaseDriverEndpoint

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="LeaseDriverEndpoint" type="InternalEndpointType"/>

Linux 元素

属性 Value
type 匿名的 complexType
内容 0 个元素,0 个属性
defined 在 Infrastructure 元素本地
name Linux

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Linux">
              <xs:complexType>
                <xs:complexContent>
                  <xs:extension base="LinuxInfrastructureType">
                    <xs:attribute name="IsScaleMin" type="xs:boolean" default="false"/>
                  </xs:extension>
                </xs:complexContent>
              </xs:complexType>
            </xs:element>

LoadMetric 元素

应在其上均衡此服务的资源,例如内存或 CPU 使用率。 包含此服务的每个副本或实例默认消耗的资源量信息。

属性 Value
type LoadMetricType
content 0 个元素,0 个属性
defined 在 LoadMetrics 元素、LoadMetrics 元素、LoadMetrics 元素、LoadMetrics 元素、 LoadMetrics 元素本地
name LoadMetric
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="LoadMetric" type="LoadMetricType" maxOccurs="unbounded"/>

LoadMetrics 元素(在 ServiceGroupMemberType 中定义)

加载此服务报告的指标。

属性 Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined ServiceGroupMemberType complexType 本地
name LoadMetrics
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="LoadMetrics" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Load metrics reported by this service.</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="LoadMetric" type="LoadMetricType" maxOccurs="unbounded"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>

Content 元素详细信息

LoadMetric

属性
name LoadMetric
type LoadMetricType
maxOccurs unbounded

LoadMetrics 元素(在 ServiceGroupTypeMember 中定义)

加载此服务报告的指标,用于资源均衡服务。

Attribute Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined 在 ServiceGroupTypeMember 元素本地
name LoadMetrics
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="LoadMetrics" minOccurs="0">
          <xs:annotation>
            <xs:documentation>Load metrics reported by this service, used for resource balancing services.</xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="LoadMetric" type="LoadMetricType" maxOccurs="unbounded"/>
            </xs:sequence>
          </xs:complexType>
        </xs:element>

Content 元素详细信息

LoadMetric

属性
name LoadMetric
type LoadMetricType
maxOccurs unbounded

LoadMetrics 元素(在 ServiceGroupTypeType 中定义)

加载此服务报告的指标。

属性 Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined ServiceGroupTypeType complexType 本地
name LoadMetrics
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="LoadMetrics" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Load metrics reported by this service.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="LoadMetric" type="LoadMetricType" maxOccurs="unbounded"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>

Content 元素详细信息

LoadMetric

属性
name LoadMetric
type LoadMetricType
maxOccurs unbounded

LoadMetrics 元素(在 ServiceTypeType 中定义)

加载此服务报告的指标。

属性 Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined ServiceTypeType complexType 本地
name LoadMetrics
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="LoadMetrics" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Load metrics reported by this service.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="LoadMetric" type="LoadMetricType" maxOccurs="unbounded"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>

Content 元素详细信息

LoadMetric

属性
name LoadMetric
type LoadMetricType
maxOccurs unbounded

LoadMetrics 元素(在 ServiceType 中定义)

加载此服务报告的指标,用于资源均衡服务。

Attribute Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined ServiceType complexType 本地
name LoadMetrics
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="LoadMetrics" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Load metrics reported by this service, used for resource balancing services.</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="LoadMetric" type="LoadMetricType" maxOccurs="unbounded"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>

Content 元素详细信息

LoadMetric

属性
name LoadMetric
type LoadMetricType
maxOccurs unbounded

LocalStore 元素(类型 LocalStoreETWType)

描述 ETW 事件在节点中的存储目标。

属性 Value
type LocalStoreETWType
content 0 个元素,0 个属性
defined 在 Destinations 元素本地
name LocalStore
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="LocalStore" type="LocalStoreETWType" minOccurs="0" maxOccurs="unbounded"/>

LocalStore 元素(类型 LocalStoreType)

描述诊断数据在节点中的存储目标。

属性 Value
type LocalStoreType
content 0 个元素,0 个属性
defined 在 Destinations 元素本地、Destinations 元素
name LocalStore
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="LocalStore" type="LocalStoreType" minOccurs="0" maxOccurs="unbounded"/>

LogCollectionPolicies 元素

指定是否已启用日志收集。 仅在 Azure 群集环境中适用

属性 Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined ApplicationPoliciesType complexType 本地
name LogCollectionPolicies
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="LogCollectionPolicies" minOccurs="0">
                                <xs:annotation>
                                        <xs:documentation>Specifies whether log collection is enabled. Works only in an Azure cluster environment</xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                        <xs:sequence maxOccurs="unbounded">
                                                <xs:element name="LogCollectionPolicy">
                                                        <xs:complexType>
                                                                <xs:attribute name="Path" type="xs:string" use="optional"/>
                                                        </xs:complexType>
                                                </xs:element>
                                        </xs:sequence>
                                </xs:complexType>
                        </xs:element>

Content 元素详细信息

LogCollectionPolicy

属性
name LogCollectionPolicy

LogCollectionPolicy 元素

属性 Value
type 匿名的 complexType
内容 0 个元素,1 个属性
defined 在 LogCollectionPolicies 元素本地
name LogCollectionPolicy

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="LogCollectionPolicy">
                                                        <xs:complexType>
                                                                <xs:attribute name="Path" type="xs:string" use="optional"/>
                                                        </xs:complexType>
                                                </xs:element>

属性详细信息

`Path`

属性
name `Path`
type xs:string
use 可选

LogConfig 元素

指定容器的日志记录驱动程序。

属性 Value
type ContainerLoggingDriverType
content 0 个元素,0 个属性
defined ContainerHostPoliciesType complexType 本地
name LogConfig
minOccurs 0
maxOccurs 1

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="LogConfig" type="ContainerLoggingDriverType" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation>Specifies the logging driver for a container.</xs:documentation>
        </xs:annotation>
      </xs:element>

LogicalDirectories 元素

描述与此节点类型关联的 LogicalDirectories 设置

属性 Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined 在 NodeType 元素本地
name LogicalDirectories
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="LogicalDirectories" minOccurs="0">
                                                                            <xs:annotation>
                                                                              <xs:documentation>Describe the LogicalDirectories settings associated with this node type</xs:documentation>
                                                                            </xs:annotation>
                                                                            <xs:complexType>
                                                                              <xs:sequence>
                                                                                <xs:element name="LogicalDirectory" type="LogicalDirectoryType" maxOccurs="unbounded"/>
                                                                              </xs:sequence>
                                                                            </xs:complexType>
                                                                          </xs:element>

Content 元素详细信息

LogicalDirectory

属性
name LogicalDirectory
type LogicalDirectoryType
maxOccurs unbounded

LogicalDirectory 元素

描述 LogicalDirectoryType。

属性 Value
type LogicalDirectoryType
content 0 个元素,0 个属性
defined 在 LogicalDirectories 元素本地
name LogicalDirectory
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="LogicalDirectory" type="LogicalDirectoryType" maxOccurs="unbounded"/>

ManagedAssembly 元素

不受支持,请不要使用。 要托管的托管程序集的名称(例如 Queue.dll)。

属性 Value
type ManagedAssemblyType
content 0 个元素,0 个属性
defined DllHostEntryPointType complexType 本地
name ManagedAssembly

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ManagedAssembly" type="ManagedAssemblyType"/>

ManifestDataPackage 元素

声明一个按 Name 属性命名的文件夹,该文件夹位于将由进程在运行时使用的静态数据文件所在的 PackageRoot 中。 升级服务清单中所列的任何数据包时,Service Fabric 会回收主机和支持包中指定的所有 EXE 和 DLLHOST。

属性 Value
type DataPackageType
content 0 个元素,0 个属性
defined 在 ManifestDataPackages 元素本地
name ManifestDataPackage
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ManifestDataPackage" type="DataPackageType" minOccurs="0" maxOccurs="unbounded"/>

ManifestDataPackages 元素

列出包含此服务清单的组件的 ETW 清单的数据包。 包含 ETW 清单的数据包不应包含其他任何文件。

属性 Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined 在 ETW 元素本地
name ManifestDataPackages
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ManifestDataPackages" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Lists the data packages containing ETW manifests for the components of this service manifest. The data package containing ETW manifests should not contain any other files. </xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="ManifestDataPackage" type="DataPackageType" minOccurs="0" maxOccurs="unbounded"/>
                </xs:sequence>
              </xs:complexType>
            </xs:element>

Content 元素详细信息

ManifestDataPackage

属性
name ManifestDataPackage
type DataPackageType
minOccurs 0
maxOccurs unbounded

Member 元素

属性 Value
type ServiceGroupMemberType
content 0 个元素,0 个属性
defined 在 Members 元素本地,Members 元素
name 成员
minOccurs 1
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Member" type="ServiceGroupMemberType" minOccurs="1" maxOccurs="unbounded"/>

MemberOf 元素

用户可以添加到任何现有的成员身份组中,因此它可以继承所有属性和该成员身份组的安全设置。 成员身份组可用来保护需要按不同的服务或相同的服务(在不同计算机上)访问的外部资源。

Attribute Value
type 匿名的 complexType
content 2 个元素,0 个属性
defined 在 User 元素本地
name MemberOf
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="MemberOf" minOccurs="0">
                                        <xs:annotation>
                                            <xs:documentation>Users can be added to any existing membership group, so it can inherit all the properties and security settings of that membership group. The membership group can be used to secure external resources that need to be accessed by different services or the same service (on a different machine).</xs:documentation>
                                                                                </xs:annotation>
                                                                                <xs:complexType>
                                                                                        <xs:choice maxOccurs="unbounded">
                                                                                                <xs:element name="SystemGroup" minOccurs="0" maxOccurs="unbounded">
                                                                                                        <xs:annotation>
                                                                                                                <xs:documentation>The system group to add the user to.  The system group must be defined in the Groups section.</xs:documentation>
                                                                                                        </xs:annotation>
                                                                                                        <xs:complexType>
                                                                                                                <xs:attribute name="Name" type="xs:string" use="required">
                                                                                                                        <xs:annotation>
                                                                                                                                <xs:documentation>The name of the system group.</xs:documentation>
                                                                                                                        </xs:annotation>
                                                                                                                </xs:attribute>
                                                                                                        </xs:complexType>
                                                                                                </xs:element>
                                                                                                <xs:element name="Group" minOccurs="0" maxOccurs="unbounded">
                                                                                                        <xs:annotation>
                                                                                                                <xs:documentation>The group to add the user to.  The group must be defined in the Groups section.</xs:documentation>
                                                                                                        </xs:annotation>
                                                                                                        <xs:complexType>
                                                                                                                <xs:attribute name="NameRef" type="xs:string" use="required">
                                                                                                                        <xs:annotation>
                                                                                                                                <xs:documentation>The name of the group.</xs:documentation>
                                                                                                                        </xs:annotation>
                                                                                                                </xs:attribute>
                                                                                                        </xs:complexType>
                                                                                                </xs:element>
                                                                                        </xs:choice>
                                                                                </xs:complexType>
                                                                        </xs:element>

Content 元素详细信息

SystemGroup

要将用户添加到的系统组。 必须在 Groups 节中定义该系统组。

Attribute
name SystemGroup
minOccurs 0
maxOccurs unbounded

要将用户添加到的组。 必须在 Groups 节中定义该组。

属性
name
minOccurs 0
maxOccurs unbounded

Members 元素(在 StatefulServiceGroupType 中定义)

此服务组的成员服务

属性 Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined StatefulServiceGroupType complexType 本地
name 成员
minOccurs 1
maxOccurs 1

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Members" minOccurs="1" maxOccurs="1">
                        <xs:annotation>
                            <xs:documentation>Member services of this service group</xs:documentation>
                        </xs:annotation>
                        <xs:complexType>
                            <xs:sequence>
                                <xs:element name="Member" type="ServiceGroupMemberType" minOccurs="1" maxOccurs="unbounded"/>
                            </xs:sequence>
                        </xs:complexType>
                    </xs:element>

Content 元素详细信息

成员

属性
name 成员
type ServiceGroupMemberType
minOccurs 1
maxOccurs unbounded

Members 元素(在 StatelessServiceGroupType 中定义)

此服务组的成员服务

属性 Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined StatelessServiceGroupType complexType 本地
name 成员
minOccurs 1
maxOccurs 1

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Members" minOccurs="1" maxOccurs="1">
                        <xs:annotation>
                            <xs:documentation>Member services of this service group</xs:documentation>
                        </xs:annotation>
                        <xs:complexType>
                            <xs:sequence>
                                <xs:element name="Member" type="ServiceGroupMemberType" minOccurs="1" maxOccurs="unbounded"/>
                            </xs:sequence>
                        </xs:complexType>
                    </xs:element>

Content 元素详细信息

成员

属性
name 成员
type ServiceGroupMemberType
minOccurs 1
maxOccurs unbounded

Membership 元素

属性 Value
type 匿名的 complexType
content 3 个元素,0 个属性
defined 在 Group 元素本地
name Membership
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Membership" minOccurs="0">
                                        <xs:complexType>
                                            <xs:choice maxOccurs="unbounded">
                                                <xs:element name="DomainGroup" minOccurs="0" maxOccurs="unbounded">
                                                    <xs:complexType>
                                                        <xs:attribute name="Name" type="xs:string" use="required"/>
                                                    </xs:complexType>
                                                </xs:element>
                                                <xs:element name="SystemGroup" minOccurs="0" maxOccurs="unbounded">
                                                    <xs:complexType>
                                                        <xs:attribute name="Name" type="xs:string" use="required"/>
                                                    </xs:complexType>
                                                </xs:element>
                                                <xs:element name="DomainUser" minOccurs="0" maxOccurs="unbounded">
                                                    <xs:complexType>
                                                        <xs:attribute name="Name" type="xs:string" use="required"/>
                                                    </xs:complexType>
                                                </xs:element>
                                            </xs:choice>
                                        </xs:complexType>
                                    </xs:element>

Content 元素详细信息

DomainGroup

属性
name DomainGroup
minOccurs 0
maxOccurs unbounded

SystemGroup

属性
name SystemGroup
minOccurs 0
maxOccurs unbounded

DomainUser

属性
name DomainUser
minOccurs 0
maxOccurs unbounded

NTLMAuthenticationPolicy 元素(在 Group 中定义)

属性 Value
type 匿名的 complexType
内容 0 个元素,1 个属性
defined 在 Group 元素本地
name NTLMAuthenticationPolicy
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="NTLMAuthenticationPolicy" minOccurs="0">
                                        <xs:complexType>
                                            <xs:attribute name="IsEnabled" type="xs:boolean" use="optional" default="true"/>
                                        </xs:complexType>
                                    </xs:element>

属性详细信息

IsEnabled

属性
name IsEnabled
type xs:boolean
use 可选
默认值

NTLMAuthenticationPolicy 元素(在 User 中定义)

属性 Value
type 匿名的 complexType
content 0 个元素,6 个属性
defined 在 User 元素本地
name NTLMAuthenticationPolicy
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="NTLMAuthenticationPolicy" minOccurs="0">
                                        <xs:complexType>
                                            <xs:attribute name="IsEnabled" type="xs:boolean" use="optional" default="true"/>
                                            <xs:attribute name="PasswordSecret" type="xs:string" use="required"/>
                                            <xs:attribute name="PasswordSecretEncrypted" type="xs:boolean" use="optional" default="false"/>
                                            <xs:attribute name="X509StoreLocation" use="optional" default="LocalMachine">
                                                <xs:simpleType>
                                                    <xs:restriction base="xs:string">
                                                        <xs:enumeration value="LocalMachine"/>
                                                        <xs:enumeration value="CurrentUser"/>
                                                    </xs:restriction>
                                                </xs:simpleType>
                                            </xs:attribute>
                                                                                        <xs:attribute name="X509StoreName" default="My">
                                                <xs:simpleType>
                                                    <xs:restriction base="xs:string"/>
                                                </xs:simpleType>
                                            </xs:attribute>
                                            <xs:attribute name="X509Thumbprint" type="xs:string"/>
                                        </xs:complexType>
                                    </xs:element>

属性详细信息

IsEnabled

属性
name IsEnabled
type xs:boolean
use 可选
默认值

PasswordSecret

属性
name PasswordSecret
type xs:string
use 必填

PasswordSecretEncrypted

属性
name PasswordSecretEncrypted
type xs:boolean
use 可选
默认值 false

X509StoreLocation

属性
name X509StoreLocation
use 可选
默认值 LocalMachine

X509StoreName

属性
name X509StoreName
默认值 My

X509Thumbprint

属性
name X509Thumbprint
type xs:string

NamedPartition 元素

描述基于每个分区的名称的命名分区方案。

属性 Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined PartitionDescriptionGroup 组本地
name NamedPartition

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="NamedPartition">
                <xs:annotation>
                    <xs:documentation>Describes a named partitioning scheme based on names for each partition.</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:sequence maxOccurs="unbounded">
                        <xs:element name="Partition">
                            <xs:annotation>
                                <xs:documentation>Describes a partition by name.</xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                                <xs:attribute name="Name" use="required">
                                    <xs:annotation>
                                        <xs:documentation>The name of the partition</xs:documentation>
                                    </xs:annotation>
                                    <xs:simpleType>
                                        <xs:restriction base="xs:string">
                                            <xs:minLength value="1"/>
                                        </xs:restriction>
                                    </xs:simpleType>
                                </xs:attribute>
                            </xs:complexType>
                        </xs:element>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>

Content 元素详细信息

分区

按名称描述分区。

Attribute
name 分区

NamingReplicatorEndpoint 元素

属性 Value
type InternalEndpointType
内容 0 个元素,0 个属性
defined FabricEndpointsType complexType 本地
name NamingReplicatorEndpoint
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="NamingReplicatorEndpoint" type="InternalEndpointType" minOccurs="0"/>

NetworkConfig 元素

指定容器的网络配置。

属性 Value
type ContainerNetworkConfigType
content 0 个元素,0 个属性
defined ContainerHostPoliciesType complexType 本地
name NetworkConfig
minOccurs 0
maxOccurs 1

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="NetworkConfig" type="ContainerNetworkConfigType" minOccurs="0" maxOccurs="1">
            <xs:annotation>
                <xs:documentation>Specifies the network configuration for a container.</xs:documentation>
            </xs:annotation>
        </xs:element>

NetworkPolicies 元素

指定包含容器网络策略的网络策略。

属性 Value
type NetworkPoliciesType
content 0 个元素,0 个属性
defined ServiceManifestImportPoliciesType complexTypeServicePackageType complexType 本地
name NetworkPolicies
minOccurs 0
maxOccurs 1

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="NetworkPolicies" type="NetworkPoliciesType" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation>Specifies network policies including container network policies.</xs:documentation>
        </xs:annotation>
      </xs:element>

Node 元素(类型 FabricNodeType)

描述 Azure Service Fabric 节点。

Attribute Value
type FabricNodeType
content 0 个元素,0 个属性
defined 在 NodeList 元素本地,NodeList 元素
name 节点
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Node" type="FabricNodeType" maxOccurs="unbounded"/>

Node 元素(类型 InfrastructureNodeType)

描述所需的基础结构信息。

属性 Value
type InfrastructureNodeType
content 0 个元素,0 个属性
defined 本地 NodeList 元素中
name 节点
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Node" type="InfrastructureNodeType" maxOccurs="unbounded"/>

NodeList 元素(在 InfrastructureInformationType 中定义)

属性 Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined 在本地 InfrastructureInformationType complexType
name NodeList

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="NodeList">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Node" type="InfrastructureNodeType" maxOccurs="unbounded"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>

Content 元素详细信息

节点

属性
name 节点
type InfrastructureNodeType
maxOccurs unbounded

NodeList 元素(在 LinuxInfrastructureType 中定义)

属性 Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined 在本地 LinuxInfrastructureType complexType
name NodeList

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="NodeList">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Node" type="FabricNodeType" maxOccurs="unbounded"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>

Content 元素详细信息

节点

属性
name 节点
type FabricNodeType
maxOccurs unbounded

NodeList 元素(在 WindowsInfrastructureType 中定义)

属性 Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined 在本地 WindowsInfrastructureType complexType
name NodeList

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="NodeList">
                                <xs:complexType>
                                        <xs:sequence>
                                                <xs:element name="Node" type="FabricNodeType" maxOccurs="unbounded"/>
                                        </xs:sequence>
                                </xs:complexType>
                        </xs:element>

Content 元素详细信息

节点

属性
name 节点
type FabricNodeType
maxOccurs unbounded

NodeType 元素

描述节点类型。

属性 Value
type 匿名的 complexType
content 7 个元素,1 个属性
defined 在 Nodetype 元素本地
name NodeType
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="NodeType" maxOccurs="unbounded">
                                                        <xs:annotation>
                                                                <xs:documentation>Describe a node type.</xs:documentation>
                                                        </xs:annotation>
                                                        <xs:complexType>
                                                                <xs:all>
                                                                        <xs:element name="Endpoints" type="FabricEndpointsType" minOccurs="0">
                                                                                <xs:annotation>
                                                                                        <xs:documentation>Describe the endpoints associated with this node type</xs:documentation>
                                                                                </xs:annotation>
                                                                        </xs:element>
                                                                          <xs:element name="KtlLoggerSettings" type="FabricKtlLoggerSettingsType" minOccurs="0">
                                                                            <xs:annotation>
                                                                              <xs:documentation>Describe the KtlLogger information associated with this node type</xs:documentation>
                                                                            </xs:annotation>
                                                                          </xs:element>
                                                                          <xs:element name="LogicalDirectories" minOccurs="0">
                                                                            <xs:annotation>
                                                                              <xs:documentation>Describe the LogicalDirectories settings associated with this node type</xs:documentation>
                                                                            </xs:annotation>
                                                                            <xs:complexType>
                                                                              <xs:sequence>
                                                                                <xs:element name="LogicalDirectory" type="LogicalDirectoryType" maxOccurs="unbounded"/>
                                                                              </xs:sequence>
                                                                            </xs:complexType>
                                                                          </xs:element>
                                                                          <xs:element name="Certificates" type="CertificatesType" minOccurs="0">
                                                                                <xs:annotation>
                                                                                        <xs:documentation>Describe the certificates associated with this node type</xs:documentation>
                                                                                </xs:annotation>
                                                                        </xs:element>
                                                                        <xs:element name="PlacementProperties" minOccurs="0">
                                                                                <xs:annotation>
                                                                                        <xs:documentation>Describe the properties for this NodeType that will be used as placement constraints</xs:documentation>
                                                                                </xs:annotation>
                                                                                <xs:complexType>
                                                                                        <xs:sequence>
                                                                                                <xs:element name="Property" type="KeyValuePairType" minOccurs="0" maxOccurs="unbounded"/>
                                                                                        </xs:sequence>
                                                                                </xs:complexType>
                                                                        </xs:element>
                                                                        <xs:element name="Capacities" minOccurs="0">
                                                                                <xs:annotation>
                                                                                        <xs:documentation>The capacities of various metrics for this node type</xs:documentation>
                                                                                </xs:annotation>
                                                                                <xs:complexType>
                                                                                        <xs:sequence>
                                                                                                <xs:element name="Capacity" type="KeyValuePairType" minOccurs="0" maxOccurs="unbounded"/>
                                                                                        </xs:sequence>
                                                                                </xs:complexType>
                                                                        </xs:element>
                                                                        <xs:element name="SfssRgPolicies" minOccurs="0">
                                                                                <xs:annotation>
                                                                                        <xs:documentation>The SF system services resource governance policy for this node type</xs:documentation>
                                                                                </xs:annotation>
                                                                                <xs:complexType>
                                                                                        <xs:sequence>
                                                                                                <xs:element name="SfssRgPolicy" type="KeyValuePairType" minOccurs="0" maxOccurs="unbounded"/>
                                                                                        </xs:sequence>
                                                                                </xs:complexType>
                                                                        </xs:element>
                                                                </xs:all>
                                                                <xs:attribute name="Name" type="xs:string" use="required">
                                                                        <xs:annotation>
                                                                                <xs:documentation>Name of the NodeType</xs:documentation>
                                                                        </xs:annotation>
                                                                </xs:attribute>
                                                        </xs:complexType>
                                                </xs:element>

属性详细信息

名称

NodeType 的名称

属性
name 名称
type xs:string
use 必需

Content 元素详细信息

终结点

描述与此节点类型关联的终结点

属性
name 终结点
type FabricEndpointsType
minOccurs 0

KtlLoggerSettings

描述与此节点类型关联的 KtlLogger 信息

属性
name KtlLoggerSettings
type FabricKtlLoggerSettingsType
minOccurs 0

LogicalDirectories

描述与此节点类型关联的 LogicalDirectories 设置

属性
name LogicalDirectories
minOccurs 0

证书

描述与此节点类型关联的证书

属性
name 证书
type CertificatesType
minOccurs 0

PlacementProperties

描述要用作放置约束的此 NodeType 的属性

Attribute
name PlacementProperties
minOccurs 0

Capacities

此节点类型的各个指标的容量

属性
name Capacities
minOccurs 0

SfssRgPolicies

此节点类型的 SF 系统服务资源管理策略

Attribute
name SfssRgPolicies
minOccurs 0

NodeTypes 元素

属性 Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined ClusterManifestType complexType 本地
name NodeTypes
minOccurs 1

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="NodeTypes" minOccurs="1">
                                <xs:complexType>
                                        <xs:sequence>
                                                <xs:element name="NodeType" maxOccurs="unbounded">
                                                        <xs:annotation>
                                                                <xs:documentation>Describe a node type.</xs:documentation>
                                                        </xs:annotation>
                                                        <xs:complexType>
                                                                <xs:all>
                                                                        <xs:element name="Endpoints" type="FabricEndpointsType" minOccurs="0">
                                                                                <xs:annotation>
                                                                                        <xs:documentation>Describe the endpoints associated with this node type</xs:documentation>
                                                                                </xs:annotation>
                                                                        </xs:element>
                                                                          <xs:element name="KtlLoggerSettings" type="FabricKtlLoggerSettingsType" minOccurs="0">
                                                                            <xs:annotation>
                                                                              <xs:documentation>Describe the KtlLogger information associated with this node type</xs:documentation>
                                                                            </xs:annotation>
                                                                          </xs:element>
                                                                          <xs:element name="LogicalDirectories" minOccurs="0">
                                                                            <xs:annotation>
                                                                              <xs:documentation>Describe the LogicalDirectories settings associated with this node type</xs:documentation>
                                                                            </xs:annotation>
                                                                            <xs:complexType>
                                                                              <xs:sequence>
                                                                                <xs:element name="LogicalDirectory" type="LogicalDirectoryType" maxOccurs="unbounded"/>
                                                                              </xs:sequence>
                                                                            </xs:complexType>
                                                                          </xs:element>
                                                                          <xs:element name="Certificates" type="CertificatesType" minOccurs="0">
                                                                                <xs:annotation>
                                                                                        <xs:documentation>Describe the certificates associated with this node type</xs:documentation>
                                                                                </xs:annotation>
                                                                        </xs:element>
                                                                        <xs:element name="PlacementProperties" minOccurs="0">
                                                                                <xs:annotation>
                                                                                        <xs:documentation>Describe the properties for this NodeType that will be used as placement constraints</xs:documentation>
                                                                                </xs:annotation>
                                                                                <xs:complexType>
                                                                                        <xs:sequence>
                                                                                                <xs:element name="Property" type="KeyValuePairType" minOccurs="0" maxOccurs="unbounded"/>
                                                                                        </xs:sequence>
                                                                                </xs:complexType>
                                                                        </xs:element>
                                                                        <xs:element name="Capacities" minOccurs="0">
                                                                                <xs:annotation>
                                                                                        <xs:documentation>The capacities of various metrics for this node type</xs:documentation>
                                                                                </xs:annotation>
                                                                                <xs:complexType>
                                                                                        <xs:sequence>
                                                                                                <xs:element name="Capacity" type="KeyValuePairType" minOccurs="0" maxOccurs="unbounded"/>
                                                                                        </xs:sequence>
                                                                                </xs:complexType>
                                                                        </xs:element>
                                                                        <xs:element name="SfssRgPolicies" minOccurs="0">
                                                                                <xs:annotation>
                                                                                        <xs:documentation>The SF system services resource governance policy for this node type</xs:documentation>
                                                                                </xs:annotation>
                                                                                <xs:complexType>
                                                                                        <xs:sequence>
                                                                                                <xs:element name="SfssRgPolicy" type="KeyValuePairType" minOccurs="0" maxOccurs="unbounded"/>
                                                                                        </xs:sequence>
                                                                                </xs:complexType>
                                                                        </xs:element>
                                                                </xs:all>
                                                                <xs:attribute name="Name" type="xs:string" use="required">
                                                                        <xs:annotation>
                                                                                <xs:documentation>Name of the NodeType</xs:documentation>
                                                                        </xs:annotation>
                                                                </xs:attribute>
                                                        </xs:complexType>
                                                </xs:element>
                                        </xs:sequence>
                                </xs:complexType>
                        </xs:element>

Content 元素详细信息

NodeType

描述节点类型。

属性
name NodeType
maxOccurs unbounded

PaaS 元素

属性 Value
type 匿名的 complexType
content 2 个元素,0 个属性
defined 在 Infrastructure 元素本地
name PaaS

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="PaaS">
                                                        <xs:complexType>
                                                                <xs:all>
                                                                        <xs:element name="Roles">
                                                                                <xs:complexType>
                                                                                        <xs:sequence>
                                                                                                <xs:element name="Role" type="PaaSRoleType" maxOccurs="unbounded"/>
                                                                                        </xs:sequence>
                                                                                </xs:complexType>
                                                                        </xs:element>
                                                                        <xs:element name="Votes">
                                                                                <xs:complexType>
                                                                                        <xs:sequence>
                                                                                                <xs:element name="Vote" type="PaaSVoteType" maxOccurs="unbounded"/>
                                                                                        </xs:sequence>
                                                                                </xs:complexType>
                                                                        </xs:element>
                                                                </xs:all>
                                                        </xs:complexType>
                                                </xs:element>

Content 元素详细信息

角色

属性
name 角色

Votes

属性
name Votes

PackageSharingPolicy 元素

指示是否应跨同一服务类型的服务实例共享某个代码、配置或数据包。

属性 Value
type PackageSharingPolicyType
content 0 个元素,0 个属性
defined ServiceManifestImportPoliciesType complexType 本地
name PackageSharingPolicy
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="PackageSharingPolicy" type="PackageSharingPolicyType" minOccurs="0"/>

Parameter 元素(类型 ParameterType)

属性 Value
type ParameterType
content 0 个元素,0 个属性
defined ParametersType complexType 本地
name 参数
minOccurs 1
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Parameter" type="ParameterType" minOccurs="1" maxOccurs="unbounded"/>

Parameters 中定义的 Parameter 元素

要在此清单中使用的应用程序参数。 可在应用程序实例化期间更改参数值;如果未提供值,则使用默认值。

Attribute Value
type 匿名的 complexType
内容 0 个元素,2 个属性
defined 在 Parameters 元素本地
name 参数
block
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Parameter" block="" minOccurs="0" maxOccurs="unbounded">
              <xs:annotation>
                <xs:documentation>An application parameter to be used in this manifest. The parameter value can be changed during application instantiation, or, if no value is supplied the default value is used.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:attribute name="Name" use="required">
                  <xs:annotation>
                    <xs:documentation>The name of the parameter to be used in the manifest as "[Name]".</xs:documentation>
                  </xs:annotation>
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:minLength value="1"/>
                    </xs:restriction>
                  </xs:simpleType>
                </xs:attribute>
                <xs:attribute name="DefaultValue" type="xs:string" use="required">
                  <xs:annotation>
                    <xs:documentation>Default value for the parameter, used if the parameter value is not provided during application instantiation.</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
              </xs:complexType>
            </xs:element>

属性详细信息

名称

要在清单中用作“[Name]”的参数名称。

属性
name 名称
use 必填

DefaultValue

该参数的默认值,若应用程序实例化期间未提供该参数值,将使用该值。

属性
name DefaultValue
type xs:string
use 必填

Parameter 元素(在 Parameters 中定义)

属性 Value
type 匿名的 complexType
内容 0 个元素,0 个属性
defined 在 Parameters 元素本地
name 参数
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Parameter" minOccurs="0" maxOccurs="unbounded">
              <xs:complexType>
                <xs:attributeGroup ref="NameValuePair"/>
              </xs:complexType>
            </xs:element>

Section 中定义的 Parameter 元素

要重写的设置。

Attribute Value
type 匿名的 complexType
内容 0 个元素,2 个属性
defined 在 Section 元素本地
name 参数
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Parameter" minOccurs="0" maxOccurs="unbounded">
              <xs:annotation>
                <xs:documentation>The setting to override.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:attributeGroup ref="NameValuePair"/>
                <xs:attribute name="IsEncrypted" type="xs:boolean" default="false">
                  <xs:annotation>
                    <xs:documentation>
                      If true, the value of this parameter is encrypted. The application developer is responsible for creating a certificate and using the Invoke-ServiceFabricEncryptSecret cmdlet to encrypt sensitive information. The certificate information that will be used to encrypt the value is specified in the Certificates section. This attribute is deprecated. Please use Type attribute.
                    </xs:documentation>
                                    </xs:annotation>
                                </xs:attribute>
                <xs:attribute name="Type" type="xs:string" use="optional">
                  <xs:annotation>
                    <xs:documentation>
                      This value defines the type of value you have specified in the 'Value' Attribute. It can be SecretsStoreRef/Encrypted/PlainText.
                      If set to SecretsStoreRef, we retrieve  the reference value from the SecretStore.
                      If set to Encrypted, the application developer is responsible for creating a certificate and using the Invoke-ServiceFabricEncryptSecret cmdlet to encrypt sensitive information.
                    </xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                            </xs:complexType>
                        </xs:element>

属性详细信息

IsEncrypted

若为 true,则此参数的值已加密。 应用程序开发人员负责创建证书并使用 Invoke ServiceFabricEncryptSecret cmdlet 来加密敏感信息。 在证书部分中指定将用于加密值的证书信息。 此属性已弃用。 请使用 Type 属性。

Attribute
name IsEncrypted
type xs:boolean
默认值 false

类型

此值定义在“Value”属性中指定的值的类型。 它可以是 SecretsStoreRef/Encrypted/PlainText。 如果设置为 SecretsStoreRef,则我们从 SecretStore 检索引用值。 如果设置为 Encrypted,则应用程序开发人员负责创建证书并使用 Invoke-ServiceFabricEncryptSecret cmdlet 来加密敏感信息。

Attribute
name 类型
type xs:string
use 可选

Parameter 元素(在 Section 中定义)

Attribute Value
type 匿名的 complexType
内容 0 个元素,5 个属性
defined 在 Section 元素本地
name 参数
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Parameter" minOccurs="0" maxOccurs="unbounded">
              <xs:complexType>
                <xs:attribute name="Name" type="xs:string" use="required"/>
                <xs:attribute name="Value" type="xs:string" use="required"/>
                <xs:attribute name="MustOverride" type="xs:boolean" default="false">
                  <xs:annotation>
                    <xs:documentation>If true, the value of this parameter must be overridden by higher level configuration.</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                <xs:attribute name="IsEncrypted" type="xs:boolean" default="false">
                  <xs:annotation>
                    <xs:documentation>If true, the value of this parameter is encrypted.</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                <xs:attribute name="Type" type="xs:string" use="optional"/>
              </xs:complexType>
            </xs:element>

属性详细信息

名称

Attribute
name 名称
type xs:string
use 必需

Value

Attribute
name
type xs:string
use 必需

MustOverride

若为 true,则此参数的值必须由更高级别的配置重写。

Attribute
name New
type xs:boolean
默认值 false

IsEncrypted

若为 true,则此参数的值已加密。

Attribute
name IsEncrypted
type xs:boolean
默认值 false

类型

Attribute
name 类型
type xs:string
use 可选

Parameters 元素(类型 ParametersType)

指定为名称/值对的其他设置

Attribute Value
type ParametersType
内容 0 个元素,0 个属性
defined globally
name 参数

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Parameters" type="ParametersType">
    <xs:annotation>
      <xs:documentation>Additional settings specified as name-value pairs</xs:documentation>
    </xs:annotation>
  </xs:element>

Parameters 元素(在 AppInstanceDefinitionType 中定义)

应用程序清单中定义的应用程序参数列表及其各自的值。

Attribute Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined AppInstanceDefinitionType complexType 本地
name 参数

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Parameters">
        <xs:annotation>
          <xs:documentation>List of parameters for the application as defined in application manifest and their respective values.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Parameter" minOccurs="0" maxOccurs="unbounded">
              <xs:complexType>
                <xs:attributeGroup ref="NameValuePair"/>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>

Content 元素详细信息

参数

Attribute
name 参数
minOccurs 0
maxOccurs unbounded

Parameters 元素(在 ApplicationManifestType 中定义)

声明在此应用程序清单中使用的参数。 当应用程序已实例化并可用于重写应用程序或服务配置设置时,可以提供这些参数的值。

Attribute Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined ApplicationManifestType complexType 本地
name 参数
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Parameters" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Declares the parameters that are used in this application manifest. The value of these parameters can be supplied when the application is instantiated and can be used to override application or service configuration settings.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Parameter" block="" minOccurs="0" maxOccurs="unbounded">
              <xs:annotation>
                <xs:documentation>An application parameter to be used in this manifest. The parameter value can be changed during application instantiation, or, if no value is supplied the default value is used.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:attribute name="Name" use="required">
                  <xs:annotation>
                    <xs:documentation>The name of the parameter to be used in the manifest as "[Name]".</xs:documentation>
                  </xs:annotation>
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:minLength value="1"/>
                    </xs:restriction>
                  </xs:simpleType>
                </xs:attribute>
                <xs:attribute name="DefaultValue" type="xs:string" use="required">
                  <xs:annotation>
                    <xs:documentation>Default value for the parameter, used if the parameter value is not provided during application instantiation.</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>

Content 元素详细信息

参数

要在此清单中使用的应用程序参数。 可在应用程序实例化期间更改参数值;如果未提供值,则使用默认值。

Attribute
name 参数
block
minOccurs 0
maxOccurs unbounded

Partition 元素

按名称描述分区。

Attribute Value
type 匿名的 complexType
内容 0 个元素,1 个属性
defined 在 NamedPartition 元素本地
name 分区

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Partition">
                            <xs:annotation>
                                <xs:documentation>Describes a partition by name.</xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                                <xs:attribute name="Name" use="required">
                                    <xs:annotation>
                                        <xs:documentation>The name of the partition</xs:documentation>
                                    </xs:annotation>
                                    <xs:simpleType>
                                        <xs:restriction base="xs:string">
                                            <xs:minLength value="1"/>
                                        </xs:restriction>
                                    </xs:simpleType>
                                </xs:attribute>
                            </xs:complexType>
                        </xs:element>

属性详细信息

名称

分区名称

Attribute
name 名称
use 必需

PersistencePolicy 元素

服务类型的持久性策略扩展

Attribute Value
type 匿名的 complexType
内容 1 个元素,4 个属性
defined globally
name PersistencePolicy

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="PersistencePolicy">
    <xs:annotation>
      <xs:documentation>Persistence Policy extension for the Service Type</xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="Properties" type="ServiceTypeExtensionPolicyPropertiesType" minOccurs="0"/>
      </xs:sequence>
      <xs:attribute name="Name" type="xs:string" use="required"/>
      <xs:attribute name="Mode" use="required">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="Synchronous"/>
            <xs:enumeration value="Asynchronous"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="WriteBehind" type="xs:string" use="required"/>
      <xs:attribute name="Provider" type="xs:string" use="required"/>
    </xs:complexType>
  </xs:element>

属性详细信息

名称

Attribute
name 名称
type xs:string
use 必需

模式

Attribute
name 模式
use 必需

WriteBehind

Attribute
name WriteBehind
type xs:string
use 必需

提供程序

Attribute
name 提供程序
type xs:string
use 必需

Content 元素详细信息

属性

Attribute
name 属性
type ServiceTypeExtensionPolicyPropertiesType
minOccurs 0

PlacementConstraints 元素

用于控制服务可在群集中的哪些节点上运行。 描述节点属性名称和值的服务的要求一个键/值对。 可以使用简单的布尔逻辑将各个语句组合在一起,以创建所需的约束。 例如,“(FirmwareVersion>12 && InDMZ == True)”。

Attribute Value
type xs:string
内容 0 个元素,0 个属性
defined ServiceType complexTypeServiceTypeType complexTypeServiceGroupTypeType complexType 本地
name PlacementConstraints
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="PlacementConstraints" type="xs:string" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Used to control which nodes in the cluster a service can run on. A key/value pair which describes the node property name and the service's requirements for the value. Individual statements can be grouped together with simple boolean logic to create the necessary constraint. For example, "(FirmwareVersion&gt;12  &amp;&amp; InDMZ == True)".</xs:documentation>
                </xs:annotation>
            </xs:element>

PlacementProperties 元素

描述要用作放置约束的此 NodeType 的属性

Attribute Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined 在 NodeType 元素本地
name PlacementProperties
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="PlacementProperties" minOccurs="0">
                                                                                <xs:annotation>
                                                                                        <xs:documentation>Describe the properties for this NodeType that will be used as placement constraints</xs:documentation>
                                                                                </xs:annotation>
                                                                                <xs:complexType>
                                                                                        <xs:sequence>
                                                                                                <xs:element name="Property" type="KeyValuePairType" minOccurs="0" maxOccurs="unbounded"/>
                                                                                        </xs:sequence>
                                                                                </xs:complexType>
                                                                        </xs:element>

Content 元素详细信息

属性

Attribute
name properties
type KeyValuePairType
minOccurs 0
maxOccurs unbounded

Policies 元素(类型 ApplicationPoliciesType)

描述要在应用程序级别应用的策略(日志集合、默认运行方式帐户、运行状况和安全访问)。

Attribute Value
type ApplicationPoliciesType
内容 0 个元素,0 个属性
defined ApplicationManifestType complexTypeEnvironmentType complexType 本地
name 策略
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Policies" type="ApplicationPoliciesType" minOccurs="0"/>

Policies 元素(类型 ServiceManifestImportPoliciesType)

描述要在导入的服务清单中应用的策略(终结点绑定、包共享、运行方式和安全访问权限)。

Attribute Value
type ServiceManifestImportPoliciesType
内容 0 个元素,0 个属性
defined 在 ServiceManifestImport 元素本地
name 策略
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Policies" type="ServiceManifestImportPoliciesType" minOccurs="0"/>

PortBinding 元素

指定要绑定容器公开的端口的终结点资源。

Attribute Value
type PortBindingType
内容 0 个元素,0 个属性
defined ServicePackageContainerPolicyType complexTypeContainerHostPoliciesType complexType 本地
name PortBinding
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="PortBinding" type="PortBindingType" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>Specifies which endpoint resource to bind container exposed port.</xs:documentation>
        </xs:annotation>
      </xs:element>

Principals 元素

描述此应用程序运行服务和安全资源所需的安全主体(用户、组)。 主体在 policies 节中引用。

Attribute Value
type SecurityPrincipalsType
内容 0 个元素,0 个属性
defined ApplicationManifestType complexTypeEnvironmentType complexType 本地
name 主体
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Principals" type="SecurityPrincipalsType" minOccurs="0"/>

Program 元素

可执行文件名称。 例如,“MySetup.bat”或“MyServiceHost.exe”。

Attribute Value
type xs:string
内容 0 个元素,0 个属性
defined ExeHostEntryPointType complexType 本地
name 计划

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Program" type="xs:string">
        <xs:annotation>
          <xs:documentation>The executable name. For example, "MySetup.bat" or "MyServiceHost.exe".</xs:documentation>
        </xs:annotation></xs:element>

Properties 元素

定义持久性和逐出策略的属性。

Attribute Value
type ServiceTypeExtensionPolicyPropertiesType
内容 0 个元素,0 个属性
defined 在 PersistencePolicy 元素、EvictionPolicy 元素本地
name 属性
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Properties" type="ServiceTypeExtensionPolicyPropertiesType" minOccurs="0"/>

Property 元素(类型 KeyValuePairType)

Attribute Value
type KeyValuePairType
内容 0 个元素,0 个属性
defined 在 PlacementProperties 元素本地
name 属性
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Property" type="KeyValuePairType" minOccurs="0" maxOccurs="unbounded"/>

Property 元素(在 ServiceTypeExtensionPolicyPropertiesType 中定义)

Attribute Value
type 匿名的 complexType
内容 0 个元素,2 个属性
defined ServiceTypeExtensionPolicyPropertiesType complexType 本地
name 属性
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Property" minOccurs="0" maxOccurs="unbounded">
        <xs:complexType>
          <xs:attribute name="Name" type="xs:string" use="required"/>
          <xs:attribute name="Value" type="xs:string" use="required"/>
        </xs:complexType>
      </xs:element>

属性详细信息

名称

Attribute
name 名称
type xs:string
use 必需

Value

Attribute
name
type xs:string
use 必需

ProviderGuid 元素

Attribute Value
type 匿名的 complexType
内容 0 个元素,1 个属性
defined 在 ProviderGuids 元素本地
name ProviderGuid
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ProviderGuid" minOccurs="0" maxOccurs="unbounded">
                    <xs:complexType>
                      <xs:attribute name="Value" use="required">
                        <xs:simpleType>
                          <xs:restriction base="xs:string">
                            <xs:pattern value="[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}"/>
                          </xs:restriction>
                        </xs:simpleType>
                      </xs:attribute>
                    </xs:complexType>
                  </xs:element>

属性详细信息

Value

Attribute
name Value
use 必需

ProviderGuids 元素

列出此服务清单的组件的 ETW 提供程序 GUID。

Attribute Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined 在 ETW 元素本地
name ProviderGuids
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ProviderGuids" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Lists the ETW provider GUIDs for the components of this service manifest.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="ProviderGuid" minOccurs="0" maxOccurs="unbounded">
                    <xs:complexType>
                      <xs:attribute name="Value" use="required">
                        <xs:simpleType>
                          <xs:restriction base="xs:string">
                            <xs:pattern value="[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}"/>
                          </xs:restriction>
                        </xs:simpleType>
                      </xs:attribute>
                    </xs:complexType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>

Content 元素详细信息

ProviderGuid

Attribute
name ProviderGuid
minOccurs 0
maxOccurs unbounded

RepairManagerReplicatorEndpoint 元素

Attribute Value
type InternalEndpointType
内容 0 个元素,0 个属性
defined FabricEndpointsType complexType 本地
name RepairManagerReplicatorEndpoint
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="RepairManagerReplicatorEndpoint" type="InternalEndpointType" minOccurs="0"/>

RepositoryCredentials 元素

要从中提取映像的容器映像存储库的凭据。

Attribute Value
type RepositoryCredentialsType
内容 0 个元素,0 个属性
defined ContainerHostPoliciesType complexType 本地
name RepositoryCredentials
minOccurs 0
maxOccurs 1

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="RepositoryCredentials" type="RepositoryCredentialsType" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation>Credentials for container image repository to pull images from.</xs:documentation>
        </xs:annotation>
      </xs:element>

ResourceGovernancePolicy 元素

指定代码包的资源限制。

Attribute Value
type ResourceGovernancePolicyType
内容 0 个元素,0 个属性
defined ServiceManifestImportPoliciesType complexType、DigestedCodePackage 元素、DigestedEndpoint 元素本地
name ResourceGovernancePolicy
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ResourceGovernancePolicy" type="ResourceGovernancePolicyType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Specifies resource limits for a codepackage.</xs:documentation>
        </xs:annotation>
      </xs:element>

ResourceOverrides 元素

指定服务清单资源中声明的终结点的资源重写。

Attribute Value
type ResourceOverridesType
内容 0 个元素,0 个属性
defined 在 ServiceManifestImport 元素本地
name ResourceOverrides
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ResourceOverrides" type="ResourceOverridesType" minOccurs="0"/>

Resources 元素

描述此服务使用的资源,可以在不修改已编译代码的情况下声明,并可以在部署服务时更改。 通过应用程序清单的 Principals 和 Policies 节控制对这些资源的访问。

Attribute Value
type ResourcesType
内容 0 个元素,0 个属性
defined ServiceManifestType complexType 本地
name 资源
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Resources" type="ResourcesType" minOccurs="0"/>

Role 元素(类型 AzureRoleType)

Attribute Value
type AzureRoleType
内容 0 个元素,0 个属性
defined 在 Roles 元素本地
name 角色
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Role" type="AzureRoleType" maxOccurs="unbounded"/>

Role 元素(类型 BlackbirdRoleType)

Attribute Value
type BlackbirdRoleType
内容 0 个元素,0 个属性
defined 在 Roles 元素本地
name 角色
minOccurs 1
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Role" type="BlackbirdRoleType" minOccurs="1" maxOccurs="unbounded"/>

Role 元素(类型 PaaSRoleType)

Attribute Value
type PaaSRoleType
内容 0 个元素,0 个属性
defined 在 Roles 元素本地
name 角色
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Role" type="PaaSRoleType" maxOccurs="unbounded"/>

Roles 元素(在 Blackbird 中定义)

Attribute Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined 在 Blackbird 元素本地
name 角色

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Roles">
                                                                                <xs:complexType>
                                                                                        <xs:sequence>
                                                                                                <xs:element name="Role" type="BlackbirdRoleType" minOccurs="1" maxOccurs="unbounded"/>
                                                                                        </xs:sequence>
                                                                                </xs:complexType>
                                                                        </xs:element>

Content 元素详细信息

角色

Attribute
name 角色
type BlackbirdRoleType
minOccurs 1
maxOccurs unbounded

Roles 元素(在 PaaS 中定义)

Attribute Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined 在 PaaS 元素本地
name 角色

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Roles">
                                                                                <xs:complexType>
                                                                                        <xs:sequence>
                                                                                                <xs:element name="Role" type="PaaSRoleType" maxOccurs="unbounded"/>
                                                                                        </xs:sequence>
                                                                                </xs:complexType>
                                                                        </xs:element>

Content 元素详细信息

角色

Attribute
name 角色
type PaaSRoleType
maxOccurs unbounded

Roles 元素(在 WindowsAzure 中定义)

Attribute Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined 在 WindowsAzure 元素本地
name 角色

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Roles">
                                                                                <xs:complexType>
                                                                                        <xs:sequence>
                                                                                                <xs:element name="Role" type="AzureRoleType" maxOccurs="unbounded"/>
                                                                                        </xs:sequence>
                                                                                </xs:complexType>
                                                                        </xs:element>

Content 元素详细信息

角色

Attribute
name 角色
type AzureRoleType
maxOccurs unbounded

RunAsPolicy 元素

指定运行服务代码包时所用的本地用户或本地系统帐户。 在 Microsoft Entra ID 是可用的 Windows Server 部署上支持域帐户。 默认情况下,应用程序在运行 Fabric.exe 程序的帐户之下运行。 应用程序也可以以其他帐户运行,必须在 Principals 节中声明。 如果向服务应用 RunAs 策略务,而服务清单声明具有 HTTP 协议的终结点资源,则还必须指定 SecurityAccessPolicy,以确保分配给这些终结点的端口都已针对用来运行服务的 RunAs 用户帐户正确列入访问控制列表中。 对于 HTTPS 终结点,还必须定义 EndpointBindingPolicy,用于指示要返回给客户端的证书名称。

Attribute Value
type RunAsPolicyType
内容 0 个元素,0 个属性
defined ServiceManifestImportPoliciesType complexType DigestedCodePackage 元素本地
name RunAsPolicy
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="RunAsPolicy" type="RunAsPolicyType" minOccurs="0"/>

RunFrequency 元素

Attribute Value
type 匿名的 complexType
内容 0 个元素,1 个属性
defined 在 ExeHost 元素本地
name RunFrequency
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="RunFrequency" minOccurs="0">
                    <xs:complexType>
                      <xs:attribute name="IntervalInSeconds" use="required">
                        <xs:simpleType>
                          <xs:restriction base="xs:int">
                            <xs:minInclusive value="0"/>
                            <xs:maxInclusive value="2147483647"/>
                          </xs:restriction>
                        </xs:simpleType>
                      </xs:attribute>
                    </xs:complexType>
                  </xs:element>

属性详细信息

IntervalInSeconds

Attribute
name IntervalInSeconds
use 必需

ScalingPolicy 元素

由触发器和缩放机制组成的缩放策略描述。

Attribute Value
type ScalingPolicyType
内容 0 个元素,0 个属性
defined 在 ServiceScalingPolicies 元素本地
name ScalingPolicy
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ScalingPolicy" type="ScalingPolicyType" maxOccurs="unbounded"/>

SecretsCertificate 元素

指定证书信息。

Attribute Value
type FabricCertificateType
内容 0 个元素,0 个属性
defined 在 Certificates 元素、Certificates 元素、 DigestedCertificates 元素本地
name SecretsCertificate
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="SecretsCertificate" type="FabricCertificateType" minOccurs="0"/>

Section 元素(在 SettingsOverridesType 中定义)

要重写的 Settings.xml 文件中的某个节。

Attribute Value
type 匿名的 complexType
内容 1 个元素,1 个属性
defined SettingsOverridesType complexType 本地
name 部分
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Section" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>A section in the Settings.xml file to override.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Parameter" minOccurs="0" maxOccurs="unbounded">
              <xs:annotation>
                <xs:documentation>The setting to override.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:attributeGroup ref="NameValuePair"/>
                <xs:attribute name="IsEncrypted" type="xs:boolean" default="false">
                  <xs:annotation>
                    <xs:documentation>
                      If true, the value of this parameter is encrypted. The application developer is responsible for creating a certificate and using the Invoke-ServiceFabricEncryptSecret cmdlet to encrypt sensitive information. The certificate information that will be used to encrypt the value is specified in the Certificates section. This attribute is deprecated. Please use Type attribute.
                    </xs:documentation>
                                    </xs:annotation>
                                </xs:attribute>
                <xs:attribute name="Type" type="xs:string" use="optional">
                  <xs:annotation>
                    <xs:documentation>
                      This value defines the type of value you have specified in the 'Value' Attribute. It can be SecretsStoreRef/Encrypted/PlainText.
                      If set to SecretsStoreRef, we retrieve  the reference value from the SecretStore.
                      If set to Encrypted, the application developer is responsible for creating a certificate and using the Invoke-ServiceFabricEncryptSecret cmdlet to encrypt sensitive information.
                    </xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                            </xs:complexType>
                        </xs:element>
                    </xs:sequence>
                    <xs:attribute name="Name" use="required">
                        <xs:annotation>
                            <xs:documentation>The name of the section in the Settings.xml file to override.</xs:documentation>
                        </xs:annotation>
                        <xs:simpleType>
                            <xs:restriction base="xs:string">
                                <xs:minLength value="1"/>
                            </xs:restriction>
                        </xs:simpleType>
                    </xs:attribute>
                </xs:complexType>
            </xs:element>

属性详细信息

名称

要重写的 Settings.xml 文件中的节的名称。

Attribute
name 名称
use 必需

Content 元素详细信息

参数

要重写的设置。

Attribute
name 参数
minOccurs 0
maxOccurs unbounded

Section 元素(在 SettingsType 中定义)

用户定义的命名节。

Attribute Value
type 匿名的 complexType
内容 1 个元素,1 个属性
defined SettingsType complexType 本地
name 部分
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Section" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>A user-defined named section.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="Parameter" minOccurs="0" maxOccurs="unbounded">
              <xs:complexType>
                <xs:attribute name="Name" type="xs:string" use="required"/>
                <xs:attribute name="Value" type="xs:string" use="required"/>
                <xs:attribute name="MustOverride" type="xs:boolean" default="false">
                  <xs:annotation>
                    <xs:documentation>If true, the value of this parameter must be overridden by higher level configuration.</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                <xs:attribute name="IsEncrypted" type="xs:boolean" default="false">
                  <xs:annotation>
                    <xs:documentation>If true, the value of this parameter is encrypted.</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                <xs:attribute name="Type" type="xs:string" use="optional"/>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
          <xs:attribute name="Name" type="xs:string" use="required"/>
        </xs:complexType>
      </xs:element>

属性详细信息

名称

Attribute
name 名称
type xs:string
use 必需

Content 元素详细信息

参数

Attribute
name 参数
minOccurs 0
maxOccurs unbounded

SecurityAccessPolicies 元素

在应用程序级别应用到资源的安全策略列表。

Attribute Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined ApplicationPoliciesType complexType 本地
name SecurityAccessPolicies
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="SecurityAccessPolicies" minOccurs="0">
                                <xs:annotation>
                                        <xs:documentation>List of security policies applied to resources at the application level.</xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                        <xs:sequence maxOccurs="unbounded">
                                                <xs:element name="SecurityAccessPolicy" type="SecurityAccessPolicyType"/>
                                        </xs:sequence>
                                </xs:complexType>
                        </xs:element>

Content 元素详细信息

SecurityAccessPolicy

Attribute
name SecurityAccessPolicy
type SecurityAccessPolicyType

SecurityAccessPolicy 元素

向服务清单中定义的资源(例如终结点)上的主体授予访问权限。 通常,它非常有助于控制和限制服务对不同资源的访问,以尽量降低安全风险。 从市场中由不同开发人员开发的服务集合构建应用程序时,此属性尤其重要。

Attribute Value
type SecurityAccessPolicyType
内容 0 个元素,0 个属性
defined ServiceManifestImportPoliciesType complexType、SecurityAccessPolicies 元素、DigestedEndpoint 元素本地
name SecurityAccessPolicy
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="SecurityAccessPolicy" type="SecurityAccessPolicyType" minOccurs="0"/>

SecurityOption 元素

指定容器的安全选项。

Attribute Value
type SecurityOptionsType
内容 0 个元素,0 个属性
defined ContainerHostPoliciesType complexType 本地
name SecurityOption
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="SecurityOption" type="SecurityOptionsType" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>Specifies securityoptions for the container.</xs:documentation>
        </xs:annotation>
      </xs:element>

ServerCertificate 元素

用于保护群集内部通信的证书。

Attribute Value
type FabricCertificateType
内容 0 个元素,0 个属性
defined CertificatesType complexType 本地
name ServerCertificate
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServerCertificate" type="FabricCertificateType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>The certificate used to secure the intra cluster communication.</xs:documentation>
        </xs:annotation>
      </xs:element>

Service 元素

声明在实例化应用程序时要自动创建的服务。

Attribute Value
type 匿名的 complexType
内容 2 个元素,4 个属性
defined DefaultServicesType complexType 本地
name 服务

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Service">
                    <xs:annotation>
                        <xs:documentation>Declares a service to be created automatically when the application is instantiated.</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:choice minOccurs="0">
                            <xs:element name="StatelessService" type="StatelessServiceType"/>
                            <xs:element name="StatefulService" type="StatefulServiceType"/>
                        </xs:choice>
                        <xs:attribute name="Name" type="xs:string" use="required">
                            <xs:annotation>
                                <xs:documentation>The service name, used to form the fully qualified application name URI. The fully qualified name URI of the service would be: fabric:/ApplicationName/ServiceName.</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute name="GeneratedIdRef" type="xs:string" use="optional">
                            <xs:annotation>
                                <xs:documentation>Reference to the auto generated id used by Visual Studio tooling.</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute name="ServiceDnsName" type="xs:string" use="optional">
                          <xs:annotation>
                            <xs:documentation>The DNS name of the service.</xs:documentation>
                          </xs:annotation>
                        </xs:attribute>
                        <xs:attribute name="ServicePackageActivationMode" type="xs:string" use="optional" default="SharedProcess">
                          <xs:annotation>
                            <xs:documentation>ServicePackageActivationMode to be used when creating the service. Allowed values are 'SharedProcess' and 'ExclusiveProcess'. With SharedProcess mode, replica(s) or instance(s) from different partition(s) of service will share same activation of service package on a node. With ExclusiveProcess mode, each replica or instance of service will have its own dedicated activation of service package.</xs:documentation>
                          </xs:annotation>
                        </xs:attribute>
                    </xs:complexType>
                </xs:element>

属性详细信息

“属性”

服务名称,用于构成完全限定的应用程序名称 URI。 服务的完全限定名称 URI 为:fabric:/ApplicationName/ServiceName。

Attribute
name 名称
type xs:string
use 必需

GeneratedIdRef

对自动生成的 ID 的引用,此 ID 由 Visual Studio 工具使用。

Attribute
name GeneratedIdRef
type xs:string
use 可选

ServiceDnsName

服务的 DNS 名称。

Attribute
name ServiceDnsName
type xs:string
use 可选

ServicePackageActivationMode

创建服务时要使用的 ServicePackageActivationMode。 允许的值为“SharedProcess”和“ExclusiveProcess”。 使用 SharedProcess 模式时,来自不同服务分区的副本或实例在节点上共享相同的服务包激活。 使用 ExclusiveProcess 模式时,每个服务副本或实例都拥有自己专用的服务包激活。

Attribute
name ServicePackageActivationMode
type xs:string
use 可选
默认值 SharedProcess

Content 元素详细信息

StatelessService

Attribute
name StatelessService
type StatelessServiceType

StatefulService

Attribute
name StatefulService
type StatefulServiceType

ServiceConnectionEndpoint 元素

Attribute Value
type InternalEndpointType
内容 0 个元素,0 个属性
defined FabricEndpointsType complexType 本地
name ServiceConnectionEndpoint
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServiceConnectionEndpoint" type="InternalEndpointType" minOccurs="0"/>

ServiceCorrelation 元素

定义与另一个服务之间的关联关系。 将整体应用程序拆分为微服务时很有用。 一个服务对另一个服务存在本地依赖,这两个服务需要在同一个节点上运行才能正常工作。

Attribute Value
type 匿名的 complexType
内容 0 个元素,2 个属性
defined 在 ServiceCorrelations 元素本地
name ServiceCorrelation
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServiceCorrelation" maxOccurs="unbounded">
                            <xs:annotation>
                                <xs:documentation>Defines an affinity relationship with another service. Useful when splitting a previously-monolithic application into microservices.  One service has a local dependency on another service and both services need to run on the same node in order to work.</xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                                <xs:attribute name="ServiceName" use="required">
                                    <xs:annotation>
                                        <xs:documentation>The name of the other service as a URI. Example, "fabric:/otherApplication/parentService".</xs:documentation>
                                    </xs:annotation>
                                    <xs:simpleType>
                                        <xs:restriction base="xs:string">
                                            <xs:minLength value="1"/>
                                        </xs:restriction>
                                    </xs:simpleType>
                                </xs:attribute>
                                <xs:attribute name="Scheme" use="required">
                                    <xs:annotation>
                                        <xs:documentation>In NonAlignedAffinity the replicas or instances of the different services are placed on the same nodes. AlignedAffinity is used with stateful services. Configuring one stateful service as having aligned affinity with another stateful service ensures that the primaries of those services are placed on the same nodes as each other, and that each pair of secondaries are also placed on the same nodes.</xs:documentation>
                                    </xs:annotation>
                                    <xs:simpleType>
                                        <xs:restriction base="xs:string">
                                            <xs:enumeration value="Affinity"/>
                                            <xs:enumeration value="AlignedAffinity"/>
                                            <xs:enumeration value="NonAlignedAffinity"/>
                                        </xs:restriction>
                                    </xs:simpleType>
                                </xs:attribute>
                            </xs:complexType>
                        </xs:element>

属性详细信息

ServiceName

作为 URI 的其他服务的名称。 例如“fabric:/otherApplication/parentService”。

Attribute
name ServiceName
use 必需

Scheme

在 NonAlignedAffinity 下,不同服务的副本或实例放在同一个节点上。 AlignedAffinity 适用于有状态服务。 将某一有状态服务配置为与另一有状态服务具有一致相关性后,可确保这些服务的主体位于相同节点上,且每对副本也位于相同节点上。

Attribute
name Scheme
use 必需

ServiceCorrelations 元素

定义服务之间的关联关系。

Attribute Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined ServiceType complexType 本地
name ServiceCorrelations
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServiceCorrelations" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Defines affinity relationships between services.</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="ServiceCorrelation" maxOccurs="unbounded">
                            <xs:annotation>
                                <xs:documentation>Defines an affinity relationship with another service. Useful when splitting a previously-monolithic application into microservices.  One service has a local dependency on another service and both services need to run on the same node in order to work.</xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                                <xs:attribute name="ServiceName" use="required">
                                    <xs:annotation>
                                        <xs:documentation>The name of the other service as a URI. Example, "fabric:/otherApplication/parentService".</xs:documentation>
                                    </xs:annotation>
                                    <xs:simpleType>
                                        <xs:restriction base="xs:string">
                                            <xs:minLength value="1"/>
                                        </xs:restriction>
                                    </xs:simpleType>
                                </xs:attribute>
                                <xs:attribute name="Scheme" use="required">
                                    <xs:annotation>
                                        <xs:documentation>In NonAlignedAffinity the replicas or instances of the different services are placed on the same nodes. AlignedAffinity is used with stateful services. Configuring one stateful service as having aligned affinity with another stateful service ensures that the primaries of those services are placed on the same nodes as each other, and that each pair of secondaries are also placed on the same nodes.</xs:documentation>
                                    </xs:annotation>
                                    <xs:simpleType>
                                        <xs:restriction base="xs:string">
                                            <xs:enumeration value="Affinity"/>
                                            <xs:enumeration value="AlignedAffinity"/>
                                            <xs:enumeration value="NonAlignedAffinity"/>
                                        </xs:restriction>
                                    </xs:simpleType>
                                </xs:attribute>
                            </xs:complexType>
                        </xs:element>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>

Content 元素详细信息

ServiceCorrelation

定义与另一个服务之间的关联关系。 将整体应用程序拆分为微服务时很有用。 一个服务对另一个服务存在本地依赖,这两个服务需要在同一个节点上运行才能正常工作。

Attribute
name ServiceCorrelation
maxOccurs unbounded

ServiceFabricRuntimeAccessPolicy 元素

指定用于确定如何向副本公开 Service Fabric 运行时的策略。

Attribute Value
type ServiceFabricRuntimeAccessPolicyType
内容 0 个元素,0 个属性
defined ServiceManifestImportPoliciesType complexTypeServicePackageType complexType 本地
name ServiceFabricRuntimeAccessPolicy
minOccurs 0
maxOccurs 1

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServiceFabricRuntimeAccessPolicy" type="ServiceFabricRuntimeAccessPolicyType" minOccurs="0" maxOccurs="1">
      <xs:annotation>
        <xs:documentation>Specifies policies that determine how the service fabric runtime is exposed to the replicas.</xs:documentation>
      </xs:annotation>
      </xs:element>

ServiceGroup 元素

自动放置在一起的服务集合,因此在故障转移或资源管理过程中它们也会一起移动。

Attribute Value
type 匿名的 complexType
内容 2 个元素,2 个属性
defined DefaultServicesType complexType 本地
name ServiceGroup

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServiceGroup">
                    <xs:annotation>
                        <xs:documentation>A collection of services that are automatically located together, so they are also moved together during fail-over or resource management.</xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:choice minOccurs="0">
                            <xs:element name="StatelessServiceGroup" type="StatelessServiceGroupType"/>
                            <xs:element name="StatefulServiceGroup" type="StatefulServiceGroupType"/>
                        </xs:choice>
                        <xs:attribute name="Name" type="xs:string" use="required">
                            <xs:annotation>
                                <xs:documentation>Name of this service relative to this application Name URI. Fully qualified Name of the service is a combination of Name Uri of the Application and this Name.</xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute name="ServicePackageActivationMode" type="xs:string" use="optional" default="SharedProcess">
                          <xs:annotation>
                            <xs:documentation>ServicePackageActivationMode to be used when creating the service. Allowed values are 'SharedProcess' and 'ExclusiveProcess'. With SharedProcess mode, replica(s) or instance(s) from different partition(s) of service will share same activation of service package on a node. With ExclusiveProcess mode, each replica or instance of service will have its own dedicated activation of service package.</xs:documentation>
                          </xs:annotation>
                        </xs:attribute>
                    </xs:complexType>
                </xs:element>

属性详细信息

“属性”

此服务相对于此应用程序名称 URI 的名称。 服务的完全限定名称由应用程序的名称 URI 和此名称组合而成。

Attribute
name 名称
type xs:string
use 必需

ServicePackageActivationMode

创建服务时要使用的 ServicePackageActivationMode。 允许的值为“SharedProcess”和“ExclusiveProcess”。 使用 SharedProcess 模式时,来自不同服务分区的副本或实例在节点上共享相同的服务包激活。 使用 ExclusiveProcess 模式时,每个服务副本或实例都拥有自己专用的服务包激活。

Attribute
name ServicePackageActivationMode
type xs:string
use 可选
默认值 SharedProcess

Content 元素详细信息

StatelessServiceGroup

Attribute
name StatelessServiceGroup
type StatelessServiceGroupType

StatefulServiceGroup

Attribute
name StatefulServiceGroup
type StatefulServiceGroupType

ServiceGroupMembers 元素

此服务组类型的成员类型。

Attribute Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined ServiceGroupTypeType complexType 本地
name ServiceGroupMembers
minOccurs 0
maxOccurs 1

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServiceGroupMembers" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation>Member types of this service group type.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element ref="ServiceGroupTypeMember" minOccurs="1" maxOccurs="unbounded"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>

Content 元素详细信息

Attribute
ref ServiceGroupTypeMember
minOccurs 1
maxOccurs unbounded

ServiceGroupTypeMember 元素

描述服务组的成员类型。

Attribute Value
type 匿名的 complexType
内容 1 个元素,1 个属性
defined globally
name ServiceGroupTypeMember

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServiceGroupTypeMember">
    <xs:annotation>
      <xs:documentation>Describes the member type of the service group.</xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="LoadMetrics" minOccurs="0">
          <xs:annotation>
            <xs:documentation>Load metrics reported by this service, used for resource balancing services.</xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="LoadMetric" type="LoadMetricType" maxOccurs="unbounded"/>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
      <xs:attribute name="ServiceTypeName" use="required">
        <xs:annotation>
          <xs:documentation>User-defined type identifier for an Azure Service Fabric ServiceGroup Member, .e.g Actor</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:minLength value="1"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
    </xs:complexType>
  </xs:element>

属性详细信息

ServiceTypeName

适用于 Azure Service Fabric ServiceGroup 成员的用户定义类型标识符,例如 Actor

Attribute
name ServiceTypeName
use 必需

Content 元素详细信息

LoadMetrics

加载此服务报告的指标,用于资源均衡服务。

Attribute
name LoadMetrics
minOccurs 0

ServiceManifest 元素

以声明方式描述服务类型和版本。 它列出组成一个服务包以支持一个或多个服务类型的独立可升级的代码、配置和数据包。 此外,还指定资源、诊断设置和服务元数据,例如服务类型、运行状况属性和负载均衡指标。

Attribute Value
type ServiceManifestType
内容 0 个元素,0 个属性
defined globally
name ServiceManifest

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServiceManifest" type="ServiceManifestType"/>

ServiceManifestImport 元素

导入服务开发人员创建的服务清单。 必须导入应用程序中每个构成服务的服务清单。 可为服务清单声明配置重写和策略。

Attribute Value
type 匿名的 complexType
内容 5 个元素,0 个属性
defined ApplicationManifestType complexType 本地
name ServiceManifestImport
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServiceManifestImport" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>Imports a service manifest created by the service developer. A service manifest must be imported for each constituent service in the application. Configuration overrides and policies can be declared for the service manifest.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ServiceManifestRef" type="ServiceManifestRefType"/>
            <xs:element name="ConfigOverrides" minOccurs="0">
              <xs:annotation>
                <xs:documentation>Describes configuration overrides for the imported service manifest. Configuration overrides allow the flexibility of re-using the same service manifests across multiple application types by overriding the service manifest's configuration only when used with a particular application type. Configuration overrides can change any default configuration in a service manifest as long as default configuration is defined using the Settings.xml in the ConfigPackage folder. </xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="ConfigOverride" type="ConfigOverrideType" minOccurs="0" maxOccurs="unbounded"/>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="ResourceOverrides" type="ResourceOverridesType" minOccurs="0"/>
            <xs:element name="EnvironmentOverrides" type="EnvironmentOverridesType" minOccurs="0" maxOccurs="unbounded"/>
            <xs:element name="Policies" type="ServiceManifestImportPoliciesType" minOccurs="0"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>

Content 元素详细信息

ServiceManifestRef

Attribute
name ServiceManifestRef
type ServiceManifestRefType

ConfigOverrides

描述所导入服务清单的配置重写。 使用配置重写可以做到仅当与特定的应用程序类型配合使用时才重写服务清单的配置,从而可在多个应用程序类型中重复使用相同的服务清单。 只要使用 ConfigPackage 文件夹中的 Settings.xml 定义默认配置,配置重写就能更改服务清单中的任何默认配置。

Attribute
name ConfigOverrides
minOccurs 0

ResourceOverrides

Attribute
name ResourceOverrides
type ResourceOverridesType
minOccurs 0

EnvironmentOverrides

Attribute
name EnvironmentOverrides
type EnvironmentOverridesType
minOccurs 0
maxOccurs unbounded

策略

Attribute
name 策略
type ServiceManifestImportPoliciesType
minOccurs 0

ServiceManifestRef 元素

按引用导入服务清单。 当前,服务清单文件 (ServiceManifest.xml) 必须存在于生成包中。

Attribute Value
type ServiceManifestRefType
内容 0 个元素,0 个属性
defined 在 ServiceManifestImport 元素本地
name ServiceManifestRef

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServiceManifestRef" type="ServiceManifestRefType"/>

ServicePackage 元素

ServicePackage 表示带有版本的部署和激活单位。 ServicePackage 的版本根据清单版本和重写版本确定。

Attribute Value
type ServicePackageType
内容 0 个元素,0 个属性
defined globally
name ServicePackage

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServicePackage" type="ServicePackageType">
    <xs:annotation>
      <xs:documentation>ServicePackage represents a versioned unit of deployment and activation. The version of the ServicePackage is determined based on the manifest version and the version of the overrides.</xs:documentation>
    </xs:annotation>
  </xs:element>

ServicePackageContainerPolicy 元素

Attribute Value
type ServicePackageContainerPolicyType
内容 0 个元素,0 个属性
defined ServiceManifestImportPoliciesType complexTypeServicePackageType complexType 本地
name ServicePackageContainerPolicy
minOccurs 0
maxOccurs 1

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServicePackageContainerPolicy" type="ServicePackageContainerPolicyType" minOccurs="0" maxOccurs="1"/>

ServicePackageRef 元素

Attribute Value
type 匿名的 complexType
内容 0 个元素,1 个属性
defined ApplicationInstanceType complexType 本地
name ServicePackageRef
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServicePackageRef" maxOccurs="unbounded">
        <xs:complexType>
          <xs:attribute name="Name" use="required"/>
          <xs:attributeGroup ref="VersionedItemAttrGroup"/>
        </xs:complexType>
      </xs:element>

属性详细信息

名称

Attribute
name 名称
use 必需

ServicePackageResourceGovernancePolicy 元素

定义在整个服务包级别应用的资源调控策略。

Attribute Value
type ServicePackageResourceGovernancePolicyType
内容 0 个元素,0 个属性
defined ServiceManifestImportPoliciesType complexTypeServicePackageType complexType 本地
name ServicePackageResourceGovernancePolicy
minOccurs 0
maxOccurs 1

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServicePackageResourceGovernancePolicy" type="ServicePackageResourceGovernancePolicyType" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation>Defines the resource governance policy that is applied at the level of the entire service package.</xs:documentation>
        </xs:annotation>
      </xs:element>

ServicePlacementPolicies 元素(在 ServiceTypeType 中定义)

声明服务的放置策略。 当群集跨地理距离和/或地缘政治区域时很有用。

Attribute Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined ServiceTypeType complexType 本地
name ServicePlacementPolicies
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServicePlacementPolicies" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Declares placement policies for a service.  Useful when the cluster spans geographic distances or and/or geopolitical regions.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ServicePlacementPolicy" maxOccurs="unbounded">
              <xs:annotation>
                <xs:documentation>Defines a service placement policy, which specifies that the service should or should not run in certain cluster fault domains.  Useful when the cluster spans geographic distances or and/or geopolitical regions.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:attribute name="DomainName">
                  <xs:annotation>
                    <xs:documentation>The fault domain where the service should or should not be placed, depending on the Type value.</xs:documentation>
                  </xs:annotation>
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:minLength value="1"/>
                    </xs:restriction>
                  </xs:simpleType>
                </xs:attribute>
                <xs:attribute name="Type" use="required">
                  <xs:annotation>
                    <xs:documentation>InvalidDomain allows you to specify that a particular Fault Domain is invalid for this workload. RequiredDomain requires that all of the replicas be present in the specified domain. Multiple required domains can be specified. PreferredPrimaryDomain specifies the preferred Fault Domain for primary replicas. Useful in geographically spanned clusters where you are using other locations for redundancy, but would prefer that the primary replicas be placed in a certain location in order to provider lower latency for operations which go to the primary. RequiredDomainDistribution specifies that replicas are required to be distributed among the available fault domains. NonPartiallyPlace controls if the service replicas will be partially place if not all of them can be placed. </xs:documentation>
                  </xs:annotation>
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:enumeration value="InvalidDomain"/>
                      <xs:enumeration value="RequiredDomain"/>
                      <xs:enumeration value="PreferredPrimaryDomain"/>
                      <xs:enumeration value="RequiredDomainDistribution"/>
                      <xs:enumeration value="NonPartiallyPlace"/>
                    </xs:restriction>
                  </xs:simpleType>
                </xs:attribute>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>

Content 元素详细信息

ServicePlacementPolicy

定义一个服务放置策略,用于指定服务是否应在某些群集容错域中运行。 当群集跨地理距离和/或地缘政治区域时很有用。

Attribute
name ServicePlacementPolicy
maxOccurs unbounded

ServicePlacementPolicies 元素(在 ServiceType 中定义)

声明服务的放置策略。 当群集跨地理距离和/或地缘政治区域时很有用。

Attribute Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined ServiceType complexType 本地
name ServicePlacementPolicies
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServicePlacementPolicies" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Declares placement policies for a service.  Useful when the cluster spans geographic distances or and/or geopolitical regions.</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="ServicePlacementPolicy" maxOccurs="unbounded">
                            <xs:annotation>
                                <xs:documentation>Defines a service placement policy, which specifies that the service should or should not run in certain cluster fault domains.  Useful when the cluster spans geographic distances or and/or geopolitical regions.</xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                                <xs:attribute name="DomainName">
                                    <xs:annotation>
                                        <xs:documentation>The fault domain where the service should or should not be placed, depending on the Type value.</xs:documentation>
                                    </xs:annotation>
                                    <xs:simpleType>
                                        <xs:restriction base="xs:string">
                                            <xs:minLength value="1"/>
                                        </xs:restriction>
                                    </xs:simpleType>
                                </xs:attribute>
                                <xs:attribute name="Type" use="required">
                                    <xs:annotation>
                                        <xs:documentation>InvalidDomain allows you to specify that a particular Fault Domain is invalid for this workload. RequiredDomain requires that all of the replicas be present in the specified domain. Multiple required domains can be specified. PreferredPrimaryDomain specifies the preferred Fault Domain for primary replicas. Useful in geographically spanned clusters where you are using other locations for redundancy, but would prefer that the primary replicas be placed in a certain location in order to provider lower latency for operations which go to the primary. RequiredDomainDistribution specifies that replicas are required to be distributed among the available fault domains. NonPartiallyPlace controls if the service replicas will be partially place if not all of them can be placed.</xs:documentation>
                                    </xs:annotation>
                                    <xs:simpleType>
                                        <xs:restriction base="xs:string">
                                            <xs:enumeration value="InvalidDomain"/>
                                            <xs:enumeration value="RequiredDomain"/>
                                            <xs:enumeration value="PreferredPrimaryDomain"/>
                                            <xs:enumeration value="RequiredDomainDistribution"/>
                                            <xs:enumeration value="NonPartiallyPlace"/>
                                        </xs:restriction>
                                    </xs:simpleType>
                                </xs:attribute>
                            </xs:complexType>
                        </xs:element>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>

Content 元素详细信息

ServicePlacementPolicy

定义一个服务放置策略,用于指定服务是否应在某些群集容错域中运行。 当群集跨地理距离和/或地缘政治区域时很有用。

Attribute
name ServicePlacementPolicy
maxOccurs unbounded

ServicePlacementPolicies 中定义的 ServicePlacementPolicy 元素

定义一个服务放置策略,用于指定服务是否应在某些群集容错域中运行。 当群集跨地理距离和/或地缘政治区域时很有用。

Attribute Value
type 匿名的 complexType
内容 0 个元素,2 个属性
defined 在 ServicePlacementPolicies 元素本地
name ServicePlacementPolicy
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServicePlacementPolicy" maxOccurs="unbounded">
                            <xs:annotation>
                                <xs:documentation>Defines a service placement policy, which specifies that the service should or should not run in certain cluster fault domains.  Useful when the cluster spans geographic distances or and/or geopolitical regions.</xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                                <xs:attribute name="DomainName">
                                    <xs:annotation>
                                        <xs:documentation>The fault domain where the service should or should not be placed, depending on the Type value.</xs:documentation>
                                    </xs:annotation>
                                    <xs:simpleType>
                                        <xs:restriction base="xs:string">
                                            <xs:minLength value="1"/>
                                        </xs:restriction>
                                    </xs:simpleType>
                                </xs:attribute>
                                <xs:attribute name="Type" use="required">
                                    <xs:annotation>
                                        <xs:documentation>InvalidDomain allows you to specify that a particular Fault Domain is invalid for this workload. RequiredDomain requires that all of the replicas be present in the specified domain. Multiple required domains can be specified. PreferredPrimaryDomain specifies the preferred Fault Domain for primary replicas. Useful in geographically spanned clusters where you are using other locations for redundancy, but would prefer that the primary replicas be placed in a certain location in order to provider lower latency for operations which go to the primary. RequiredDomainDistribution specifies that replicas are required to be distributed among the available fault domains. NonPartiallyPlace controls if the service replicas will be partially place if not all of them can be placed.</xs:documentation>
                                    </xs:annotation>
                                    <xs:simpleType>
                                        <xs:restriction base="xs:string">
                                            <xs:enumeration value="InvalidDomain"/>
                                            <xs:enumeration value="RequiredDomain"/>
                                            <xs:enumeration value="PreferredPrimaryDomain"/>
                                            <xs:enumeration value="RequiredDomainDistribution"/>
                                            <xs:enumeration value="NonPartiallyPlace"/>
                                        </xs:restriction>
                                    </xs:simpleType>
                                </xs:attribute>
                            </xs:complexType>
                        </xs:element>

属性详细信息

DomainName

应该或不应该放置服务的容错域,具体取决于类型值。

Attribute
name DomainName

类型

凭借 InvalidDomain,可将此工作负载的某个特定容错域指定为无效。 RequiredDomain 要求所有副本都存在于指定域中。 可指定多个必需的域。 PreferredPrimaryDomain 指定主要副本的首选容错域。 可用于跨地域的群集,在此情况下,用户想要使用所有位置实现冗余,但希望主副本放置在特定的位置,以便为转到主副本的操作提供较低的延迟。 RequiredDomainDistribution 指定需在可用容错域中分配副本。 在不可放置全部服务副本的情况下,NonPartiallyPlace 控制是否可放置部分服务副本。

Attribute
name 类型
use 必需

ServicePlacementPolicy 元素(在 ServicePlacementPolicies 中定义)

定义一个服务放置策略,用于指定服务是否应在某些群集容错域中运行。 当群集跨地理距离和/或地缘政治区域时很有用。

Attribute Value
type 匿名的 complexType
内容 0 个元素,2 个属性
defined 在 ServicePlacementPolicies 元素本地
name ServicePlacementPolicy
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServicePlacementPolicy" maxOccurs="unbounded">
              <xs:annotation>
                <xs:documentation>Defines a service placement policy, which specifies that the service should or should not run in certain cluster fault domains.  Useful when the cluster spans geographic distances or and/or geopolitical regions.</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:attribute name="DomainName">
                  <xs:annotation>
                    <xs:documentation>The fault domain where the service should or should not be placed, depending on the Type value.</xs:documentation>
                  </xs:annotation>
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:minLength value="1"/>
                    </xs:restriction>
                  </xs:simpleType>
                </xs:attribute>
                <xs:attribute name="Type" use="required">
                  <xs:annotation>
                    <xs:documentation>InvalidDomain allows you to specify that a particular Fault Domain is invalid for this workload. RequiredDomain requires that all of the replicas be present in the specified domain. Multiple required domains can be specified. PreferredPrimaryDomain specifies the preferred Fault Domain for primary replicas. Useful in geographically spanned clusters where you are using other locations for redundancy, but would prefer that the primary replicas be placed in a certain location in order to provider lower latency for operations which go to the primary. RequiredDomainDistribution specifies that replicas are required to be distributed among the available fault domains. NonPartiallyPlace controls if the service replicas will be partially place if not all of them can be placed. </xs:documentation>
                  </xs:annotation>
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:enumeration value="InvalidDomain"/>
                      <xs:enumeration value="RequiredDomain"/>
                      <xs:enumeration value="PreferredPrimaryDomain"/>
                      <xs:enumeration value="RequiredDomainDistribution"/>
                      <xs:enumeration value="NonPartiallyPlace"/>
                    </xs:restriction>
                  </xs:simpleType>
                </xs:attribute>
              </xs:complexType>
            </xs:element>

属性详细信息

DomainName

应该或不应该放置服务的容错域,具体取决于类型值。

Attribute
name DomainName

类型

凭借 InvalidDomain,可将此工作负载的某个特定容错域指定为无效。 RequiredDomain 要求所有副本都存在于指定域中。 可指定多个必需的域。 PreferredPrimaryDomain 指定主要副本的首选容错域。 可用于跨地域的群集,在此情况下,用户想要使用所有位置实现冗余,但希望主副本放置在特定的位置,以便为转到主副本的操作提供较低的延迟。 RequiredDomainDistribution 指定需在可用容错域中分配副本。 在不可放置全部服务副本的情况下,NonPartiallyPlace 控制是否可放置部分服务副本。

Attribute
name 类型
use 必需

ServiceScalingPolicies 元素

声明服务的缩放策略。 用于根据需要动态缩放服务。

Attribute Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined ServiceType complexType 本地
name ServiceScalingPolicies
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServiceScalingPolicies" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Declares scaling policies for a service. Useful for dynamically scaling the service based on needs. </xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="ScalingPolicy" type="ScalingPolicyType" maxOccurs="unbounded"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>

Content 元素详细信息

ScalingPolicy

Attribute
name ScalingPolicy
type ScalingPolicyType
maxOccurs unbounded

ServiceTemplates 元素

声明可在应用程序实例内部动态创建的受允许服务类型集。 默认配置值(例如复制因子)指定用于创建服务实例,并用作模板。

Attribute Value
type ServiceTemplatesType
内容 0 个元素,0 个属性
defined ApplicationManifestType complexTypeApplicationInstanceType complexType 本地
name ServiceTemplates
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServiceTemplates" type="ServiceTemplatesType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Declares the set of permitted service types that can be created dynamically inside the application instance. Default configuration values, such as replication factor, are specified and used as a template for creating service instances.</xs:documentation>
        </xs:annotation>
      </xs:element>

ServiceTypeHealthPolicy 元素

描述用于评估运行状况事件报告的服务、分区和副本的特定服务类型的策略。

Attribute Value
type 匿名的 complexType
内容 0 个元素,0 个属性
defined ApplicationHealthPolicyType complexType 本地
name ServiceTypeHealthPolicy
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServiceTypeHealthPolicy" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>Describes the policy for evaluating health events reported on services, partitions and replicas of a particular service type.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:complexContent>
            <xs:extension base="ServiceTypeHealthPolicyType">
              <xs:attribute name="ServiceTypeName" type="xs:string" use="required">
                <xs:annotation>
                  <xs:documentation>The name of the service type that the policy will be applied to.</xs:documentation>
                </xs:annotation>
              </xs:attribute>
            </xs:extension>
          </xs:complexContent>
        </xs:complexType>
      </xs:element>

ServiceTypes 元素(类型 ServiceAndServiceGroupTypesType)

定义此清单中的 CodePackage 支持哪些服务类型。 当一种服务针对这些服务类型之一进行实例化时,可激活此清单中声明的所有代码包,方法是运行这些代码包的入口点。 在清单级别而不是代码包级别声明服务类型。

Attribute Value
type ServiceAndServiceGroupTypesType
内容 0 个元素,0 个属性
defined ServiceManifestType complexType 本地
name ServiceTypes

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServiceTypes" type="ServiceAndServiceGroupTypesType">
        <xs:annotation>
          <xs:documentation>Defines what service types are supported by a CodePackage in this manifest. When a service is instantiated against one of these service types, all code packages declared in this manifest are activated by running their entry points. Service types are declared at the manifest level and not the code package level.</xs:documentation>
        </xs:annotation>
      </xs:element>

ServiceTypes 元素(类型 ServiceTypesType)

Attribute Value
type ServiceTypesType
内容 0 个元素,0 个属性
defined 在 DigestedServiceTypes 元素本地
name ServiceTypes

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="ServiceTypes" type="ServiceTypesType"/>

Settings 元素(类型 SettingsOverridesType)

声明要重写的服务清单中的配置设置。 它由键/值对的一个或多个节组成。 可以使用 Invoke-ServiceFabricEncryptSecret cmdlet 加密参数值。

Attribute Value
type SettingsOverridesType
内容 0 个元素,0 个属性
defined ConfigOverrideType complexType 本地
name 设置
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Settings" type="SettingsOverridesType" minOccurs="0"/>

Settings 元素(类型 SettingsType)

定义服务的代码包的可配置设置。 Azure Service Fabric 不会解释这些设置,但会通过运行时 API 将其提供给代码组件使用。

Attribute Value
type SettingsType
内容 0 个元素,0 个属性
defined globally
name 设置

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Settings" type="SettingsType">
                <xs:annotation>
                        <xs:documentation>Defiles configurable settings for the code packages of a service. Azure Service Fabric does not interpret the settings, however it makes them available via Runtime APIs for use by the code components.</xs:documentation>
                </xs:annotation>
        </xs:element>

SetupEntryPoint 元素

一个特权入口点,默认情况下,以与 Service Fabric(通常是 NETWORKSERVICE 帐户)相同的凭据先于任何其他入口点运行。 EntryPoint 指定的可执行文件通常是长时间运行的服务主机。 提供单独的设置入口点可避免长时间使用高特权运行服务主机。

Attribute Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined CodePackageType complexType 本地
name SetupEntryPoint
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="SetupEntryPoint" minOccurs="0">
        <xs:annotation>
          <xs:documentation>A privileged entry point that by default runs with the same credentials as Service Fabric (typically the NETWORKSERVICE account) before any other entry point. The executable specified by EntryPoint is typically the long-running service host. The presence of a separate setup entry point avoids having to run the service host with high privileges for extended periods of time.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element name="ExeHost" type="ExeHostEntryPointType"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>

Content 元素详细信息

ExeHost

Attribute
name ExeHost
type ExeHostEntryPointType

SfssRgPolicies 元素

此节点类型的 SF 系统服务资源管理策略

Attribute Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined 在 NodeType 元素本地
name SfssRgPolicies
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="SfssRgPolicies" minOccurs="0">
                                                                                <xs:annotation>
                                                                                        <xs:documentation>The SF system services resource governance policy for this node type</xs:documentation>
                                                                                </xs:annotation>
                                                                                <xs:complexType>
                                                                                        <xs:sequence>
                                                                                                <xs:element name="SfssRgPolicy" type="KeyValuePairType" minOccurs="0" maxOccurs="unbounded"/>
                                                                                        </xs:sequence>
                                                                                </xs:complexType>
                                                                        </xs:element>

Content 元素详细信息

SfssRgPolicy

Attribute
name SfssRgPolicy
type KeyValuePairType
minOccurs 0
maxOccurs unbounded

SfssRgPolicy 元素

Attribute Value
type KeyValuePairType
内容 0 个元素,0 个属性
defined 在 SfssRgPolicies 元素本地
name SfssRgPolicy
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="SfssRgPolicy" type="KeyValuePairType" minOccurs="0" maxOccurs="unbounded"/>

SharedLogFileId 元素

用作共享日志 ID 的特定 GUID。

Attribute Value
type 匿名的 complexType
内容 0 个元素,1 个属性
defined FabricKtlLoggerSettingsType complexType 本地
name SharedLogFileId
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="SharedLogFileId" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Specific GUID to use as the shared log ID.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:attribute name="Value" use="required">
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:pattern value="[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
         </xs:complexType>
      </xs:element>

属性详细信息

Value

Attribute
name Value
use 必需

SharedLogFilePath 元素

定义共享日志的路径。

Attribute Value
type 匿名的 complexType
内容 0 个元素,1 个属性
defined FabricKtlLoggerSettingsType complexType 本地
name SharedLogFilePath
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="SharedLogFilePath" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Defines path to shared log.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:attribute name="Value" type="xs:string" use="required"/>
        </xs:complexType>
      </xs:element>

属性详细信息

Value

Attribute
name
type xs:string
use 必需

SharedLogFileSizeInMB 元素

定义共享日志的大小。

Attribute Value
type 匿名的 complexType
内容 0 个元素,1 个属性
defined FabricKtlLoggerSettingsType complexType 本地
name SharedLogFileSizeInMB
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="SharedLogFileSizeInMB" minOccurs="0">
        <xs:annotation>
          <xs:documentation>Defines how large is the shared log.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:attribute name="Value" use="required">
            <xs:simpleType>
              <xs:restriction base="xs:int">
                <xs:minInclusive value="512"/>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:complexType>
      </xs:element>

属性详细信息

Value

Attribute
name Value
use 必需

SingletonPartition 元素

声明此服务仅包含一个分区。

Attribute Value
type 匿名的 complexType
内容 0 个元素,0 个属性
defined PartitionDescriptionGroup 组本地
name SingletonPartition

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="SingletonPartition">
                <xs:annotation>
                    <xs:documentation>Declares that this service has only one partition.</xs:documentation>
                </xs:annotation>
                <xs:complexType/>
            </xs:element>

StatefulService 元素

定义有状态服务。

Attribute Value
type StatefulServiceType
内容 0 个元素,0 个属性
defined ServiceTemplatesType complexType、Service 元素本地
name StatefulService

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="StatefulService" type="StatefulServiceType"/>

StatefulServiceGroup 元素

定义有状态服务组。

Attribute Value
type StatefulServiceGroupType
内容 0 个元素,0 个属性
defined ServiceTemplatesType complexType、ServiceGroup 元素本地
name StatefulServiceGroup

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="StatefulServiceGroup" type="StatefulServiceGroupType"/>

StatefulServiceGroupType 元素

描述有状态服务组类型。

Attribute Value
type StatefulServiceGroupTypeType
内容 0 个元素,0 个属性
defined ServiceAndServiceGroupTypesType complexType 本地
name StatefulServiceGroupType

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="StatefulServiceGroupType" type="StatefulServiceGroupTypeType"/>

StatefulServiceType 元素

描述有状态服务类型。

Attribute Value
type StatefulServiceTypeType
内容 0 个元素,0 个属性
defined ServiceAndServiceGroupTypesType complexTypeServiceTypesType complexType 本地
name StatefulServiceType

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="StatefulServiceType" type="StatefulServiceTypeType"/>

StatelessService 元素

定义无状态服务。

Attribute Value
type StatelessServiceType
内容 0 个元素,0 个属性
defined ServiceTemplatesType complexType、Service 元素本地
name StatelessService

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="StatelessService" type="StatelessServiceType"/>

StatelessServiceGroup 元素

定义无状态服务组。

Attribute Value
type StatelessServiceGroupType
内容 0 个元素,0 个属性
defined ServiceTemplatesType complexType、ServiceGroup 元素本地
name StatelessServiceGroup

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="StatelessServiceGroup" type="StatelessServiceGroupType"/>

StatelessServiceGroupType 元素

描述无状态服务组类型。

Attribute Value
type StatelessServiceGroupTypeType
内容 0 个元素,0 个属性
defined ServiceAndServiceGroupTypesType complexType 本地
name StatelessServiceGroupType

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="StatelessServiceGroupType" type="StatelessServiceGroupTypeType"/>

StatelessServiceType 元素

描述无状态服务类型。

Attribute Value
type StatelessServiceTypeType
内容 0 个元素,0 个属性
defined ServiceAndServiceGroupTypesType complexTypeServiceTypesType complexType 本地
name StatelessServiceType

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="StatelessServiceType" type="StatelessServiceTypeType"/>

SystemGroup 元素(在 MemberOf 中定义)

要将用户添加到的系统组。 必须在 Groups 节中定义该系统组。

Attribute Value
type 匿名的 complexType
内容 0 个元素,1 个属性
defined 在 MemberOf 元素本地
name SystemGroup
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="SystemGroup" minOccurs="0" maxOccurs="unbounded">
                                                                                                        <xs:annotation>
                                                                                                                <xs:documentation>The system group to add the user to.  The system group must be defined in the Groups section.</xs:documentation>
                                                                                                        </xs:annotation>
                                                                                                        <xs:complexType>
                                                                                                                <xs:attribute name="Name" type="xs:string" use="required">
                                                                                                                        <xs:annotation>
                                                                                                                                <xs:documentation>The name of the system group.</xs:documentation>
                                                                                                                        </xs:annotation>
                                                                                                                </xs:attribute>
                                                                                                        </xs:complexType>
                                                                                                </xs:element>

属性详细信息

名称

系统组的名称。

Attribute
name 名称
type xs:string
use 必需

SystemGroup 元素(在 Membership 中定义)

Attribute Value
type 匿名的 complexType
内容 0 个元素,1 个属性
defined 在 Membership 元素本地
name SystemGroup
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="SystemGroup" minOccurs="0" maxOccurs="unbounded">
                                                    <xs:complexType>
                                                        <xs:attribute name="Name" type="xs:string" use="required"/>
                                                    </xs:complexType>
                                                </xs:element>

属性详细信息

名称

Attribute
name 名称
type xs:string
use 必需

TargetInformation 元素

描述 FabricDeployer 需要部署的目标。

Attribute Value
type TargetInformationType
内容 0 个元素,0 个属性
defined globally
name TargetInformation

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="TargetInformation" type="TargetInformationType">
                <xs:annotation>
                        <xs:documentation>Describes the target the FabricDeployer needs to deploy.</xs:documentation>
                </xs:annotation>
        </xs:element>

TargetInstallation 元素

Attribute Value
type WindowsFabricDeploymentInformation
内容 0 个元素,0 个属性
defined TargetInformationType complexType 本地
name TargetInstallation
minOccurs 1

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="TargetInstallation" type="WindowsFabricDeploymentInformation" minOccurs="1"/>

UniformInt64Partition 元素

描述基于 Int64 键的统一分区方案。

Attribute Value
type 匿名的 complexType
内容 0 个元素,3 个属性
defined PartitionDescriptionGroup 组本地
name UniformInt64Partition

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="UniformInt64Partition">
                <xs:annotation>
                    <xs:documentation>Describes a uniform partitioning scheme based on Int64 keys.</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:attribute name="PartitionCount" type="xs:string" use="required">
                        <xs:annotation>
                            <xs:documentation>Total number of partitions (positive integer). Each partition is responsible for a non-overlapping subrange of the overall partition key range.</xs:documentation>
                        </xs:annotation>
                    </xs:attribute>
                    <xs:attribute name="LowKey" type="xs:string" use="required">
                        <xs:annotation>
                            <xs:documentation>Inclusive low range of the partition key (long).</xs:documentation>
                        </xs:annotation>
                    </xs:attribute>
                    <xs:attribute name="HighKey" type="xs:string" use="required">
                        <xs:annotation>
                            <xs:documentation>Inclusive high range of the partition key (long).</xs:documentation>
                        </xs:annotation>
                    </xs:attribute>
                </xs:complexType>
            </xs:element>

属性详细信息

PartitionCount

分区总数(正整数)。 每个分区负责整个分区键范围的未重叠子范围。

Attribute
name PartitionCount
type xs:string
use 必需

LowKey

包含分区键的低范围 (long)。

Attribute
name LowKey
type xs:string
use 必需

HighKey

包含分区键的高范围 (long)。

Attribute
name HighKey
type xs:string
use 必需

UnmanagedDll 元素

不受支持,请不要使用。 要托管的非托管程序集的名称(例如 Queue.dll)。

Attribute Value
type UnmanagedDllType
内容 0 个元素,0 个属性
defined DllHostEntryPointType complexType 本地
name UnmanagedDll

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="UnmanagedDll" type="UnmanagedDllType"/>

UpgradeOrchestrationServiceReplicatorEndpoint 元素

Attribute Value
type InternalEndpointType
内容 0 个元素,0 个属性
defined FabricEndpointsType complexType 本地
name UpgradeOrchestrationServiceReplicatorEndpoint
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="UpgradeOrchestrationServiceReplicatorEndpoint" type="InternalEndpointType" minOccurs="0"/>

UpgradeServiceReplicatorEndpoint 元素

Attribute Value
type InternalEndpointType
内容 0 个元素,0 个属性
defined FabricEndpointsType complexType 本地
name UpgradeServiceReplicatorEndpoint
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="UpgradeServiceReplicatorEndpoint" type="InternalEndpointType" minOccurs="0"/>

User 元素

将用户声明为可在策略中引用的安全主体。

Attribute Value
type 匿名的 complexType
内容 2 个元素,5 个属性
defined 在 Users 元素本地
name 用户
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="User" maxOccurs="unbounded">
                            <xs:annotation>
                                <xs:documentation>Declares a user as a security principal, which can be referenced in policies.</xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                                <xs:sequence>
                                    <xs:element name="NTLMAuthenticationPolicy" minOccurs="0">
                                        <xs:complexType>
                                            <xs:attribute name="IsEnabled" type="xs:boolean" use="optional" default="true"/>
                                            <xs:attribute name="PasswordSecret" type="xs:string" use="required"/>
                                            <xs:attribute name="PasswordSecretEncrypted" type="xs:boolean" use="optional" default="false"/>
                                            <xs:attribute name="X509StoreLocation" use="optional" default="LocalMachine">
                                                <xs:simpleType>
                                                    <xs:restriction base="xs:string">
                                                        <xs:enumeration value="LocalMachine"/>
                                                        <xs:enumeration value="CurrentUser"/>
                                                    </xs:restriction>
                                                </xs:simpleType>
                                            </xs:attribute>
                                                                                        <xs:attribute name="X509StoreName" default="My">
                                                <xs:simpleType>
                                                    <xs:restriction base="xs:string"/>
                                                </xs:simpleType>
                                            </xs:attribute>
                                            <xs:attribute name="X509Thumbprint" type="xs:string"/>
                                        </xs:complexType>
                                    </xs:element>
                                    <xs:element name="MemberOf" minOccurs="0">
                                        <xs:annotation>
                                            <xs:documentation>Users can be added to any existing membership group, so it can inherit all the properties and security settings of that membership group. The membership group can be used to secure external resources that need to be accessed by different services or the same service (on a different machine).</xs:documentation>
                                                                                </xs:annotation>
                                                                                <xs:complexType>
                                                                                        <xs:choice maxOccurs="unbounded">
                                                                                                <xs:element name="SystemGroup" minOccurs="0" maxOccurs="unbounded">
                                                                                                        <xs:annotation>
                                                                                                                <xs:documentation>The system group to add the user to.  The system group must be defined in the Groups section.</xs:documentation>
                                                                                                        </xs:annotation>
                                                                                                        <xs:complexType>
                                                                                                                <xs:attribute name="Name" type="xs:string" use="required">
                                                                                                                        <xs:annotation>
                                                                                                                                <xs:documentation>The name of the system group.</xs:documentation>
                                                                                                                        </xs:annotation>
                                                                                                                </xs:attribute>
                                                                                                        </xs:complexType>
                                                                                                </xs:element>
                                                                                                <xs:element name="Group" minOccurs="0" maxOccurs="unbounded">
                                                                                                        <xs:annotation>
                                                                                                                <xs:documentation>The group to add the user to.  The group must be defined in the Groups section.</xs:documentation>
                                                                                                        </xs:annotation>
                                                                                                        <xs:complexType>
                                                                                                                <xs:attribute name="NameRef" type="xs:string" use="required">
                                                                                                                        <xs:annotation>
                                                                                                                                <xs:documentation>The name of the group.</xs:documentation>
                                                                                                                        </xs:annotation>
                                                                                                                </xs:attribute>
                                                                                                        </xs:complexType>
                                                                                                </xs:element>
                                                                                        </xs:choice>
                                                                                </xs:complexType>
                                                                        </xs:element>
                                                                </xs:sequence>
                                                                <xs:attribute name="Name" type="xs:string" use="required">
                                                                        <xs:annotation>
                                                                                <xs:documentation>Name of the user account.</xs:documentation>
                                                                        </xs:annotation>
                                                                </xs:attribute>
                                                                <xs:attribute name="AccountType" use="optional" default="LocalUser">
                                                                        <xs:annotation>
                                                                                <xs:documentation>Specifies the type of account: LocalUser, DomainUser, NetworkService, LocalService, ManagedServiceAccount, or LocalSystem.  The default is LocalUser. Local user accounts are created on the machines where the application is deployed. By default, these accounts do not have the same names as those specified here. Instead, they are dynamically generated and have random passwords. Supported local system account types are LocalUser, NetworkService, LocalService and LocalSystem. Domain accounts are supported on Windows Server deployments where Microsoft Entra ID is available.</xs:documentation>
                                                                        </xs:annotation>
                                                                        <xs:simpleType>
                                                                                <xs:restriction base="xs:string">
                                                                                        <xs:enumeration value="LocalUser"/>
                                                                                        <xs:enumeration value="DomainUser"/>
                                                                                        <xs:enumeration value="NetworkService"/>
                                                                                        <xs:enumeration value="LocalService"/>
                                                                                        <xs:enumeration value="ManagedServiceAccount"/>
                                                                                        <xs:enumeration value="LocalSystem"/>
                                                                                </xs:restriction>
                                                                        </xs:simpleType>
                                                                </xs:attribute>
                                                                <xs:attribute name="LoadUserProfile" type="xs:boolean" use="optional" default="false"/>
                                                                <xs:attribute name="PerformInteractiveLogon" type="xs:boolean" use="optional" default="false"/>
                                                                <xs:attributeGroup ref="AccountCredentialsGroup"/>
                                                                <xs:attribute name="PasswordEncrypted" type="xs:boolean" use="optional">
                                                                        <xs:annotation>
                                                                                <xs:documentation>True if the password is encrypted; false if in plain text.</xs:documentation>
                                                                        </xs:annotation>
                                                                </xs:attribute>
                                                        </xs:complexType>
                                                </xs:element>

属性详细信息

名称

用户帐户的名称。

Attribute
name 名称
type xs:string
use 必需

AccountType

指定帐户的类型:LocalUser、DomainUser、NetworkService、LocalService、ManagedServiceAccount 或 LocalSystem。 默认值为 LocalUser。 会在部署应用程序的计算机上创建本地用户帐户。 默认情况下,这些帐户的名称与此处指定的名称不同。 相反,它们是动态生成的并带有随机密码。 受支持的本地系统帐户类型为 LocalUser、NetworkService、LocalService 和 LocalSystem。 在 Microsoft Entra ID 是可用的 Windows Server 部署上支持域帐户。

属性
name AccountType
use 可选
默认值 LocalUser

LoadUserProfile

Attribute
name LoadUserProfile
type xs:boolean
use 可选
默认值 false

PerformInteractiveLogon

Attribute
name PerformInteractiveLogon
type xs:boolean
use 可选
默认值 false

PasswordEncrypted

如果密码已加密,则为 true;如果为纯文本,则为 false。

Attribute
name PasswordEncrypted
type xs:boolean
use 可选

Content 元素详细信息

NTLMAuthenticationPolicy

Attribute
name NTLMAuthenticationPolicy
minOccurs 0

MemberOf

用户可以添加到任何现有的成员身份组中,因此它可以继承所有属性和该成员身份组的安全设置。 成员身份组可用来保护需要按不同的服务或相同的服务(在不同计算机上)访问的外部资源。

Attribute
name MemberOf
minOccurs 0

UserRoleClientCertificate 元素

用于保护客户端服务器通信的默认用户角色客户端证书。

Attribute Value
type FabricCertificateType
内容 0 个元素,0 个属性
defined CertificatesType complexType 本地
name UserRoleClientCertificate
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="UserRoleClientCertificate" type="FabricCertificateType" minOccurs="0">
        <xs:annotation>
          <xs:documentation>The default user role client certificate used to secure client server communication.</xs:documentation>
        </xs:annotation>
      </xs:element>

Users 元素

将一组用户声明为可在策略中引用的安全主体。

Attribute Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined SecurityPrincipalsType complexType 本地
name 用户
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Users" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Declares a set of users as security principals, which can be referenced in policies.</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="User" maxOccurs="unbounded">
                            <xs:annotation>
                                <xs:documentation>Declares a user as a security principal, which can be referenced in policies.</xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                                <xs:sequence>
                                    <xs:element name="NTLMAuthenticationPolicy" minOccurs="0">
                                        <xs:complexType>
                                            <xs:attribute name="IsEnabled" type="xs:boolean" use="optional" default="true"/>
                                            <xs:attribute name="PasswordSecret" type="xs:string" use="required"/>
                                            <xs:attribute name="PasswordSecretEncrypted" type="xs:boolean" use="optional" default="false"/>
                                            <xs:attribute name="X509StoreLocation" use="optional" default="LocalMachine">
                                                <xs:simpleType>
                                                    <xs:restriction base="xs:string">
                                                        <xs:enumeration value="LocalMachine"/>
                                                        <xs:enumeration value="CurrentUser"/>
                                                    </xs:restriction>
                                                </xs:simpleType>
                                            </xs:attribute>
                                                                                        <xs:attribute name="X509StoreName" default="My">
                                                <xs:simpleType>
                                                    <xs:restriction base="xs:string"/>
                                                </xs:simpleType>
                                            </xs:attribute>
                                            <xs:attribute name="X509Thumbprint" type="xs:string"/>
                                        </xs:complexType>
                                    </xs:element>
                                    <xs:element name="MemberOf" minOccurs="0">
                                        <xs:annotation>
                                            <xs:documentation>Users can be added to any existing membership group, so it can inherit all the properties and security settings of that membership group. The membership group can be used to secure external resources that need to be accessed by different services or the same service (on a different machine).</xs:documentation>
                                                                                </xs:annotation>
                                                                                <xs:complexType>
                                                                                        <xs:choice maxOccurs="unbounded">
                                                                                                <xs:element name="SystemGroup" minOccurs="0" maxOccurs="unbounded">
                                                                                                        <xs:annotation>
                                                                                                                <xs:documentation>The system group to add the user to.  The system group must be defined in the Groups section.</xs:documentation>
                                                                                                        </xs:annotation>
                                                                                                        <xs:complexType>
                                                                                                                <xs:attribute name="Name" type="xs:string" use="required">
                                                                                                                        <xs:annotation>
                                                                                                                                <xs:documentation>The name of the system group.</xs:documentation>
                                                                                                                        </xs:annotation>
                                                                                                                </xs:attribute>
                                                                                                        </xs:complexType>
                                                                                                </xs:element>
                                                                                                <xs:element name="Group" minOccurs="0" maxOccurs="unbounded">
                                                                                                        <xs:annotation>
                                                                                                                <xs:documentation>The group to add the user to.  The group must be defined in the Groups section.</xs:documentation>
                                                                                                        </xs:annotation>
                                                                                                        <xs:complexType>
                                                                                                                <xs:attribute name="NameRef" type="xs:string" use="required">
                                                                                                                        <xs:annotation>
                                                                                                                                <xs:documentation>The name of the group.</xs:documentation>
                                                                                                                        </xs:annotation>
                                                                                                                </xs:attribute>
                                                                                                        </xs:complexType>
                                                                                                </xs:element>
                                                                                        </xs:choice>
                                                                                </xs:complexType>
                                                                        </xs:element>
                                                                </xs:sequence>
                                                                <xs:attribute name="Name" type="xs:string" use="required">
                                                                        <xs:annotation>
                                                                                <xs:documentation>Name of the user account.</xs:documentation>
                                                                        </xs:annotation>
                                                                </xs:attribute>
                                                                <xs:attribute name="AccountType" use="optional" default="LocalUser">
                                                                        <xs:annotation>
                                                                                <xs:documentation>Specifies the type of account: LocalUser, DomainUser, NetworkService, LocalService, ManagedServiceAccount, or LocalSystem.  The default is LocalUser. Local user accounts are created on the machines where the application is deployed. By default, these accounts do not have the same names as those specified here. Instead, they are dynamically generated and have random passwords. Supported local system account types are LocalUser, NetworkService, LocalService and LocalSystem. Domain accounts are supported on Windows Server deployments where Microsoft Entra ID is available.</xs:documentation>
                                                                        </xs:annotation>
                                                                        <xs:simpleType>
                                                                                <xs:restriction base="xs:string">
                                                                                        <xs:enumeration value="LocalUser"/>
                                                                                        <xs:enumeration value="DomainUser"/>
                                                                                        <xs:enumeration value="NetworkService"/>
                                                                                        <xs:enumeration value="LocalService"/>
                                                                                        <xs:enumeration value="ManagedServiceAccount"/>
                                                                                        <xs:enumeration value="LocalSystem"/>
                                                                                </xs:restriction>
                                                                        </xs:simpleType>
                                                                </xs:attribute>
                                                                <xs:attribute name="LoadUserProfile" type="xs:boolean" use="optional" default="false"/>
                                                                <xs:attribute name="PerformInteractiveLogon" type="xs:boolean" use="optional" default="false"/>
                                                                <xs:attributeGroup ref="AccountCredentialsGroup"/>
                                                                <xs:attribute name="PasswordEncrypted" type="xs:boolean" use="optional">
                                                                        <xs:annotation>
                                                                                <xs:documentation>True if the password is encrypted; false if in plain text.</xs:documentation>
                                                                        </xs:annotation>
                                                                </xs:attribute>
                                                        </xs:complexType>
                                                </xs:element>
                                        </xs:sequence>
                                </xs:complexType>
                        </xs:element>

Content 元素详细信息

User

将用户声明为可在策略中引用的安全主体。

Attribute
name 用户
maxOccurs unbounded

Volume 元素

指定要绑定到容器的卷。

Attribute Value
type ContainerVolumeType
内容 0 个元素,0 个属性
defined ContainerHostPoliciesType complexType 本地
name Volume
minOccurs 0
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Volume" type="ContainerVolumeType" minOccurs="0" maxOccurs="unbounded">
            <xs:annotation>
                <xs:documentation>Specifies the volume to be bound to container.</xs:documentation>
            </xs:annotation>
        </xs:element>

Vote 元素

Attribute Value
type PaaSVoteType
内容 0 个元素,0 个属性
defined 在 Votes 元素本地
name 投票
maxOccurs unbounded

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Vote" type="PaaSVoteType" maxOccurs="unbounded"/>

Votes 元素

Attribute Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined 在 PaaS 元素本地
name 投票

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="Votes">
                                                                                <xs:complexType>
                                                                                        <xs:sequence>
                                                                                                <xs:element name="Vote" type="PaaSVoteType" maxOccurs="unbounded"/>
                                                                                        </xs:sequence>
                                                                                </xs:complexType>
                                                                        </xs:element>

Content 元素详细信息

投票

Attribute
name 投票
type PaaSVoteType
maxOccurs unbounded

WindowsAzure 元素

Attribute Value
type 匿名的 complexType
内容 1 个元素,0 个属性
defined 在 Infrastructure 元素本地
name WindowsAzure

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="WindowsAzure">
                                                        <xs:complexType>
                                                                <xs:sequence>
                                                                        <xs:element name="Roles">
                                                                                <xs:complexType>
                                                                                        <xs:sequence>
                                                                                                <xs:element name="Role" type="AzureRoleType" maxOccurs="unbounded"/>
                                                                                        </xs:sequence>
                                                                                </xs:complexType>
                                                                        </xs:element>
                                                                </xs:sequence>
                                                        </xs:complexType>
                                                </xs:element>

Content 元素详细信息

角色

属性
name 角色

WindowsAzureStaticTopology 元素

Attribute Value
type 匿名的 complexType
内容 0 个元素,0 个属性
defined 在 Infrastructure 元素本地
name WindowsAzureStaticTopology

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="WindowsAzureStaticTopology">
                                                        <xs:complexType>
                                                                <xs:complexContent>
                                                                        <xs:extension base="WindowsInfrastructureType"/>
                                                                </xs:complexContent>
                                                        </xs:complexType>
                                                </xs:element>

WindowsServer 元素

Attribute Value
type 匿名的 complexType
内容 0 个元素,0 个属性
defined 在 Infrastructure 元素本地
name WindowsServer

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="WindowsServer">
                                                        <xs:complexType>
                                                                <xs:complexContent>
                                                                        <xs:extension base="WindowsInfrastructureType">
                                                                                <xs:attribute name="IsScaleMin" type="xs:boolean" default="false"/>
                                                                        </xs:extension>
                                                                </xs:complexContent>
                                                        </xs:complexType>
                                                </xs:element>

WorkingFolder 元素

Attribute Value
type 匿名的 complexType
内容 0 个元素,0 个属性
defined ExeHostEntryPointType complexType 本地
name WorkingFolder
默认值 工作
minOccurs 0

XML 源

<xs:element xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/2011/01/fabric" name="WorkingFolder" default="Work" minOccurs="0">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="Work"/>
            <xs:enumeration value="CodePackage"/>
            <xs:enumeration value="CodeBase"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:element>