GetAppService
Use this data source to access information about an existing App Service.
Example Usage
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; }
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/appservice"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := appservice.LookupAppService(ctx, &appservice.LookupAppServiceArgs{
Name: "search-app-service",
ResourceGroupName: "search-service",
}, nil)
if err != nil {
return err
}
ctx.Export("appServiceId", example.Id)
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.appservice.get_app_service(name="search-app-service",
resource_group_name="search-service")
pulumi.export("appServiceId", example.id)import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.appservice.getAppService({
name: "search-app-service",
resourceGroupName: "search-service",
});
export const appServiceId = example.then(example => example.id);Using GetAppService
function getAppService(args: GetAppServiceArgs, opts?: InvokeOptions): Promise<GetAppServiceResult>function get_app_service(name=None, resource_group_name=None, opts=None)func LookupAppService(ctx *Context, args *LookupAppServiceArgs, opts ...InvokeOption) (*LookupAppServiceResult, error)Note: This function is named
LookupAppServicein the Go SDK.
public static class GetAppService {
public static Task<GetAppServiceResult> InvokeAsync(GetAppServiceArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Name string
The name of the App Service.
- Resource
Group stringName The Name of the Resource Group where the App Service exists.
- Name string
The name of the App Service.
- Resource
Group stringName The Name of the Resource Group where the App Service exists.
- name string
The name of the App Service.
- resource
Group stringName The Name of the Resource Group where the App Service exists.
- name str
The name of the App Service.
- resource_
group_ strname The Name of the Resource Group where the App Service exists.
GetAppService Result
The following output properties are available:
- App
Service stringPlan Id The ID of the App Service Plan within which the App Service exists.
- App
Settings Dictionary<string, string> A key-value pair of App Settings for the App Service.
- Client
Affinity boolEnabled Does the App Service send session affinity cookies, which route client requests in the same session to the same instance?
- Client
Cert boolEnabled Does the App Service require client certificates for incoming requests?
- Connection
Strings List<GetApp Service Connection String> An
connection_stringblock as defined below.- Default
Site stringHostname The Default Hostname associated with the App Service - such as
mysite.azurewebsites.net- Enabled bool
Is the App Service Enabled?
- Https
Only bool Can the App Service only be accessed via HTTPS?
- Id string
The provider-assigned unique ID for this managed resource.
- Location string
The Azure location where the App Service exists.
- Name string
The name for this IP Restriction.
- Outbound
Ip stringAddresses A comma separated list of outbound IP addresses - such as
52.23.25.3,52.143.43.12- Possible
Outbound stringIp Addresses A comma separated list of outbound IP addresses - such as
52.23.25.3,52.143.43.12,52.143.43.17- not all of which are necessarily in use. Superset ofoutbound_ip_addresses.- Resource
Group stringName - Site
Configs List<GetApp Service Site Config> A
site_configblock as defined below.- Site
Credentials List<GetApp Service Site Credential> - Source
Controls List<GetApp Service Source Control> - Dictionary<string, string>
A mapping of tags to assign to the resource.
- App
Service stringPlan Id The ID of the App Service Plan within which the App Service exists.
- App
Settings map[string]string A key-value pair of App Settings for the App Service.
- Client
Affinity boolEnabled Does the App Service send session affinity cookies, which route client requests in the same session to the same instance?
- Client
Cert boolEnabled Does the App Service require client certificates for incoming requests?
- Connection
Strings []GetApp Service Connection String An
connection_stringblock as defined below.- Default
Site stringHostname The Default Hostname associated with the App Service - such as
mysite.azurewebsites.net- Enabled bool
Is the App Service Enabled?
- Https
Only bool Can the App Service only be accessed via HTTPS?
- Id string
The provider-assigned unique ID for this managed resource.
- Location string
The Azure location where the App Service exists.
- Name string
The name for this IP Restriction.
- Outbound
Ip stringAddresses A comma separated list of outbound IP addresses - such as
52.23.25.3,52.143.43.12- Possible
Outbound stringIp Addresses A comma separated list of outbound IP addresses - such as
52.23.25.3,52.143.43.12,52.143.43.17- not all of which are necessarily in use. Superset ofoutbound_ip_addresses.- Resource
Group stringName - Site
Configs []GetApp Service Site Config A
site_configblock as defined below.- Site
Credentials []GetApp Service Site Credential - Source
Controls []GetApp Service Source Control - map[string]string
A mapping of tags to assign to the resource.
- app
Service stringPlan Id The ID of the App Service Plan within which the App Service exists.
- app
Settings {[key: string]: string} A key-value pair of App Settings for the App Service.
- client
Affinity booleanEnabled Does the App Service send session affinity cookies, which route client requests in the same session to the same instance?
- client
Cert booleanEnabled Does the App Service require client certificates for incoming requests?
- connection
Strings GetApp Service Connection String[] An
connection_stringblock as defined below.- default
Site stringHostname The Default Hostname associated with the App Service - such as
mysite.azurewebsites.net- enabled boolean
Is the App Service Enabled?
- https
Only boolean Can the App Service only be accessed via HTTPS?
- id string
The provider-assigned unique ID for this managed resource.
- location string
The Azure location where the App Service exists.
- name string
The name for this IP Restriction.
- outbound
Ip stringAddresses A comma separated list of outbound IP addresses - such as
52.23.25.3,52.143.43.12- possible
Outbound stringIp Addresses A comma separated list of outbound IP addresses - such as
52.23.25.3,52.143.43.12,52.143.43.17- not all of which are necessarily in use. Superset ofoutbound_ip_addresses.- resource
Group stringName - site
Configs GetApp Service Site Config[] A
site_configblock as defined below.- site
Credentials GetApp Service Site Credential[] - source
Controls GetApp Service Source Control[] - {[key: string]: string}
A mapping of tags to assign to the resource.
- app_
service_ strplan_ id The ID of the App Service Plan within which the App Service exists.
- app_
settings Dict[str, str] A key-value pair of App Settings for the App Service.
- client_
affinity_ boolenabled Does the App Service send session affinity cookies, which route client requests in the same session to the same instance?
- client_
cert_ boolenabled Does the App Service require client certificates for incoming requests?
- connection_
strings List[GetApp Service Connection String] An
connection_stringblock as defined below.- default_
site_ strhostname The Default Hostname associated with the App Service - such as
mysite.azurewebsites.net- enabled bool
Is the App Service Enabled?
- https_
only bool Can the App Service only be accessed via HTTPS?
- id str
The provider-assigned unique ID for this managed resource.
- location str
The Azure location where the App Service exists.
- name str
The name for this IP Restriction.
- outbound_
ip_ straddresses A comma separated list of outbound IP addresses - such as
52.23.25.3,52.143.43.12- possible_
outbound_ strip_ addresses A comma separated list of outbound IP addresses - such as
52.23.25.3,52.143.43.12,52.143.43.17- not all of which are necessarily in use. Superset ofoutbound_ip_addresses.- resource_
group_ strname - site_
configs List[GetApp Service Site Config] A
site_configblock as defined below.- site_
credentials List[GetApp Service Site Credential] - source_
controls List[GetApp Service Source Control] - Dict[str, str]
A mapping of tags to assign to the resource.
Supporting Types
GetAppServiceConnectionString
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
GetAppServiceSiteConfig
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Always
On bool Is the app be loaded at all times?
- App
Command stringLine App command line to launch.
- Cors
List<Get
App Service Site Config Cor Args> A
corsblock as defined above.- Default
Documents List<string> The ordering of default documents to load, if an address isn’t specified.
- Dotnet
Framework stringVersion The version of the .net framework’s CLR used in this App Service.
- Ftps
State string State of FTP / FTPS service for this AppService.
- Health
Check stringPath The health check path to be pinged by App Service.
- Http2Enabled bool
Is HTTP2 Enabled on this App Service?
- Ip
Restrictions List<GetApp Service Site Config Ip Restriction Args> One or more
ip_restrictionblocks as defined above.- Java
Container string The Java Container in use.
- Java
Container stringVersion The version of the Java Container in use.
- Java
Version string The version of Java in use.
- Linux
Fx stringVersion Linux App Framework and version for the AppService.
- Local
Mysql boolEnabled Is “MySQL In App” Enabled? This runs a local MySQL instance with your app and shares resources from the App Service plan.
- Managed
Pipeline stringMode The Managed Pipeline Mode used in this App Service.
- Min
Tls stringVersion The minimum supported TLS version for this App Service.
- Php
Version string The version of PHP used in this App Service.
- Python
Version string The version of Python used in this App Service.
- Remote
Debugging boolEnabled Is Remote Debugging Enabled in this App Service?
- Remote
Debugging stringVersion Which version of Visual Studio is the Remote Debugger compatible with?
- Scm
Ip List<GetRestrictions App Service Site Config Scm Ip Restriction Args> One or more
scm_ip_restrictionblocks as defined above.- Scm
Type string The type of Source Control enabled for this App Service.
- Scm
Use boolMain Ip Restriction IP security restrictions for scm to use main.
- Use32Bit
Worker boolProcess Does the App Service run in 32 bit mode, rather than 64 bit mode?
- Websockets
Enabled bool Are WebSockets enabled for this App Service?
- Windows
Fx stringVersion Windows Container Docker Image for the AppService.
- Always
On bool Is the app be loaded at all times?
- App
Command stringLine App command line to launch.
- Cors
[]Get
App Service Site Config Cor A
corsblock as defined above.- Default
Documents []string The ordering of default documents to load, if an address isn’t specified.
- Dotnet
Framework stringVersion The version of the .net framework’s CLR used in this App Service.
- Ftps
State string State of FTP / FTPS service for this AppService.
- Health
Check stringPath The health check path to be pinged by App Service.
- Http2Enabled bool
Is HTTP2 Enabled on this App Service?
- Ip
Restrictions []GetApp Service Site Config Ip Restriction One or more
ip_restrictionblocks as defined above.- Java
Container string The Java Container in use.
- Java
Container stringVersion The version of the Java Container in use.
- Java
Version string The version of Java in use.
- Linux
Fx stringVersion Linux App Framework and version for the AppService.
- Local
Mysql boolEnabled Is “MySQL In App” Enabled? This runs a local MySQL instance with your app and shares resources from the App Service plan.
- Managed
Pipeline stringMode The Managed Pipeline Mode used in this App Service.
- Min
Tls stringVersion The minimum supported TLS version for this App Service.
- Php
Version string The version of PHP used in this App Service.
- Python
Version string The version of Python used in this App Service.
- Remote
Debugging boolEnabled Is Remote Debugging Enabled in this App Service?
- Remote
Debugging stringVersion Which version of Visual Studio is the Remote Debugger compatible with?
- Scm
Ip []GetRestrictions App Service Site Config Scm Ip Restriction One or more
scm_ip_restrictionblocks as defined above.- Scm
Type string The type of Source Control enabled for this App Service.
- Scm
Use boolMain Ip Restriction IP security restrictions for scm to use main.
- Use32Bit
Worker boolProcess Does the App Service run in 32 bit mode, rather than 64 bit mode?
- Websockets
Enabled bool Are WebSockets enabled for this App Service?
- Windows
Fx stringVersion Windows Container Docker Image for the AppService.
- always
On boolean Is the app be loaded at all times?
- app
Command stringLine App command line to launch.
- cors
Get
App Service Site Config Cor[] A
corsblock as defined above.- default
Documents string[] The ordering of default documents to load, if an address isn’t specified.
- dotnet
Framework stringVersion The version of the .net framework’s CLR used in this App Service.
- ftps
State string State of FTP / FTPS service for this AppService.
- health
Check stringPath The health check path to be pinged by App Service.
- http2Enabled boolean
Is HTTP2 Enabled on this App Service?
- ip
Restrictions GetApp Service Site Config Ip Restriction[] One or more
ip_restrictionblocks as defined above.- java
Container string The Java Container in use.
- java
Container stringVersion The version of the Java Container in use.
- java
Version string The version of Java in use.
- linux
Fx stringVersion Linux App Framework and version for the AppService.
- local
Mysql booleanEnabled Is “MySQL In App” Enabled? This runs a local MySQL instance with your app and shares resources from the App Service plan.
- managed
Pipeline stringMode The Managed Pipeline Mode used in this App Service.
- min
Tls stringVersion The minimum supported TLS version for this App Service.
- php
Version string The version of PHP used in this App Service.
- python
Version string The version of Python used in this App Service.
- remote
Debugging booleanEnabled Is Remote Debugging Enabled in this App Service?
- remote
Debugging stringVersion Which version of Visual Studio is the Remote Debugger compatible with?
- scm
Ip GetRestrictions App Service Site Config Scm Ip Restriction[] One or more
scm_ip_restrictionblocks as defined above.- scm
Type string The type of Source Control enabled for this App Service.
- scm
Use booleanMain Ip Restriction IP security restrictions for scm to use main.
- use32Bit
Worker booleanProcess Does the App Service run in 32 bit mode, rather than 64 bit mode?
- websockets
Enabled boolean Are WebSockets enabled for this App Service?
- windows
Fx stringVersion Windows Container Docker Image for the AppService.
- always
On bool Is the app be loaded at all times?
- app
Command strLine App command line to launch.
- cors
List[Get
App Service Site Config Cor] A
corsblock as defined above.- default
Documents List[str] The ordering of default documents to load, if an address isn’t specified.
- dotnet
Framework strVersion The version of the .net framework’s CLR used in this App Service.
- ftps
State str State of FTP / FTPS service for this AppService.
- health
Check strPath The health check path to be pinged by App Service.
- http2Enabled bool
Is HTTP2 Enabled on this App Service?
- ip
Restrictions List[GetApp Service Site Config Ip Restriction] One or more
ip_restrictionblocks as defined above.- java
Container str The Java Container in use.
- java
Container strVersion The version of the Java Container in use.
- java
Version str The version of Java in use.
- linux
Fx strVersion Linux App Framework and version for the AppService.
- local
Mysql boolEnabled Is “MySQL In App” Enabled? This runs a local MySQL instance with your app and shares resources from the App Service plan.
- managed
Pipeline strMode The Managed Pipeline Mode used in this App Service.
- min
Tls strVersion The minimum supported TLS version for this App Service.
- php
Version str The version of PHP used in this App Service.
- python
Version str The version of Python used in this App Service.
- remote
Debugging boolEnabled Is Remote Debugging Enabled in this App Service?
- remote
Debugging strVersion Which version of Visual Studio is the Remote Debugger compatible with?
- scm
Ip List[GetRestrictions App Service Site Config Scm Ip Restriction] One or more
scm_ip_restrictionblocks as defined above.- scm
Type str The type of Source Control enabled for this App Service.
- scm
Use boolMain Ip Restriction IP security restrictions for scm to use main.
- use32Bit
Worker boolProcess Does the App Service run in 32 bit mode, rather than 64 bit mode?
- websockets
Enabled bool Are WebSockets enabled for this App Service?
- windows
Fx strVersion Windows Container Docker Image for the AppService.
GetAppServiceSiteConfigCor
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Allowed
Origins List<string> A list of origins which are able to make cross-origin calls.
- Support
Credentials bool Are credentials supported?
- Allowed
Origins []string A list of origins which are able to make cross-origin calls.
- Support
Credentials bool Are credentials supported?
- allowed
Origins string[] A list of origins which are able to make cross-origin calls.
- support
Credentials boolean Are credentials supported?
- allowed
Origins List[str] A list of origins which are able to make cross-origin calls.
- support
Credentials bool Are credentials supported?
GetAppServiceSiteConfigIpRestriction
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Action string
Allow or Deny access for this IP range. Defaults to Allow.
- Ip
Address string The IP Address used for this IP Restriction in CIDR notation.
- Name string
The name of the App Service.
- Priority int
The priority for this IP Restriction.
- Virtual
Network stringSubnet Id The Virtual Network Subnet ID used for this IP Restriction.
- Action string
Allow or Deny access for this IP range. Defaults to Allow.
- Ip
Address string The IP Address used for this IP Restriction in CIDR notation.
- Name string
The name of the App Service.
- Priority int
The priority for this IP Restriction.
- Virtual
Network stringSubnet Id The Virtual Network Subnet ID used for this IP Restriction.
- action string
Allow or Deny access for this IP range. Defaults to Allow.
- ip
Address string The IP Address used for this IP Restriction in CIDR notation.
- name string
The name of the App Service.
- priority number
The priority for this IP Restriction.
- virtual
Network stringSubnet Id The Virtual Network Subnet ID used for this IP Restriction.
- action str
Allow or Deny access for this IP range. Defaults to Allow.
- ip_
address str The IP Address used for this IP Restriction in CIDR notation.
- name str
The name of the App Service.
- priority float
The priority for this IP Restriction.
- virtual
Network strSubnet Id The Virtual Network Subnet ID used for this IP Restriction.
GetAppServiceSiteConfigScmIpRestriction
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Action string
Allow or Deny access for this IP range. Defaults to Allow.
- Ip
Address string The IP Address used for this IP Restriction in CIDR notation.
- Name string
The name of the App Service.
- Priority int
The priority for this IP Restriction.
- Virtual
Network stringSubnet Id The Virtual Network Subnet ID used for this IP Restriction.
- Action string
Allow or Deny access for this IP range. Defaults to Allow.
- Ip
Address string The IP Address used for this IP Restriction in CIDR notation.
- Name string
The name of the App Service.
- Priority int
The priority for this IP Restriction.
- Virtual
Network stringSubnet Id The Virtual Network Subnet ID used for this IP Restriction.
- action string
Allow or Deny access for this IP range. Defaults to Allow.
- ip
Address string The IP Address used for this IP Restriction in CIDR notation.
- name string
The name of the App Service.
- priority number
The priority for this IP Restriction.
- virtual
Network stringSubnet Id The Virtual Network Subnet ID used for this IP Restriction.
- action str
Allow or Deny access for this IP range. Defaults to Allow.
- ip_
address str The IP Address used for this IP Restriction in CIDR notation.
- name str
The name of the App Service.
- priority float
The priority for this IP Restriction.
- virtual
Network strSubnet Id The Virtual Network Subnet ID used for this IP Restriction.
GetAppServiceSiteCredential
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
GetAppServiceSourceControl
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.