import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Function App deployment Slot. * * !> **NOTE:** This resource has been deprecated in version 5.0 of the provider and will be removed in version 6.0. Please use `azure.appservice.LinuxFunctionAppSlot` and `azure.appservice.WindowsFunctionAppSlot` resources instead. * * ## Example Usage * * ### With App Service Plan) * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "azure-functions-test-rg", * location: "West Europe", * }); * const exampleAccount = new azure.storage.Account("example", { * name: "functionsapptestsa", * resourceGroupName: example.name, * location: example.location, * accountTier: "Standard", * accountReplicationType: "LRS", * }); * const examplePlan = new azure.appservice.Plan("example", { * name: "azure-functions-test-service-plan", * location: example.location, * resourceGroupName: example.name, * sku: { * tier: "Standard", * size: "S1", * }, * }); * const exampleFunctionApp = new azure.appservice.FunctionApp("example", { * name: "test-azure-functions", * location: example.location, * resourceGroupName: example.name, * appServicePlanId: examplePlan.id, * storageAccountName: exampleAccount.name, * storageAccountAccessKey: exampleAccount.primaryAccessKey, * }); * const exampleFunctionAppSlot = new azure.appservice.FunctionAppSlot("example", { * name: "test-azure-functions_slot", * location: example.location, * resourceGroupName: example.name, * appServicePlanId: examplePlan.id, * functionAppName: exampleFunctionApp.name, * storageAccountName: exampleAccount.name, * storageAccountAccessKey: exampleAccount.primaryAccessKey, * }); * ``` * * ## Import * * Function Apps Deployment Slots can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:appservice/functionAppSlot:FunctionAppSlot functionapp1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Web/sites/functionapp1/slots/staging * ``` */ export declare class FunctionAppSlot extends pulumi.CustomResource { /** * Get an existing FunctionAppSlot resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: FunctionAppSlotState, opts?: pulumi.CustomResourceOptions): FunctionAppSlot; /** * Returns true if the given object is an instance of FunctionAppSlot. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is FunctionAppSlot; /** * The ID of the App Service Plan within which to create this Function App Slot. Changing this forces a new resource to be created. */ readonly appServicePlanId: pulumi.Output; /** * A key-value pair of App Settings. * * > **Note:** When integrating a `CI/CD pipeline` and expecting to run from a deployed package in `Azure` you must seed your `app settings` as part of the application code for function app to be successfully deployed. `Important Default key pairs`: (`"WEBSITE_RUN_FROM_PACKAGE" = ""`, `"FUNCTIONS_WORKER_RUNTIME" = "node"` (or python, etc), `"WEBSITE_NODE_DEFAULT_VERSION" = "10.14.1"`, `"APPINSIGHTS_INSTRUMENTATIONKEY" = ""`). * * > **NOTE:** The values for `AzureWebJobsStorage` and `FUNCTIONS_EXTENSION_VERSION` will be filled by other input arguments and shouldn't be configured separately. `AzureWebJobsStorage` is filled based on `storageAccountName` and `storageAccountAccessKey`. `FUNCTIONS_EXTENSION_VERSION` is filled based on `version`. * * > **Note:** When using an App Service Plan in the `Free` or `Shared` Tiers `use32BitWorkerProcess` must be set to `true`. */ readonly appSettings: pulumi.Output<{ [key: string]: string; }>; /** * An `authSettings` block as defined below. */ readonly authSettings: pulumi.Output; /** * A `connectionString` block as defined below. */ readonly connectionStrings: pulumi.Output; /** * The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps under the consumption plan. */ readonly dailyMemoryTimeQuota: pulumi.Output; /** * The default hostname associated with the Function App - such as `mysite.azurewebsites.net` */ readonly defaultHostname: pulumi.Output; /** * Should the built-in logging of the Function App be enabled? Defaults to `true`. */ readonly enableBuiltinLogging: pulumi.Output; /** * Is the Function App enabled? Defaults to `true`. */ readonly enabled: pulumi.Output; /** * The name of the Function App within which to create the Function App Slot. Changing this forces a new resource to be created. */ readonly functionAppName: pulumi.Output; /** * Can the Function App only be accessed via HTTPS? Defaults to `false`. */ readonly httpsOnly: pulumi.Output; /** * An `identity` block as defined below. */ readonly identity: pulumi.Output; /** * The Function App kind - such as `functionapp,linux,container` */ readonly kind: pulumi.Output; /** * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. */ readonly location: pulumi.Output; /** * Specifies the name of the Function App. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * A string indicating the Operating System type for this function app. The only possible value is `linux`. Changing this forces a new resource to be created. * * > **NOTE:** This value will be `linux` for Linux Derivatives or an empty string for Windows (default). */ readonly osType: pulumi.Output; /** * A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12` */ readonly outboundIpAddresses: pulumi.Output; /** * 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 `outboundIpAddresses`. */ readonly possibleOutboundIpAddresses: pulumi.Output; /** * The name of the resource group in which to create the Function App Slot. Changing this forces a new resource to be created. */ readonly resourceGroupName: pulumi.Output; /** * A `siteConfig` object as defined below. */ readonly siteConfig: pulumi.Output; /** * A `siteCredential` block as defined below, which contains the site-level credentials used to publish to this Function App Slot. */ readonly siteCredentials: pulumi.Output; /** * The access key which will be used to access the backend storage account for the Function App. */ readonly storageAccountAccessKey: pulumi.Output; /** * The backend storage account name which will be used by the Function App (such as the dashboard, logs). Changing this forces a new resource to be created. */ readonly storageAccountName: pulumi.Output; /** * A mapping of tags to assign to the resource. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * The runtime version associated with the Function App. Defaults to `~1`. */ readonly version: pulumi.Output; /** * Create a FunctionAppSlot resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: FunctionAppSlotArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering FunctionAppSlot resources. */ export interface FunctionAppSlotState { /** * The ID of the App Service Plan within which to create this Function App Slot. Changing this forces a new resource to be created. */ appServicePlanId?: pulumi.Input; /** * A key-value pair of App Settings. * * > **Note:** When integrating a `CI/CD pipeline` and expecting to run from a deployed package in `Azure` you must seed your `app settings` as part of the application code for function app to be successfully deployed. `Important Default key pairs`: (`"WEBSITE_RUN_FROM_PACKAGE" = ""`, `"FUNCTIONS_WORKER_RUNTIME" = "node"` (or python, etc), `"WEBSITE_NODE_DEFAULT_VERSION" = "10.14.1"`, `"APPINSIGHTS_INSTRUMENTATIONKEY" = ""`). * * > **NOTE:** The values for `AzureWebJobsStorage` and `FUNCTIONS_EXTENSION_VERSION` will be filled by other input arguments and shouldn't be configured separately. `AzureWebJobsStorage` is filled based on `storageAccountName` and `storageAccountAccessKey`. `FUNCTIONS_EXTENSION_VERSION` is filled based on `version`. * * > **Note:** When using an App Service Plan in the `Free` or `Shared` Tiers `use32BitWorkerProcess` must be set to `true`. */ appSettings?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * An `authSettings` block as defined below. */ authSettings?: pulumi.Input; /** * A `connectionString` block as defined below. */ connectionStrings?: pulumi.Input[]>; /** * The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps under the consumption plan. */ dailyMemoryTimeQuota?: pulumi.Input; /** * The default hostname associated with the Function App - such as `mysite.azurewebsites.net` */ defaultHostname?: pulumi.Input; /** * Should the built-in logging of the Function App be enabled? Defaults to `true`. */ enableBuiltinLogging?: pulumi.Input; /** * Is the Function App enabled? Defaults to `true`. */ enabled?: pulumi.Input; /** * The name of the Function App within which to create the Function App Slot. Changing this forces a new resource to be created. */ functionAppName?: pulumi.Input; /** * Can the Function App only be accessed via HTTPS? Defaults to `false`. */ httpsOnly?: pulumi.Input; /** * An `identity` block as defined below. */ identity?: pulumi.Input; /** * The Function App kind - such as `functionapp,linux,container` */ kind?: pulumi.Input; /** * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * Specifies the name of the Function App. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * A string indicating the Operating System type for this function app. The only possible value is `linux`. Changing this forces a new resource to be created. * * > **NOTE:** This value will be `linux` for Linux Derivatives or an empty string for Windows (default). */ osType?: pulumi.Input; /** * A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12` */ outboundIpAddresses?: pulumi.Input; /** * 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 `outboundIpAddresses`. */ possibleOutboundIpAddresses?: pulumi.Input; /** * The name of the resource group in which to create the Function App Slot. Changing this forces a new resource to be created. */ resourceGroupName?: pulumi.Input; /** * A `siteConfig` object as defined below. */ siteConfig?: pulumi.Input; /** * A `siteCredential` block as defined below, which contains the site-level credentials used to publish to this Function App Slot. */ siteCredentials?: pulumi.Input[]>; /** * The access key which will be used to access the backend storage account for the Function App. */ storageAccountAccessKey?: pulumi.Input; /** * The backend storage account name which will be used by the Function App (such as the dashboard, logs). Changing this forces a new resource to be created. */ storageAccountName?: pulumi.Input; /** * A mapping of tags to assign to the resource. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The runtime version associated with the Function App. Defaults to `~1`. */ version?: pulumi.Input; } /** * The set of arguments for constructing a FunctionAppSlot resource. */ export interface FunctionAppSlotArgs { /** * The ID of the App Service Plan within which to create this Function App Slot. Changing this forces a new resource to be created. */ appServicePlanId: pulumi.Input; /** * A key-value pair of App Settings. * * > **Note:** When integrating a `CI/CD pipeline` and expecting to run from a deployed package in `Azure` you must seed your `app settings` as part of the application code for function app to be successfully deployed. `Important Default key pairs`: (`"WEBSITE_RUN_FROM_PACKAGE" = ""`, `"FUNCTIONS_WORKER_RUNTIME" = "node"` (or python, etc), `"WEBSITE_NODE_DEFAULT_VERSION" = "10.14.1"`, `"APPINSIGHTS_INSTRUMENTATIONKEY" = ""`). * * > **NOTE:** The values for `AzureWebJobsStorage` and `FUNCTIONS_EXTENSION_VERSION` will be filled by other input arguments and shouldn't be configured separately. `AzureWebJobsStorage` is filled based on `storageAccountName` and `storageAccountAccessKey`. `FUNCTIONS_EXTENSION_VERSION` is filled based on `version`. * * > **Note:** When using an App Service Plan in the `Free` or `Shared` Tiers `use32BitWorkerProcess` must be set to `true`. */ appSettings?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * An `authSettings` block as defined below. */ authSettings?: pulumi.Input; /** * A `connectionString` block as defined below. */ connectionStrings?: pulumi.Input[]>; /** * The amount of memory in gigabyte-seconds that your application is allowed to consume per day. Setting this value only affects function apps under the consumption plan. */ dailyMemoryTimeQuota?: pulumi.Input; /** * Should the built-in logging of the Function App be enabled? Defaults to `true`. */ enableBuiltinLogging?: pulumi.Input; /** * Is the Function App enabled? Defaults to `true`. */ enabled?: pulumi.Input; /** * The name of the Function App within which to create the Function App Slot. Changing this forces a new resource to be created. */ functionAppName: pulumi.Input; /** * Can the Function App only be accessed via HTTPS? Defaults to `false`. */ httpsOnly?: pulumi.Input; /** * An `identity` block as defined below. */ identity?: pulumi.Input; /** * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. */ location?: pulumi.Input; /** * Specifies the name of the Function App. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * A string indicating the Operating System type for this function app. The only possible value is `linux`. Changing this forces a new resource to be created. * * > **NOTE:** This value will be `linux` for Linux Derivatives or an empty string for Windows (default). */ osType?: pulumi.Input; /** * The name of the resource group in which to create the Function App Slot. Changing this forces a new resource to be created. */ resourceGroupName: pulumi.Input; /** * A `siteConfig` object as defined below. */ siteConfig?: pulumi.Input; /** * The access key which will be used to access the backend storage account for the Function App. */ storageAccountAccessKey: pulumi.Input; /** * The backend storage account name which will be used by the Function App (such as the dashboard, logs). Changing this forces a new resource to be created. */ storageAccountName: pulumi.Input; /** * A mapping of tags to assign to the resource. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The runtime version associated with the Function App. Defaults to `~1`. */ version?: pulumi.Input; }