getAppService

Use this data source to access information about an existing App Service. !>Note: The azure.appservice.AppService data source is deprecated in version 3.0 of the AzureRM provider and will be removed in version 4.0. Please use the azure.appservice.LinuxWebApp data sources instead.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.appservice.AppserviceFunctions;
import com.pulumi.azure.appservice.inputs.GetAppServiceArgs;
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 = AppserviceFunctions.getAppService(GetAppServiceArgs.builder()
.name("search-app-service")
.resourceGroupName("search-service")
.build());
ctx.export("appServiceId", example.applyValue(getAppServiceResult -> getAppServiceResult.id()));
}
}

Return

A collection of values returned by getAppService.

Parameters

argument

A collection of arguments for invoking getAppService.


suspend fun getAppService(name: String, resourceGroupName: String): GetAppServiceResult

Return

A collection of values returned by getAppService.

See also

Parameters

name

The name of the App Service.

resourceGroupName

The Name of the Resource Group where the App Service exists.


Return

A collection of values returned by getAppService.

See also

Parameters

argument

Builder for com.pulumi.azure.appservice.kotlin.inputs.GetAppServicePlainArgs.