Class AppService
Manages an App Service (within an App Service Plan).
Note: When using Slots - the
app_settings,connection_stringandsite_configblocks on theazure.appservice.AppServiceresource will be overwritten when promoting a Slot using theazure.appservice.ActiveSlotresource.
Inherited Members
Namespace: Pulumi.Azure.AppService
Assembly: Pulumi.Azure.dll
Syntax
public class AppService : CustomResource
Constructors
View SourceAppService(String, AppServiceArgs, CustomResourceOptions)
Create a AppService resource with the given unique name, arguments, and options.
Declaration
public AppService(string name, AppServiceArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| AppServiceArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAppServicePlanId
The ID of the App Service Plan within which to create this App Service.
Declaration
public Output<string> AppServicePlanId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
AppSettings
A key-value pair of App Settings.
Declaration
public Output<ImmutableDictionary<string, string>> AppSettings { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>> |
AuthSettings
A auth_settings block as defined below.
Declaration
public Output<AppServiceAuthSettings> AuthSettings { get; }
Property Value
| Type | Description |
|---|---|
| Output<AppServiceAuthSettings> |
Backup
A backup block as defined below.
Declaration
public Output<AppServiceBackup> Backup { get; }
Property Value
| Type | Description |
|---|---|
| Output<AppServiceBackup> |
ClientAffinityEnabled
Should the App Service send session affinity cookies, which route client requests in the same session to the same instance?
Declaration
public Output<bool> ClientAffinityEnabled { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
ClientCertEnabled
Does the App Service require client certificates for incoming requests? Defaults to false.
Declaration
public Output<bool?> ClientCertEnabled { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
ConnectionStrings
One or more connection_string blocks as defined below.
Declaration
public Output<ImmutableArray<AppServiceConnectionString>> ConnectionStrings { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<AppServiceConnectionString>> |
DefaultSiteHostname
The Default Hostname associated with the App Service - such as mysite.azurewebsites.net
Declaration
public Output<string> DefaultSiteHostname { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Enabled
Is the App Service Enabled?
Declaration
public Output<bool?> Enabled { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
HttpsOnly
Can the App Service only be accessed via HTTPS? Defaults to false.
Declaration
public Output<bool?> HttpsOnly { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Identity
A Managed Service Identity block as defined below.
Declaration
public Output<AppServiceIdentity> Identity { get; }
Property Value
| Type | Description |
|---|---|
| Output<AppServiceIdentity> |
Location
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
Declaration
public Output<string> Location { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Logs
A logs block as defined below.
Declaration
public Output<AppServiceLogs> Logs { get; }
Property Value
| Type | Description |
|---|---|
| Output<AppServiceLogs> |
Name
Specifies the name of the App Service. Changing this forces a new resource to be created.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
OutboundIpAddresses
A comma separated list of outbound IP addresses - such as 52.23.25.3,52.143.43.12
Declaration
public Output<string> OutboundIpAddresses { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PossibleOutboundIpAddresses
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 of outbound_ip_addresses.
Declaration
public Output<string> PossibleOutboundIpAddresses { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ResourceGroupName
The name of the resource group in which to create the App Service.
Declaration
public Output<string> ResourceGroupName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SiteConfig
A site_config block as defined below.
Declaration
public Output<AppServiceSiteConfig> SiteConfig { get; }
Property Value
| Type | Description |
|---|---|
| Output<AppServiceSiteConfig> |
SiteCredentials
A site_credential block as defined below, which contains the site-level credentials used to publish to this App Service.
Declaration
public Output<ImmutableArray<AppServiceSiteCredential>> SiteCredentials { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<AppServiceSiteCredential>> |
SourceControls
A source_control block as defined below, which contains the Source Control information when scm_type is set to LocalGit.
Declaration
public Output<ImmutableArray<AppServiceSourceControl>> SourceControls { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<AppServiceSourceControl>> |
StorageAccounts
One or more storage_account blocks as defined below.
Declaration
public Output<ImmutableArray<AppServiceStorageAccount>> StorageAccounts { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<AppServiceStorageAccount>> |
Tags
A mapping of tags to assign to the resource.
Declaration
public Output<ImmutableDictionary<string, string>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>> |
Methods
View SourceGet(String, Input<String>, AppServiceState, CustomResourceOptions)
Get an existing AppService resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static AppService Get(string name, Input<string> id, AppServiceState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| AppServiceState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| AppService |