getComputeMachine

Use this data source to access information about an existing Hybrid Compute.

Disclaimers

Note: The Data Source azure.hybrid.getComputeMachine is deprecated will be removed in v4.0 of the Azure Provider - a replacement can be found in the form of the azure.arcmachine.get Data Source.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.hybrid.HybridFunctions;
import com.pulumi.azure.hybrid.inputs.GetComputeMachineArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = HybridFunctions.getComputeMachine(GetComputeMachineArgs.builder()
.name("existing-hcmachine")
.resourceGroupName("existing-rg")
.build());
ctx.export("id", example.applyValue(getComputeMachineResult -> getComputeMachineResult.id()));
}
}

Return

A collection of values returned by getComputeMachine.

Parameters

argument

A collection of arguments for invoking getComputeMachine.


suspend fun getComputeMachine(name: String, resourceGroupName: String): GetComputeMachineResult

Return

A collection of values returned by getComputeMachine.

See also

Parameters

name

The name of this hybrid compute machine.

resourceGroupName

The name of the Resource Group where the Hybrid Compute exists.


Return

A collection of values returned by getComputeMachine.

See also

Parameters

argument

Builder for com.pulumi.azure.hybrid.kotlin.inputs.GetComputeMachinePlainArgs.