Invoke-ServiceFabricInfrastructureQuery

Invokes a read-only query on an infrastructure service.

Syntax

Invoke-ServiceFabricInfrastructureQuery
      [-Command] <String>
      [[-ServiceName] <Uri>]
      [-TimeoutSec <Int32>]
      [<CommonParameters>]

Description

The Invoke-ServiceFabricInfrastructureQuery cmdlet invokes a read-only query on an infrastructure service. The infrastructure service accepts infrastructure-specific commands to allow you to interact directly with the underlying infrastructure by means of the Service Fabric API. To run this cmdlet, at least one instance of the infrastructure service must be enabled in the cluster configuration. Currently, this cmdlet is supported only on specially-configured Azure Cloud Services.

This cmdlet supports the Service Fabric platform. Do not run this cmdlet directly.

Before you perform any operation on a Service Fabric cluster, establish a connection to the cluster by using the Connect-ServiceFabricCluster cmdlet.

Parameters

-Command

Specifies the infrastructure-specific command string to send to the infrastructure service. The format of supported commands depends on the infrastructure on which the cluster runs.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ServiceName

Specifies the Uniform Resource Indentifier (URI) of a Service Fabric infrastructure service. This cmdlet sends the command to the service that this parameter specifies. The default value is fabric:/System/InfrastructureService.

Type:Uri
Position:1
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-TimeoutSec

Specifies the time-out period, in seconds, for the operation.

Type:Int32
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

System.String

System.Uri

Outputs

System.Object