Invoke-ServiceFabricInfrastructureQuery
Invokes a read-only query on an infrastructure service.
Syntax
Default (Default)
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.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 0 |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | 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.
Parameter properties
Type: | Uri |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 1 |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-TimeoutSec
Specifies the time-out period, in seconds, for the operation.
Parameter properties
Type: | Int32 |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.