Slot
Manages an App Service Slot (within an App Service).
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.
Create a Slot Resource
new Slot(name: string, args: SlotArgs, opts?: CustomResourceOptions);def Slot(resource_name, opts=None, app_service_name=None, app_service_plan_id=None, app_settings=None, auth_settings=None, client_affinity_enabled=None, connection_strings=None, enabled=None, https_only=None, identity=None, location=None, logs=None, name=None, resource_group_name=None, site_config=None, tags=None, __props__=None);public Slot(string name, SlotArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args SlotArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SlotArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SlotArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Slot Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Slot resource accepts the following input properties:
- App
Service stringName The name of the App Service within which to create the App Service Slot. Changing this forces a new resource to be created.
- App
Service stringPlan Id The ID of the App Service Plan within which to create this App Service Slot. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which to create the App Service Slot component.
- App
Settings Dictionary<string, string> A key-value pair of App Settings.
- Auth
Settings SlotAuth Settings Args A
auth_settingsblock as defined below.- Client
Affinity boolEnabled Should the App Service Slot send session affinity cookies, which route client requests in the same session to the same instance?
- Connection
Strings List<SlotConnection String Args> An
connection_stringblock as defined below.- Enabled bool
Is the App Service Slot Enabled?
- Https
Only bool Can the App Service Slot only be accessed via HTTPS? Defaults to
false.- Identity
Slot
Identity Args A Managed Service Identity block as defined below.
- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Logs
Slot
Logs Args - Name string
Specifies the name of the App Service Slot component. Changing this forces a new resource to be created.
- Site
Config SlotSite Config Args A
site_configobject as defined below.- Dictionary<string, string>
A mapping of tags to assign to the resource.
- App
Service stringName The name of the App Service within which to create the App Service Slot. Changing this forces a new resource to be created.
- App
Service stringPlan Id The ID of the App Service Plan within which to create this App Service Slot. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which to create the App Service Slot component.
- App
Settings map[string]string A key-value pair of App Settings.
- Auth
Settings SlotAuth Settings A
auth_settingsblock as defined below.- Client
Affinity boolEnabled Should the App Service Slot send session affinity cookies, which route client requests in the same session to the same instance?
- Connection
Strings []SlotConnection String An
connection_stringblock as defined below.- Enabled bool
Is the App Service Slot Enabled?
- Https
Only bool Can the App Service Slot only be accessed via HTTPS? Defaults to
false.- Identity
Slot
Identity A Managed Service Identity block as defined below.
- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Logs
Slot
Logs - Name string
Specifies the name of the App Service Slot component. Changing this forces a new resource to be created.
- Site
Config SlotSite Config A
site_configobject as defined below.- map[string]string
A mapping of tags to assign to the resource.
- app
Service stringName The name of the App Service within which to create the App Service Slot. Changing this forces a new resource to be created.
- app
Service stringPlan Id The ID of the App Service Plan within which to create this App Service Slot. Changing this forces a new resource to be created.
- resource
Group stringName The name of the resource group in which to create the App Service Slot component.
- app
Settings {[key: string]: string} A key-value pair of App Settings.
- auth
Settings SlotAuth Settings A
auth_settingsblock as defined below.- client
Affinity booleanEnabled Should the App Service Slot send session affinity cookies, which route client requests in the same session to the same instance?
- connection
Strings SlotConnection String[] An
connection_stringblock as defined below.- enabled boolean
Is the App Service Slot Enabled?
- https
Only boolean Can the App Service Slot only be accessed via HTTPS? Defaults to
false.- identity
Slot
Identity A Managed Service Identity block as defined below.
- location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- logs
Slot
Logs - name string
Specifies the name of the App Service Slot component. Changing this forces a new resource to be created.
- site
Config SlotSite Config A
site_configobject as defined below.- {[key: string]: string}
A mapping of tags to assign to the resource.
- app_
service_ strname The name of the App Service within which to create the App Service Slot. Changing this forces a new resource to be created.
- app_
service_ strplan_ id The ID of the App Service Plan within which to create this App Service Slot. Changing this forces a new resource to be created.
- resource_
group_ strname The name of the resource group in which to create the App Service Slot component.
- app_
settings Dict[str, str] A key-value pair of App Settings.
- auth_
settings Dict[SlotAuth Settings] A
auth_settingsblock as defined below.- client_
affinity_ boolenabled Should the App Service Slot send session affinity cookies, which route client requests in the same session to the same instance?
- connection_
strings List[SlotConnection String] An
connection_stringblock as defined below.- enabled bool
Is the App Service Slot Enabled?
- https_
only bool Can the App Service Slot only be accessed via HTTPS? Defaults to
false.- identity
Dict[Slot
Identity] A Managed Service Identity block as defined below.
- location str
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- logs
Dict[Slot
Logs] - name str
Specifies the name of the App Service Slot component. Changing this forces a new resource to be created.
- site_
config Dict[SlotSite Config] A
site_configobject as defined below.- Dict[str, str]
A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Slot resource produces the following output properties:
- Default
Site stringHostname The Default Hostname associated with the App Service Slot - such as
mysite.azurewebsites.net- Id string
- The provider-assigned unique ID for this managed resource.
- Site
Credentials List<SlotSite Credential> A
site_credentialblock as defined below, which contains the site-level credentials used to publish to this App Service.
- Default
Site stringHostname The Default Hostname associated with the App Service Slot - such as
mysite.azurewebsites.net- Id string
- The provider-assigned unique ID for this managed resource.
- Site
Credentials []SlotSite Credential A
site_credentialblock as defined below, which contains the site-level credentials used to publish to this App Service.
- default
Site stringHostname The Default Hostname associated with the App Service Slot - such as
mysite.azurewebsites.net- id string
- The provider-assigned unique ID for this managed resource.
- site
Credentials SlotSite Credential[] A
site_credentialblock as defined below, which contains the site-level credentials used to publish to this App Service.
- default_
site_ strhostname The Default Hostname associated with the App Service Slot - such as
mysite.azurewebsites.net- id str
- The provider-assigned unique ID for this managed resource.
- site_
credentials List[SlotSite Credential] A
site_credentialblock as defined below, which contains the site-level credentials used to publish to this App Service.
Look up an Existing Slot Resource
Get an existing Slot resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SlotState, opts?: CustomResourceOptions): Slotstatic get(resource_name, id, opts=None, app_service_name=None, app_service_plan_id=None, app_settings=None, auth_settings=None, client_affinity_enabled=None, connection_strings=None, default_site_hostname=None, enabled=None, https_only=None, identity=None, location=None, logs=None, name=None, resource_group_name=None, site_config=None, site_credentials=None, tags=None, __props__=None);public static Slot Get(string name, Input<string> id, SlotState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- App
Service stringName The name of the App Service within which to create the App Service Slot. Changing this forces a new resource to be created.
- App
Service stringPlan Id The ID of the App Service Plan within which to create this App Service Slot. Changing this forces a new resource to be created.
- App
Settings Dictionary<string, string> A key-value pair of App Settings.
- Auth
Settings SlotAuth Settings Args A
auth_settingsblock as defined below.- Client
Affinity boolEnabled Should the App Service Slot send session affinity cookies, which route client requests in the same session to the same instance?
- Connection
Strings List<SlotConnection String Args> An
connection_stringblock as defined below.- Default
Site stringHostname The Default Hostname associated with the App Service Slot - such as
mysite.azurewebsites.net- Enabled bool
Is the App Service Slot Enabled?
- Https
Only bool Can the App Service Slot only be accessed via HTTPS? Defaults to
false.- Identity
Slot
Identity Args A Managed Service Identity block as defined below.
- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Logs
Slot
Logs Args - Name string
Specifies the name of the App Service Slot component. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which to create the App Service Slot component.
- Site
Config SlotSite Config Args A
site_configobject as defined below.- Site
Credentials List<SlotSite Credential Args> A
site_credentialblock as defined below, which contains the site-level credentials used to publish to this App Service.- Dictionary<string, string>
A mapping of tags to assign to the resource.
- App
Service stringName The name of the App Service within which to create the App Service Slot. Changing this forces a new resource to be created.
- App
Service stringPlan Id The ID of the App Service Plan within which to create this App Service Slot. Changing this forces a new resource to be created.
- App
Settings map[string]string A key-value pair of App Settings.
- Auth
Settings SlotAuth Settings A
auth_settingsblock as defined below.- Client
Affinity boolEnabled Should the App Service Slot send session affinity cookies, which route client requests in the same session to the same instance?
- Connection
Strings []SlotConnection String An
connection_stringblock as defined below.- Default
Site stringHostname The Default Hostname associated with the App Service Slot - such as
mysite.azurewebsites.net- Enabled bool
Is the App Service Slot Enabled?
- Https
Only bool Can the App Service Slot only be accessed via HTTPS? Defaults to
false.- Identity
Slot
Identity A Managed Service Identity block as defined below.
- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Logs
Slot
Logs - Name string
Specifies the name of the App Service Slot component. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which to create the App Service Slot component.
- Site
Config SlotSite Config A
site_configobject as defined below.- Site
Credentials []SlotSite Credential A
site_credentialblock as defined below, which contains the site-level credentials used to publish to this App Service.- map[string]string
A mapping of tags to assign to the resource.
- app
Service stringName The name of the App Service within which to create the App Service Slot. Changing this forces a new resource to be created.
- app
Service stringPlan Id The ID of the App Service Plan within which to create this App Service Slot. Changing this forces a new resource to be created.
- app
Settings {[key: string]: string} A key-value pair of App Settings.
- auth
Settings SlotAuth Settings A
auth_settingsblock as defined below.- client
Affinity booleanEnabled Should the App Service Slot send session affinity cookies, which route client requests in the same session to the same instance?
- connection
Strings SlotConnection String[] An
connection_stringblock as defined below.- default
Site stringHostname The Default Hostname associated with the App Service Slot - such as
mysite.azurewebsites.net- enabled boolean
Is the App Service Slot Enabled?
- https
Only boolean Can the App Service Slot only be accessed via HTTPS? Defaults to
false.- identity
Slot
Identity A Managed Service Identity block as defined below.
- location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- logs
Slot
Logs - name string
Specifies the name of the App Service Slot component. Changing this forces a new resource to be created.
- resource
Group stringName The name of the resource group in which to create the App Service Slot component.
- site
Config SlotSite Config A
site_configobject as defined below.- site
Credentials SlotSite Credential[] A
site_credentialblock as defined below, which contains the site-level credentials used to publish to this App Service.- {[key: string]: string}
A mapping of tags to assign to the resource.
- app_
service_ strname The name of the App Service within which to create the App Service Slot. Changing this forces a new resource to be created.
- app_
service_ strplan_ id The ID of the App Service Plan within which to create this App Service Slot. Changing this forces a new resource to be created.
- app_
settings Dict[str, str] A key-value pair of App Settings.
- auth_
settings Dict[SlotAuth Settings] A
auth_settingsblock as defined below.- client_
affinity_ boolenabled Should the App Service Slot send session affinity cookies, which route client requests in the same session to the same instance?
- connection_
strings List[SlotConnection String] An
connection_stringblock as defined below.- default_
site_ strhostname The Default Hostname associated with the App Service Slot - such as
mysite.azurewebsites.net- enabled bool
Is the App Service Slot Enabled?
- https_
only bool Can the App Service Slot only be accessed via HTTPS? Defaults to
false.- identity
Dict[Slot
Identity] A Managed Service Identity block as defined below.
- location str
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- logs
Dict[Slot
Logs] - name str
Specifies the name of the App Service Slot component. Changing this forces a new resource to be created.
- resource_
group_ strname The name of the resource group in which to create the App Service Slot component.
- site_
config Dict[SlotSite Config] A
site_configobject as defined below.- site_
credentials List[SlotSite Credential] A
site_credentialblock as defined below, which contains the site-level credentials used to publish to this App Service.- Dict[str, str]
A mapping of tags to assign to the resource.
Supporting Types
SlotAuthSettings
- Enabled bool
Is Authentication enabled?
- Active
Directory SlotAuth Settings Active Directory Args A
active_directoryblock as defined below.- Additional
Login Dictionary<string, string>Params Login parameters to send to the OpenID Connect authorization endpoint when a user logs in. Each parameter must be in the form “key=value”.
- Allowed
External List<string>Redirect Urls External URLs that can be redirected to as part of logging in or logging out of the app.
- Default
Provider string The default provider to use when multiple providers have been set up. Possible values are
AzureActiveDirectory,Facebook,Google,MicrosoftAccountandTwitter.- Facebook
Slot
Auth Settings Facebook Args A
facebookblock as defined below.- Google
Slot
Auth Settings Google Args A
googleblock as defined below.- Issuer string
Issuer URI. When using Azure Active Directory, this value is the URI of the directory tenant, e.g. https://sts.windows.net/{tenant-guid}/.
- Microsoft
Slot
Auth Settings Microsoft Args A
microsoftblock as defined below.- Runtime
Version string The runtime version of the Authentication/Authorization module.
- Token
Refresh doubleExtension Hours The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to 72.
- Token
Store boolEnabled If enabled the module will durably store platform-specific security tokens that are obtained during login flows. Defaults to false.
- Twitter
Slot
Auth Settings Twitter Args A
twitterblock as defined below.- Unauthenticated
Client stringAction The action to take when an unauthenticated client attempts to access the app. Possible values are
AllowAnonymousandRedirectToLoginPage.
- Enabled bool
Is Authentication enabled?
- Active
Directory SlotAuth Settings Active Directory A
active_directoryblock as defined below.- Additional
Login map[string]stringParams Login parameters to send to the OpenID Connect authorization endpoint when a user logs in. Each parameter must be in the form “key=value”.
- Allowed
External []stringRedirect Urls External URLs that can be redirected to as part of logging in or logging out of the app.
- Default
Provider string The default provider to use when multiple providers have been set up. Possible values are
AzureActiveDirectory,Facebook,Google,MicrosoftAccountandTwitter.- Facebook
Slot
Auth Settings Facebook A
facebookblock as defined below.- Google
Slot
Auth Settings Google A
googleblock as defined below.- Issuer string
Issuer URI. When using Azure Active Directory, this value is the URI of the directory tenant, e.g. https://sts.windows.net/{tenant-guid}/.
- Microsoft
Slot
Auth Settings Microsoft A
microsoftblock as defined below.- Runtime
Version string The runtime version of the Authentication/Authorization module.
- Token
Refresh float64Extension Hours The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to 72.
- Token
Store boolEnabled If enabled the module will durably store platform-specific security tokens that are obtained during login flows. Defaults to false.
- Twitter
Slot
Auth Settings Twitter A
twitterblock as defined below.- Unauthenticated
Client stringAction The action to take when an unauthenticated client attempts to access the app. Possible values are
AllowAnonymousandRedirectToLoginPage.
- enabled boolean
Is Authentication enabled?
- active
Directory SlotAuth Settings Active Directory A
active_directoryblock as defined below.- additional
Login {[key: string]: string}Params Login parameters to send to the OpenID Connect authorization endpoint when a user logs in. Each parameter must be in the form “key=value”.
- allowed
External string[]Redirect Urls External URLs that can be redirected to as part of logging in or logging out of the app.
- default
Provider string The default provider to use when multiple providers have been set up. Possible values are
AzureActiveDirectory,Facebook,Google,MicrosoftAccountandTwitter.- facebook
Slot
Auth Settings Facebook A
facebookblock as defined below.- google
Slot
Auth Settings Google A
googleblock as defined below.- issuer string
Issuer URI. When using Azure Active Directory, this value is the URI of the directory tenant, e.g. https://sts.windows.net/{tenant-guid}/.
- microsoft
Slot
Auth Settings Microsoft A
microsoftblock as defined below.- runtime
Version string The runtime version of the Authentication/Authorization module.
- token
Refresh numberExtension Hours The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to 72.
- token
Store booleanEnabled If enabled the module will durably store platform-specific security tokens that are obtained during login flows. Defaults to false.
- twitter
Slot
Auth Settings Twitter A
twitterblock as defined below.- unauthenticated
Client stringAction The action to take when an unauthenticated client attempts to access the app. Possible values are
AllowAnonymousandRedirectToLoginPage.
- enabled bool
Is Authentication enabled?
- active_
directory Dict[SlotAuth Settings Active Directory] A
active_directoryblock as defined below.- additional
Login Dict[str, str]Params Login parameters to send to the OpenID Connect authorization endpoint when a user logs in. Each parameter must be in the form “key=value”.
- allowed
External List[str]Redirect Urls External URLs that can be redirected to as part of logging in or logging out of the app.
- default
Provider str The default provider to use when multiple providers have been set up. Possible values are
AzureActiveDirectory,Facebook,Google,MicrosoftAccountandTwitter.- facebook
Dict[Slot
Auth Settings Facebook] A
facebookblock as defined below.- google
Dict[Slot
Auth Settings Google] A
googleblock as defined below.- issuer str
Issuer URI. When using Azure Active Directory, this value is the URI of the directory tenant, e.g. https://sts.windows.net/{tenant-guid}/.
- microsoft
Dict[Slot
Auth Settings Microsoft] A
microsoftblock as defined below.- runtime
Version str The runtime version of the Authentication/Authorization module.
- token
Refresh floatExtension Hours The number of hours after session token expiration that a session token can be used to call the token refresh API. Defaults to 72.
- token
Store boolEnabled If enabled the module will durably store platform-specific security tokens that are obtained during login flows. Defaults to false.
- twitter
Dict[Slot
Auth Settings Twitter] A
twitterblock as defined below.- unauthenticated
Client strAction The action to take when an unauthenticated client attempts to access the app. Possible values are
AllowAnonymousandRedirectToLoginPage.
SlotAuthSettingsActiveDirectory
- Client
Id string The Client ID of this relying party application. Enables OpenIDConnection authentication with Azure Active Directory.
- Allowed
Audiences List<string> Allowed audience values to consider when validating JWTs issued by Azure Active Directory.
- Client
Secret string The Client Secret of this relying party application. If no secret is provided, implicit flow will be used.
- Client
Id string The Client ID of this relying party application. Enables OpenIDConnection authentication with Azure Active Directory.
- Allowed
Audiences []string Allowed audience values to consider when validating JWTs issued by Azure Active Directory.
- Client
Secret string The Client Secret of this relying party application. If no secret is provided, implicit flow will be used.
- client
Id string The Client ID of this relying party application. Enables OpenIDConnection authentication with Azure Active Directory.
- allowed
Audiences string[] Allowed audience values to consider when validating JWTs issued by Azure Active Directory.
- client
Secret string The Client Secret of this relying party application. If no secret is provided, implicit flow will be used.
- client_
id str The Client ID of this relying party application. Enables OpenIDConnection authentication with Azure Active Directory.
- allowed
Audiences List[str] Allowed audience values to consider when validating JWTs issued by Azure Active Directory.
- client_
secret str The Client Secret of this relying party application. If no secret is provided, implicit flow will be used.
SlotAuthSettingsFacebook
- App
Id string The App ID of the Facebook app used for login
- App
Secret string The App Secret of the Facebook app used for Facebook Login.
- Oauth
Scopes List<string> The OAuth 2.0 scopes that will be requested as part of Facebook Login authentication. https://developers.facebook.com/docs/facebook-login
- App
Id string The App ID of the Facebook app used for login
- App
Secret string The App Secret of the Facebook app used for Facebook Login.
- Oauth
Scopes []string The OAuth 2.0 scopes that will be requested as part of Facebook Login authentication. https://developers.facebook.com/docs/facebook-login
- app
Id string The App ID of the Facebook app used for login
- app
Secret string The App Secret of the Facebook app used for Facebook Login.
- oauth
Scopes string[] The OAuth 2.0 scopes that will be requested as part of Facebook Login authentication. https://developers.facebook.com/docs/facebook-login
- app_
id str The App ID of the Facebook app used for login
- app_
secret str The App Secret of the Facebook app used for Facebook Login.
- oauth
Scopes List[str] The OAuth 2.0 scopes that will be requested as part of Facebook Login authentication. https://developers.facebook.com/docs/facebook-login
SlotAuthSettingsGoogle
- Client
Id string The OpenID Connect Client ID for the Google web application.
- Client
Secret string The client secret associated with the Google web application.
- Oauth
Scopes List<string> The OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. https://developers.google.com/identity/sign-in/web/
- Client
Id string The OpenID Connect Client ID for the Google web application.
- Client
Secret string The client secret associated with the Google web application.
- Oauth
Scopes []string The OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. https://developers.google.com/identity/sign-in/web/
- client
Id string The OpenID Connect Client ID for the Google web application.
- client
Secret string The client secret associated with the Google web application.
- oauth
Scopes string[] The OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. https://developers.google.com/identity/sign-in/web/
- client_
id str The OpenID Connect Client ID for the Google web application.
- client_
secret str The client secret associated with the Google web application.
- oauth
Scopes List[str] The OAuth 2.0 scopes that will be requested as part of Google Sign-In authentication. https://developers.google.com/identity/sign-in/web/
SlotAuthSettingsMicrosoft
- Client
Id string The OAuth 2.0 client ID that was created for the app used for authentication.
- Client
Secret string The OAuth 2.0 client secret that was created for the app used for authentication.
- Oauth
Scopes List<string> The OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. https://msdn.microsoft.com/en-us/library/dn631845.aspx
- Client
Id string The OAuth 2.0 client ID that was created for the app used for authentication.
- Client
Secret string The OAuth 2.0 client secret that was created for the app used for authentication.
- Oauth
Scopes []string The OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. https://msdn.microsoft.com/en-us/library/dn631845.aspx
- client
Id string The OAuth 2.0 client ID that was created for the app used for authentication.
- client
Secret string The OAuth 2.0 client secret that was created for the app used for authentication.
- oauth
Scopes string[] The OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. https://msdn.microsoft.com/en-us/library/dn631845.aspx
- client_
id str The OAuth 2.0 client ID that was created for the app used for authentication.
- client_
secret str The OAuth 2.0 client secret that was created for the app used for authentication.
- oauth
Scopes List[str] The OAuth 2.0 scopes that will be requested as part of Microsoft Account authentication. https://msdn.microsoft.com/en-us/library/dn631845.aspx
SlotAuthSettingsTwitter
SlotConnectionString
SlotIdentity
- Type string
Specifies the identity type of the App Service. Possible values are
SystemAssigned(where Azure will generate a Service Principal for you),UserAssignedwhere you can specify the Service Principal IDs in theidentity_idsfield, andSystemAssigned, UserAssignedwhich assigns both a system managed identity as well as the specified user assigned identities.- Identity
Ids List<string> Specifies a list of user managed identity ids to be assigned. Required if
typeisUserAssigned.- Principal
Id string - Tenant
Id string
- Type string
Specifies the identity type of the App Service. Possible values are
SystemAssigned(where Azure will generate a Service Principal for you),UserAssignedwhere you can specify the Service Principal IDs in theidentity_idsfield, andSystemAssigned, UserAssignedwhich assigns both a system managed identity as well as the specified user assigned identities.- Identity
Ids []string Specifies a list of user managed identity ids to be assigned. Required if
typeisUserAssigned.- Principal
Id string - Tenant
Id string
- type string
Specifies the identity type of the App Service. Possible values are
SystemAssigned(where Azure will generate a Service Principal for you),UserAssignedwhere you can specify the Service Principal IDs in theidentity_idsfield, andSystemAssigned, UserAssignedwhich assigns both a system managed identity as well as the specified user assigned identities.- identity
Ids string[] Specifies a list of user managed identity ids to be assigned. Required if
typeisUserAssigned.- principal
Id string - tenant
Id string
- type str
Specifies the identity type of the App Service. Possible values are
SystemAssigned(where Azure will generate a Service Principal for you),UserAssignedwhere you can specify the Service Principal IDs in theidentity_idsfield, andSystemAssigned, UserAssignedwhich assigns both a system managed identity as well as the specified user assigned identities.- identity
Ids List[str] Specifies a list of user managed identity ids to be assigned. Required if
typeisUserAssigned.- principal_
id str - tenant_
id str
SlotLogs
- Application
Logs SlotLogs Application Logs Args An
application_logsblock as defined below.- Http
Logs SlotLogs Http Logs Args An
http_logsblock as defined below.
- Application
Logs SlotLogs Application Logs An
application_logsblock as defined below.- Http
Logs SlotLogs Http Logs An
http_logsblock as defined below.
- application
Logs SlotLogs Application Logs An
application_logsblock as defined below.- http
Logs SlotLogs Http Logs An
http_logsblock as defined below.
- application
Logs Dict[SlotLogs Application Logs] An
application_logsblock as defined below.- http
Logs Dict[SlotLogs Http Logs] An
http_logsblock as defined below.
SlotLogsApplicationLogs
- Azure
Blob SlotStorage Logs Application Logs Azure Blob Storage Args An
azure_blob_storageblock as defined below.
- Azure
Blob SlotStorage Logs Application Logs Azure Blob Storage An
azure_blob_storageblock as defined below.
- azure
Blob SlotStorage Logs Application Logs Azure Blob Storage An
azure_blob_storageblock as defined below.
- azure
Blob Dict[SlotStorage Logs Application Logs Azure Blob Storage] An
azure_blob_storageblock as defined below.
SlotLogsApplicationLogsAzureBlobStorage
- Level string
The level at which to log. Possible values include
Error,Warning,Information,VerboseandOff. NOTE: this field is not available forhttp_logs- Retention
In intDays The number of days to retain logs for.
- Sas
Url string The URL to the storage container, with a Service SAS token appended. NOTE: there is currently no means of generating Service SAS tokens with the
azurermprovider.
- Level string
The level at which to log. Possible values include
Error,Warning,Information,VerboseandOff. NOTE: this field is not available forhttp_logs- Retention
In intDays The number of days to retain logs for.
- Sas
Url string The URL to the storage container, with a Service SAS token appended. NOTE: there is currently no means of generating Service SAS tokens with the
azurermprovider.
- level string
The level at which to log. Possible values include
Error,Warning,Information,VerboseandOff. NOTE: this field is not available forhttp_logs- retention
In numberDays The number of days to retain logs for.
- sas
Url string The URL to the storage container, with a Service SAS token appended. NOTE: there is currently no means of generating Service SAS tokens with the
azurermprovider.
- level str
The level at which to log. Possible values include
Error,Warning,Information,VerboseandOff. NOTE: this field is not available forhttp_logs- retention_
in_ floatdays The number of days to retain logs for.
- sas
Url str The URL to the storage container, with a Service SAS token appended. NOTE: there is currently no means of generating Service SAS tokens with the
azurermprovider.
SlotLogsHttpLogs
- Azure
Blob SlotStorage Logs Http Logs Azure Blob Storage Args An
azure_blob_storageblock as defined below.- File
System SlotLogs Http Logs File System Args A
file_systemblock as defined below.
- Azure
Blob SlotStorage Logs Http Logs Azure Blob Storage An
azure_blob_storageblock as defined below.- File
System SlotLogs Http Logs File System A
file_systemblock as defined below.
- azure
Blob SlotStorage Logs Http Logs Azure Blob Storage An
azure_blob_storageblock as defined below.- file
System SlotLogs Http Logs File System A
file_systemblock as defined below.
- azure
Blob Dict[SlotStorage Logs Http Logs Azure Blob Storage] An
azure_blob_storageblock as defined below.- file
System Dict[SlotLogs Http Logs File System] A
file_systemblock as defined below.
SlotLogsHttpLogsAzureBlobStorage
- Retention
In intDays The number of days to retain logs for.
- Sas
Url string The URL to the storage container, with a Service SAS token appended. NOTE: there is currently no means of generating Service SAS tokens with the
azurermprovider.
- Retention
In intDays The number of days to retain logs for.
- Sas
Url string The URL to the storage container, with a Service SAS token appended. NOTE: there is currently no means of generating Service SAS tokens with the
azurermprovider.
- retention
In numberDays The number of days to retain logs for.
- sas
Url string The URL to the storage container, with a Service SAS token appended. NOTE: there is currently no means of generating Service SAS tokens with the
azurermprovider.
- retention_
in_ floatdays The number of days to retain logs for.
- sas
Url str The URL to the storage container, with a Service SAS token appended. NOTE: there is currently no means of generating Service SAS tokens with the
azurermprovider.
SlotLogsHttpLogsFileSystem
- Retention
In intDays The number of days to retain logs for.
- Retention
In intMb The maximum size in megabytes that http log files can use before being removed.
- Retention
In intDays The number of days to retain logs for.
- Retention
In intMb The maximum size in megabytes that http log files can use before being removed.
- retention
In numberDays The number of days to retain logs for.
- retention
In numberMb The maximum size in megabytes that http log files can use before being removed.
- retention
In floatMb The maximum size in megabytes that http log files can use before being removed.
- retention_
in_ floatdays The number of days to retain logs for.
SlotSiteConfig
- Always
On bool Should the app be loaded at all times? Defaults to
false.- App
Command stringLine App command line to launch, e.g.
/sbin/myserver -b 0.0.0.0.- Auto
Swap stringSlot Name The name of the swap to automatically swap to during deployment
- Cors
Slot
Site Config Cors Args A
corsblock as defined below.- 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 Slot. Possible values are
v2.0(which will use the latest version of the .net framework for the .net CLR v2 - currently.net 3.5) andv4.0(which corresponds to the latest version of the .net CLR v4 - which at the time of writing is.net 4.7.1). For more information on which .net CLR version to use based on the .net framework you’re targeting - please see this table. Defaults tov4.0.- Ftps
State string - Health
Check stringPath - Http2Enabled bool
Is HTTP2 Enabled on this App Service? Defaults to
false.- Ip
Restrictions List<SlotSite Config Ip Restriction Args> A list of objects representing ip restrictions as defined below.
- Java
Container string The Java Container to use. If specified
java_versionandjava_container_versionmust also be specified. Possible values areJETTYandTOMCAT.- Java
Container stringVersion The version of the Java Container to use. If specified
java_versionandjava_containermust also be specified.- Java
Version string The version of Java to use. If specified
java_containerandjava_container_versionmust also be specified. Possible values are1.7,1.8, and11and their specific versions - except for Java 11 (e.g.1.7.0_80,1.8.0_181,11)- Linux
Fx stringVersion - 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. Possible values are
IntegratedandClassic. Defaults toIntegrated.- Min
Tls stringVersion The minimum supported TLS version for the app service. Possible values are
1.0,1.1, and1.2. Defaults to1.2for new app services.- Php
Version string The version of PHP to use in this App Service Slot. Possible values are
5.5,5.6,7.0,7.1,7.2, and7.3.- Python
Version string The version of Python to use in this App Service Slot. Possible values are
2.7and3.4.- Remote
Debugging boolEnabled Is Remote Debugging Enabled? Defaults to
false.- Remote
Debugging stringVersion Which version of Visual Studio should the Remote Debugger be compatible with? Possible values are
VS2012,VS2013,VS2015, andVS2017.- Scm
Ip List<SlotRestrictions Site Config Scm Ip Restriction Args> - Scm
Type string The type of Source Control enabled for this App Service Slot. Defaults to
None. Possible values are:BitbucketGit,BitbucketHg,CodePlexGit,CodePlexHg,Dropbox,ExternalGit,ExternalHg,GitHub,LocalGit,None,OneDrive,Tfs,VSO, andVSTSRM- Scm
Use boolMain Ip Restriction - Use32Bit
Worker boolProcess Should the App Service Slot run in 32 bit mode, rather than 64 bit mode?
- Websockets
Enabled bool Should WebSockets be enabled?
- Windows
Fx stringVersion
- Always
On bool Should the app be loaded at all times? Defaults to
false.- App
Command stringLine App command line to launch, e.g.
/sbin/myserver -b 0.0.0.0.- Auto
Swap stringSlot Name The name of the swap to automatically swap to during deployment
- Cors
Slot
Site Config Cors A
corsblock as defined below.- 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 Slot. Possible values are
v2.0(which will use the latest version of the .net framework for the .net CLR v2 - currently.net 3.5) andv4.0(which corresponds to the latest version of the .net CLR v4 - which at the time of writing is.net 4.7.1). For more information on which .net CLR version to use based on the .net framework you’re targeting - please see this table. Defaults tov4.0.- Ftps
State string - Health
Check stringPath - Http2Enabled bool
Is HTTP2 Enabled on this App Service? Defaults to
false.- Ip
Restrictions []SlotSite Config Ip Restriction A list of objects representing ip restrictions as defined below.
- Java
Container string The Java Container to use. If specified
java_versionandjava_container_versionmust also be specified. Possible values areJETTYandTOMCAT.- Java
Container stringVersion The version of the Java Container to use. If specified
java_versionandjava_containermust also be specified.- Java
Version string The version of Java to use. If specified
java_containerandjava_container_versionmust also be specified. Possible values are1.7,1.8, and11and their specific versions - except for Java 11 (e.g.1.7.0_80,1.8.0_181,11)- Linux
Fx stringVersion - 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. Possible values are
IntegratedandClassic. Defaults toIntegrated.- Min
Tls stringVersion The minimum supported TLS version for the app service. Possible values are
1.0,1.1, and1.2. Defaults to1.2for new app services.- Php
Version string The version of PHP to use in this App Service Slot. Possible values are
5.5,5.6,7.0,7.1,7.2, and7.3.- Python
Version string The version of Python to use in this App Service Slot. Possible values are
2.7and3.4.- Remote
Debugging boolEnabled Is Remote Debugging Enabled? Defaults to
false.- Remote
Debugging stringVersion Which version of Visual Studio should the Remote Debugger be compatible with? Possible values are
VS2012,VS2013,VS2015, andVS2017.- Scm
Ip []SlotRestrictions Site Config Scm Ip Restriction - Scm
Type string The type of Source Control enabled for this App Service Slot. Defaults to
None. Possible values are:BitbucketGit,BitbucketHg,CodePlexGit,CodePlexHg,Dropbox,ExternalGit,ExternalHg,GitHub,LocalGit,None,OneDrive,Tfs,VSO, andVSTSRM- Scm
Use boolMain Ip Restriction - Use32Bit
Worker boolProcess Should the App Service Slot run in 32 bit mode, rather than 64 bit mode?
- Websockets
Enabled bool Should WebSockets be enabled?
- Windows
Fx stringVersion
- always
On boolean Should the app be loaded at all times? Defaults to
false.- app
Command stringLine App command line to launch, e.g.
/sbin/myserver -b 0.0.0.0.- auto
Swap stringSlot Name The name of the swap to automatically swap to during deployment
- cors
Slot
Site Config Cors A
corsblock as defined below.- 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 Slot. Possible values are
v2.0(which will use the latest version of the .net framework for the .net CLR v2 - currently.net 3.5) andv4.0(which corresponds to the latest version of the .net CLR v4 - which at the time of writing is.net 4.7.1). For more information on which .net CLR version to use based on the .net framework you’re targeting - please see this table. Defaults tov4.0.- ftps
State string - health
Check stringPath - http2Enabled boolean
Is HTTP2 Enabled on this App Service? Defaults to
false.- ip
Restrictions SlotSite Config Ip Restriction[] A list of objects representing ip restrictions as defined below.
- java
Container string The Java Container to use. If specified
java_versionandjava_container_versionmust also be specified. Possible values areJETTYandTOMCAT.- java
Container stringVersion The version of the Java Container to use. If specified
java_versionandjava_containermust also be specified.- java
Version string The version of Java to use. If specified
java_containerandjava_container_versionmust also be specified. Possible values are1.7,1.8, and11and their specific versions - except for Java 11 (e.g.1.7.0_80,1.8.0_181,11)- linux
Fx stringVersion - 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. Possible values are
IntegratedandClassic. Defaults toIntegrated.- min
Tls stringVersion The minimum supported TLS version for the app service. Possible values are
1.0,1.1, and1.2. Defaults to1.2for new app services.- php
Version string The version of PHP to use in this App Service Slot. Possible values are
5.5,5.6,7.0,7.1,7.2, and7.3.- python
Version string The version of Python to use in this App Service Slot. Possible values are
2.7and3.4.- remote
Debugging booleanEnabled Is Remote Debugging Enabled? Defaults to
false.- remote
Debugging stringVersion Which version of Visual Studio should the Remote Debugger be compatible with? Possible values are
VS2012,VS2013,VS2015, andVS2017.- scm
Ip SlotRestrictions Site Config Scm Ip Restriction[] - scm
Type string The type of Source Control enabled for this App Service Slot. Defaults to
None. Possible values are:BitbucketGit,BitbucketHg,CodePlexGit,CodePlexHg,Dropbox,ExternalGit,ExternalHg,GitHub,LocalGit,None,OneDrive,Tfs,VSO, andVSTSRM- scm
Use booleanMain Ip Restriction - use32Bit
Worker booleanProcess Should the App Service Slot run in 32 bit mode, rather than 64 bit mode?
- websockets
Enabled boolean Should WebSockets be enabled?
- windows
Fx stringVersion
- always
On bool Should the app be loaded at all times? Defaults to
false.- app
Command strLine App command line to launch, e.g.
/sbin/myserver -b 0.0.0.0.- auto
Swap strSlot Name The name of the swap to automatically swap to during deployment
- cors
Dict[Slot
Site Config Cors] A
corsblock as defined below.- 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 Slot. Possible values are
v2.0(which will use the latest version of the .net framework for the .net CLR v2 - currently.net 3.5) andv4.0(which corresponds to the latest version of the .net CLR v4 - which at the time of writing is.net 4.7.1). For more information on which .net CLR version to use based on the .net framework you’re targeting - please see this table. Defaults tov4.0.- ftps
State str - health
Check strPath - http2Enabled bool
Is HTTP2 Enabled on this App Service? Defaults to
false.- ip
Restrictions List[SlotSite Config Ip Restriction] A list of objects representing ip restrictions as defined below.
- java
Container str The Java Container to use. If specified
java_versionandjava_container_versionmust also be specified. Possible values areJETTYandTOMCAT.- java
Container strVersion The version of the Java Container to use. If specified
java_versionandjava_containermust also be specified.- java
Version str The version of Java to use. If specified
java_containerandjava_container_versionmust also be specified. Possible values are1.7,1.8, and11and their specific versions - except for Java 11 (e.g.1.7.0_80,1.8.0_181,11)- linux
Fx strVersion - 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. Possible values are
IntegratedandClassic. Defaults toIntegrated.- min
Tls strVersion The minimum supported TLS version for the app service. Possible values are
1.0,1.1, and1.2. Defaults to1.2for new app services.- php
Version str The version of PHP to use in this App Service Slot. Possible values are
5.5,5.6,7.0,7.1,7.2, and7.3.- python
Version str The version of Python to use in this App Service Slot. Possible values are
2.7and3.4.- remote
Debugging boolEnabled Is Remote Debugging Enabled? Defaults to
false.- remote
Debugging strVersion Which version of Visual Studio should the Remote Debugger be compatible with? Possible values are
VS2012,VS2013,VS2015, andVS2017.- scm
Ip List[SlotRestrictions Site Config Scm Ip Restriction] - scm
Type str The type of Source Control enabled for this App Service Slot. Defaults to
None. Possible values are:BitbucketGit,BitbucketHg,CodePlexGit,CodePlexHg,Dropbox,ExternalGit,ExternalHg,GitHub,LocalGit,None,OneDrive,Tfs,VSO, andVSTSRM- scm
Use boolMain Ip Restriction - use32Bit
Worker boolProcess Should the App Service Slot run in 32 bit mode, rather than 64 bit mode?
- websockets
Enabled bool Should WebSockets be enabled?
- windows
Fx strVersion
SlotSiteConfigCors
- Allowed
Origins List<string> A list of origins which should be able to make cross-origin calls.
*can be used to allow all calls.- Support
Credentials bool Are credentials supported?
- Allowed
Origins []string A list of origins which should be able to make cross-origin calls.
*can be used to allow all calls.- Support
Credentials bool Are credentials supported?
- allowed
Origins string[] A list of origins which should be able to make cross-origin calls.
*can be used to allow all calls.- support
Credentials boolean Are credentials supported?
- allowed
Origins List[str] A list of origins which should be able to make cross-origin calls.
*can be used to allow all calls.- support
Credentials bool Are credentials supported?
SlotSiteConfigIpRestriction
- action string
- ip
Address string The IP Address used for this IP Restriction.
- name string
Specifies the name of the App Service Slot component. Changing this forces a new resource to be created.
- priority number
- virtual
Network stringSubnet Id (Optional.The Virtual Network Subnet ID used for this IP Restriction.
- action str
- ip_
address str The IP Address used for this IP Restriction.
- name str
Specifies the name of the App Service Slot component. Changing this forces a new resource to be created.
- priority float
- virtual
Network strSubnet Id (Optional.The Virtual Network Subnet ID used for this IP Restriction.
SlotSiteConfigScmIpRestriction
- action string
- ip
Address string The IP Address used for this IP Restriction.
- name string
Specifies the name of the App Service Slot component. Changing this forces a new resource to be created.
- priority number
- virtual
Network stringSubnet Id (Optional.The Virtual Network Subnet ID used for this IP Restriction.
- action str
- ip_
address str The IP Address used for this IP Restriction.
- name str
Specifies the name of the App Service Slot component. Changing this forces a new resource to be created.
- priority float
- virtual
Network strSubnet Id (Optional.The Virtual Network Subnet ID used for this IP Restriction.
SlotSiteCredential
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.