Parameter |
Choices/Defaults |
Comments |
ad_user
string
|
|
Active Directory username. Use when authenticating with an Active Directory user rather than service principal.
|
adfs_authority_url
string
added in 2.6 |
|
Azure AD authority url. Use when authenticating with Username/password, and has your own ADFS authority.
|
api_profile
string
added in 2.5 |
Default:
"latest"
|
Selects an API profile to use when communicating with Azure services. Default value of latest is appropriate for public clouds; future values will allow use with Azure Stack.
|
app_settings
-
|
|
Configure web app slot application settings. Suboptions are in key value pair format.
|
app_state
string
|
Choices:
started ←
- stopped
- restarted
|
Start/Stop/Restart the slot.
|
append_tags
boolean
|
|
Use to control if tags field is canonical or just appends to existing tags.
When canonical, any tags not found in the tags parameter will be removed from the object's metadata.
|
auth_source
string
added in 2.5 |
Choices:
- auto
- cli
- credential_file
- env
- msi
|
Controls the source of the credentials to use for authentication.
If not specified, ANSIBLE_AZURE_AUTH_SOURCE environment variable will be used and default to auto if variable is not defined.
auto will follow the default precedence of module parameters -> environment variables -> default profile in credential file ~/.azure/credentials .
When set to cli , the credentials will be sources from the default Azure CLI profile.
Can also be set via the ANSIBLE_AZURE_AUTH_SOURCE environment variable.
When set to msi , the host machine must be an azure resource with an enabled MSI extension. subscription_id or the environment variable AZURE_SUBSCRIPTION_ID can be used to identify the subscription ID if the resource is granted access to more than one subscription, otherwise the first subscription is chosen.
The msi was added in Ansible 2.6.
|
auto_swap_slot_name
-
|
|
Used to configure target slot name to auto swap, or disable auto swap.
Set it target slot name to auto swap.
Set it to False to disable auto slot swap.
|
cert_validation_mode
string
added in 2.5 |
|
Controls the certificate validation behavior for Azure endpoints. By default, all modules will validate the server certificate, but when an HTTPS proxy is in use, or against Azure Stack, it may be necessary to disable this behavior by passing ignore . Can also be set via credential file profile or the AZURE_CERT_VALIDATION environment variable.
|
client_id
string
|
|
Azure client ID. Use when authenticating with a Service Principal.
|
cloud_environment
string
added in 2.4 |
Default:
"AzureCloud"
|
For cloud environments other than the US public cloud, the environment name (as defined by Azure Python SDK, eg, AzureChinaCloud , AzureUSGovernment ), or a metadata discovery endpoint URL (required for Azure Stack). Can also be set via credential file profile or the AZURE_CLOUD_ENVIRONMENT environment variable.
|
configuration_source
-
|
|
Source slot to clone configurations from when creating slot. Use webapp's name to refer to the production slot.
|
container_settings
-
|
|
Web app slot container settings.
|
|
name
-
|
|
Name of container, for example imagename:tag .
|
|
registry_server_password
-
|
|
The container registry server password.
|
|
registry_server_url
-
|
|
Container registry server URL, for example mydockerregistry.io .
|
|
registry_server_user
-
|
|
The container registry server user name.
|
deployment_source
-
|
|
Deployment source for git.
|
|
branch
-
|
|
The branch name of the repository.
|
|
url
-
|
|
Repository URL of deployment source.
|
frameworks
-
|
|
Set of run time framework settings. Each setting is a dictionary.
|
name
-
|
Choices:
- java
- net_framework
- php
- python
- ruby
- dotnetcore
- node
|
Name of the framework.
Supported framework list for Windows web app and Linux web app is different.
Windows web apps support java , net_framework , php , python , and node from June 2018.
Windows web apps support multiple framework at same time.
Linux web apps support java , ruby , php , dotnetcore , and node from June 2018.
Linux web apps support only one framework.
Java framework is mutually exclusive with others.
|
|
settings
-
|
|
List of settings of the framework.
|
|
|
java_container
-
|
|
Name of Java container. This is supported by specific framework java onlys, for example Tomcat , Jetty .
|
|
|
java_container_version
-
|
|
Version of Java container. This is supported by specific framework java only.
For Tomcat , for example 8.0 , 8.5 , 9.0 . For Jetty , for example 9.1 , 9.3 .
|
|
version
-
|
|
Version of the framework. For Linux web app supported value, see
location
-
|
|
Resource location. If not set, location from the resource group will be used as default.
|
name
-
/ required
|
|
Unique name of the deployment slot to create or update.
|
password
string
|
|
Active Directory user password. Use when authenticating with an Active Directory user rather than service principal.
|
profile
string
|
|
Security profile found in ~/.azure/credentials file.
|
purge_app_settings
boolean
|
|
Purge any existing application settings. Replace slot application settings with app_settings.
|
resource_group
-
/ required
|
|
Name of the resource group to which the resource belongs.
|
secret
string
|
|
Azure client secret. Use when authenticating with a Service Principal.
|
startup_file
-
|
|
The slot startup file.
This only applies for Linux web app slot.
|
state
-
|
Choices:
- absent
present ←
|
State of the Web App deployment slot.
Use present to create or update a slot and absent to delete it.
|
subscription_id
string
|
|
Your Azure subscription Id.
|
swap
-
|
|
Swap deployment slots of a web app.
|
|
action
-
|
Choices:
preview ←
- swap
- reset
|
Swap types.
preview is to apply target slot settings on source slot first.
swap is to complete swapping.
reset is to reset the swap.
|
|
preserve_vnet
boolean
|
|
True to preserve virtual network to the slot during swap. Otherwise False .
|
|
target_slot
-
|
|
Name of target slot to swap. If set to None, then swap with production slot.
|
tags
dictionary
|
|
Dictionary of string:string pairs to assign as metadata to the object.
Metadata tags on the object will be updated with any provided values.
To remove tags set append_tags option to false.
|
tenant
string
|
|
Azure tenant ID. Use when authenticating with a Service Principal.
|
webapp_name
-
/ required
|
|
Web app name which this deployment slot belongs to.
|