Show / Hide Table of Contents

Class GetAppService

Inheritance
System.Object
GetAppService
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.AppService
Assembly: Pulumi.Azure.dll
Syntax
public static class GetAppService

Methods

View Source

InvokeAsync(GetAppServiceArgs, InvokeOptions)

Use this data source to access information about an existing App Service.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
public MyStack()
{
    var example = Output.Create(Azure.AppService.GetAppService.InvokeAsync(new Azure.AppService.GetAppServiceArgs
    {
        Name = "search-app-service",
        ResourceGroupName = "search-service",
    }));
    this.AppServiceId = example.Apply(example => example.Id);
}

[Output("appServiceId")]
public Output<string> AppServiceId { get; set; }
}

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

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