Skip to main content

service_replicas

Creates, updates, deletes, gets or lists a service_replicas resource.

Overview

Nameservice_replicas
TypeResource
Idazure.service_fabric_mesh.service_replicas

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
codePackagesarrayDescribes the set of code packages that forms the service. A code package describes the container and the properties for running it. All the code packages are started together on the same host and share the same context (network, process etc.).
diagnosticsobjectReference to sinks in DiagnosticsDescription.
networkRefsarrayThe names of the private networks that this service needs to be part of.
osTypestringThe operation system required by the code in service.
replicaNamestringName of the replica.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, applicationResourceName, serviceResourceName, replicaNameapi-versionGets the information about the service replica with the given name. The information include the description and other properties of the service replica.
listselectsubscriptionId, resourceGroupName, applicationResourceName, serviceResourceNameapi-versionGets the information about all replicas of a given service of an application. The information includes the runtime properties of the replica instance.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
applicationResourceNamestringThe identity of the application.
replicaNamestringService Fabric replica name.
resourceGroupNamestringAzure resource group name
serviceResourceNamestringThe identity of the service.
subscriptionIdstringThe customer subscription identifier
api-versionstringThe version of the API. This parameter is required and its value must be 2018-09-01-preview.

SELECT examples

Gets the information about the service replica with the given name. The information include the description and other properties of the service replica.

SELECT
codePackages,
diagnostics,
networkRefs,
osType,
replicaName
FROM azure.service_fabric_mesh.service_replicas
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND applicationResourceName = '{{ applicationResourceName }}' -- required
AND serviceResourceName = '{{ serviceResourceName }}' -- required
AND replicaName = '{{ replicaName }}' -- required
AND api-version = '{{ api-version }}'
;