1. Packages
  2. Azure Native
  3. API Docs
  4. devtestlab
  5. getVirtualMachineRdpFileContents
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

azure-native.devtestlab.getVirtualMachineRdpFileContents

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

Gets a string that represents the contents of the RDP file for the virtual machine

Uses Azure REST API version 2018-09-15.

Using getVirtualMachineRdpFileContents

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getVirtualMachineRdpFileContents(args: GetVirtualMachineRdpFileContentsArgs, opts?: InvokeOptions): Promise<GetVirtualMachineRdpFileContentsResult>
function getVirtualMachineRdpFileContentsOutput(args: GetVirtualMachineRdpFileContentsOutputArgs, opts?: InvokeOptions): Output<GetVirtualMachineRdpFileContentsResult>
Copy
def get_virtual_machine_rdp_file_contents(lab_name: Optional[str] = None,
                                          name: Optional[str] = None,
                                          resource_group_name: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetVirtualMachineRdpFileContentsResult
def get_virtual_machine_rdp_file_contents_output(lab_name: Optional[pulumi.Input[str]] = None,
                                          name: Optional[pulumi.Input[str]] = None,
                                          resource_group_name: Optional[pulumi.Input[str]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetVirtualMachineRdpFileContentsResult]
Copy
func GetVirtualMachineRdpFileContents(ctx *Context, args *GetVirtualMachineRdpFileContentsArgs, opts ...InvokeOption) (*GetVirtualMachineRdpFileContentsResult, error)
func GetVirtualMachineRdpFileContentsOutput(ctx *Context, args *GetVirtualMachineRdpFileContentsOutputArgs, opts ...InvokeOption) GetVirtualMachineRdpFileContentsResultOutput
Copy

> Note: This function is named GetVirtualMachineRdpFileContents in the Go SDK.

public static class GetVirtualMachineRdpFileContents 
{
    public static Task<GetVirtualMachineRdpFileContentsResult> InvokeAsync(GetVirtualMachineRdpFileContentsArgs args, InvokeOptions? opts = null)
    public static Output<GetVirtualMachineRdpFileContentsResult> Invoke(GetVirtualMachineRdpFileContentsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetVirtualMachineRdpFileContentsResult> getVirtualMachineRdpFileContents(GetVirtualMachineRdpFileContentsArgs args, InvokeOptions options)
public static Output<GetVirtualMachineRdpFileContentsResult> getVirtualMachineRdpFileContents(GetVirtualMachineRdpFileContentsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:devtestlab:getVirtualMachineRdpFileContents
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

LabName
This property is required.
Changes to this property will trigger replacement.
string
The name of the lab.
Name
This property is required.
Changes to this property will trigger replacement.
string
The name of the virtual machine.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
LabName
This property is required.
Changes to this property will trigger replacement.
string
The name of the lab.
Name
This property is required.
Changes to this property will trigger replacement.
string
The name of the virtual machine.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
labName
This property is required.
Changes to this property will trigger replacement.
String
The name of the lab.
name
This property is required.
Changes to this property will trigger replacement.
String
The name of the virtual machine.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.
labName
This property is required.
Changes to this property will trigger replacement.
string
The name of the lab.
name
This property is required.
Changes to this property will trigger replacement.
string
The name of the virtual machine.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
lab_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the lab.
name
This property is required.
Changes to this property will trigger replacement.
str
The name of the virtual machine.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group.
labName
This property is required.
Changes to this property will trigger replacement.
String
The name of the lab.
name
This property is required.
Changes to this property will trigger replacement.
String
The name of the virtual machine.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.

getVirtualMachineRdpFileContents Result

The following output properties are available:

Contents string
The contents of the .rdp file
Contents string
The contents of the .rdp file
contents String
The contents of the .rdp file
contents string
The contents of the .rdp file
contents str
The contents of the .rdp file
contents String
The contents of the .rdp file

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi