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 0.0.1 of azure.azcollection
|
|
Azure AD authority url. Use when authenticating with Username/password, and has your own ADFS authority.
|
api_profile
string
added in 0.0.1 of azure.azcollection
|
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.
|
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 0.0.1 of azure.azcollection
|
Choices:
auto ←
- cli
- credential_file
- env
- msi
|
Controls the source of the credentials to use for authentication.
Can also be set via the ANSIBLE_AZURE_AUTH_SOURCE environment variable.
When set to auto (the default) the precedence is module parameters -> env -> credential_file -> cli .
When set to env , the credentials will be read from the environment variables
When set to credential_file , it will read the profile from ~/.azure/credentials .
When set to cli , the credentials will be sources from the Azure CLI profile. subscription_id or the environment variable AZURE_SUBSCRIPTION_ID can be used to identify the subscription ID if more than one is present otherwise the default az cli subscription is used.
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.
|
cert_validation_mode
string
added in 0.0.1 of azure.azcollection
|
|
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 0.0.1 of azure.azcollection
|
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.
|
enabled
boolean
|
|
Specifies whether automatic scaling is enabled for the resource.
|
location
string
|
|
location of the resource.
|
name
string
/ required
|
|
name of the resource.
|
notifications
string
|
|
The collection of notifications.
|
|
custom_emails
string
|
|
The custom e-mails list. This value can be null or empty, in which case this attribute will be ignored.
|
|
send_to_subscription_administrator
boolean
|
|
A value indicating whether to send email to subscription administrator.
|
|
send_to_subscription_co_administrators
boolean
|
|
A value indicating whether to send email to subscription co-administrators.
|
|
webhooks
string
|
|
The list of webhook notifications service uri.
|
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.
|
profiles
string
|
|
The collection of automatic scaling profiles that specify different scaling parameters for different time periods.
A maximum of 20 profiles can be specified.
|
|
count
string
/ required
|
|
The number of instances that will be set if metrics are not available for evaluation.
The default is only used if the current instance count is lower than the default.
|
|
fixed_date_end
string
|
|
The specific date-time end for the profile.
This element is not used if the Recurrence element is used.
|
|
fixed_date_start
string
|
|
The specific date-time start for the profile.
This element is not used if the Recurrence element is used.
|
|
fixed_date_timezone
string
|
|
The specific date-time timezone for the profile.
This element is not used if the Recurrence element is used.
|
|
max_count
string
|
|
The maximum number of instances for the resource.
The actual maximum number of instances is limited by the cores that are available in the subscription.
|
|
min_count
string
|
|
The minimum number of instances for the resource.
|
|
name
string
/ required
|
|
The name of the profile.
|
|
recurrence_days
string
|
|
The days of repeating times at which this profile begins.
This element is not used if the FixedDate element is used.
|
|
recurrence_frequency
string
|
Choices:
None ←
- Second
- Minute
- Hour
- Day
- Week
- Month
- Year
|
How often the schedule profile should take effect.
If this value is Week , meaning each week will have the same set of profiles.
This element is not used if the FixedDate element is used.
|
|
recurrence_hours
string
|
|
The hours of repeating times at which this profile begins.
This element is not used if the FixedDate element is used.
|
|
recurrence_mins
string
|
|
The mins of repeating times at which this profile begins.
This element is not used if the FixedDate element is used.
|
|
recurrence_timezone
string
|
|
The timezone of repeating times at which this profile begins.
This element is not used if the FixedDate element is used.
|
|
rules
string
|
|
The collection of rules that provide the triggers and parameters for the scaling action.
A maximum of 10 rules can be specified.
|
|
|
cooldown
string
|
|
The amount of time (minutes) to wait since the last scaling action before this action occurs.
It must be between 1 ~ 10080.
|
|
|
direction
string
|
Choices:
- Increase
- Decrease
|
Whether the scaling action increases or decreases the number of instances.
|
|
|
metric_name
string
/ required
|
|
The name of the metric that defines what the rule monitors.
|
|
|
metric_resource_uri
string
|
|
The resource identifier of the resource the rule monitors.
|
|
|
operator
string
|
Choices:
- Equals
- NotEquals
GreaterThan ←
- GreaterThanOrEqual
- LessThan
- LessThanOrEqual
|
The operator that is used to compare the metric data and the threshold.
|
|
|
statistic
string
|
Choices:
Average ←
- Min
- Max
- Sum
|
How the metrics from multiple instances are combined.
|
|
|
threshold
string
|
Default:
70
|
The threshold of the metric that triggers the scale action.
|
|
|
time_aggregation
string
|
Choices:
Average ←
- Minimum
- Maximum
- Total
- Count
|
How the data that is collected should be combined over time.
|
|
|
time_grain
string
/ required
|
|
The granularity(minutes) of metrics the rule monitors.
Must be one of the predefined values returned from metric definitions for the metric.
Must be between 1 ~ 720.
|
|
|
time_window
string
/ required
|
|
The range of time(minutes) in which instance data is collected.
This value must be greater than the delay in metric collection, which can vary from resource-to-resource.
Must be between 5 ~ 720.
|
|
|
type
string
|
Choices:
- PercentChangeCount
- ExactCount
- ChangeCount
|
The type of action that should occur when the scale rule fires.
|
|
|
value
string
|
|
The number of instances that are involved in the scaling action.
This value must be 1 or greater.
|
resource_group
string
/ required
|
|
Resource group of the resource.
|
secret
string
|
|
Azure client secret. Use when authenticating with a Service Principal.
|
state
string
|
Choices:
present ←
- absent
|
Assert the state of the virtual network. Use present to create or update and absent to delete.
|
subscription_id
string
|
|
Your Azure subscription Id.
|
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.
|
target
string
|
|
The identifier of the resource to apply autoscale setting.
It could be the resource id string.
It also could be a dict contains the name , subscription_id , namespace , types , resource_group of the resource.
|
tenant
string
|
|
Azure tenant ID. Use when authenticating with a Service Principal.
|