get Private Cloud
Use this data source to access information about an existing Azure VMware Solution Private Cloud.
Example Usage
Note: Normal
pulumi up
could ignore this note. Please disable correlation request id for continuous operations in one build (like acctest). The continuous operations likeupdate
ordelete
could not be triggered when it shares the samecorrelation-id
with its previous operation.
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.avs.getPrivateCloud({
name: "existing-vmware-private-cloud",
resourceGroupName: "existing-resgroup",
});
export const id = example.then(example => example.id);
import pulumi
import pulumi_azure as azure
example = azure.avs.get_private_cloud(name="existing-vmware-private-cloud",
resource_group_name="existing-resgroup")
pulumi.export("id", example.id)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.Avs.GetPrivateCloud.Invoke(new()
{
Name = "existing-vmware-private-cloud",
ResourceGroupName = "existing-resgroup",
});
return new Dictionary<string, object?>
{
["id"] = example.Apply(getPrivateCloudResult => getPrivateCloudResult.Id),
};
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/avs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := avs.LookupPrivateCloud(ctx, &avs.LookupPrivateCloudArgs{
Name: "existing-vmware-private-cloud",
ResourceGroupName: "existing-resgroup",
}, nil)
if err != nil {
return err
}
ctx.Export("id", example.Id)
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.avs.AvsFunctions;
import com.pulumi.azure.avs.inputs.GetPrivateCloudArgs;
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 = AvsFunctions.getPrivateCloud(GetPrivateCloudArgs.builder()
.name("existing-vmware-private-cloud")
.resourceGroupName("existing-resgroup")
.build());
ctx.export("id", example.id());
}
}
variables:
example:
fn::invoke:
function: azure:avs:getPrivateCloud
arguments:
name: existing-vmware-private-cloud
resourceGroupName: existing-resgroup
outputs:
id: ${example.id}
API Providers
This data source uses the following Azure API Providers:
Microsoft.AVS
: 2022-05-01
Return
A collection of values returned by getPrivateCloud.
Parameters
A collection of arguments for invoking getPrivateCloud.
Return
A collection of values returned by getPrivateCloud.
Parameters
The name of this Azure VMware Solution Private Cloud.
The name of the Resource Group where the Azure VMware Solution Private Cloud exists.
See also
Return
A collection of values returned by getPrivateCloud.
Parameters
Builder for com.pulumi.azure.avs.kotlin.inputs.GetPrivateCloudPlainArgs.