Skip to main content

code_package_container_logs

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

Overview

Namecode_package_container_logs
TypeResource
Idazure.service_fabric_mesh.code_package_container_logs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
contentstringContainer logs.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, applicationResourceName, serviceResourceName, replicaName, codePackageNameapi-version, tailGets the logs for the container of the specified code package of the service replica.

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.
codePackageNamestringThe name of code package of the service.
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.
tailintegerNumber of lines to show from the end of the logs. Default is 100.

SELECT examples

Gets the logs for the container of the specified code package of the service replica.

SELECT
content
FROM azure.service_fabric_mesh.code_package_container_logs
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND applicationResourceName = '{{ applicationResourceName }}' -- required
AND serviceResourceName = '{{ serviceResourceName }}' -- required
AND replicaName = '{{ replicaName }}' -- required
AND codePackageName = '{{ codePackageName }}' -- required
AND api-version = '{{ api-version }}'
AND tail = '{{ tail }}'
;