Show / Hide Table of Contents

Class GetServer

Inheritance
System.Object
GetServer
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.Sql
Assembly: Pulumi.Azure.dll
Syntax
public static class GetServer

Methods

View Source

InvokeAsync(GetServerArgs, InvokeOptions)

Use this data source to access information about an existing SQL Azure Database Server.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
public MyStack()
{
    var example = Output.Create(Azure.Sql.GetServer.InvokeAsync(new Azure.Sql.GetServerArgs
    {
        Name = "examplesqlservername",
        ResourceGroupName = "example-resources",
    }));
    this.SqlServerId = example.Apply(example => example.Id);
}

[Output("sqlServerId")]
public Output<string> SqlServerId { get; set; }
}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetServerResult> InvokeAsync(GetServerArgs args, InvokeOptions options = null)
Parameters
Type Name Description
GetServerArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetServerResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.