improving consistency of azure examples/documentaion - 3 (#52573)
* normalizing example naming conventions 3 * fixed line too long
This commit is contained in:
parent
991af9ca73
commit
d01d94c1f9
24 changed files with 85 additions and 78 deletions
|
@ -144,14 +144,14 @@ author:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: Create (or update) SQL Database
|
- name: Create (or update) SQL Database
|
||||||
azure_rm_sqldatabase:
|
azure_rm_sqldatabase:
|
||||||
resource_group: sqlcrudtest-4799
|
resource_group: myResourceGroup
|
||||||
server_name: sqlcrudtest-5961
|
server_name: sqlcrudtest-5961
|
||||||
name: testdb
|
name: testdb
|
||||||
location: eastus
|
location: eastus
|
||||||
|
|
||||||
- name: Restore SQL Database
|
- name: Restore SQL Database
|
||||||
azure_rm_sqldatabase:
|
azure_rm_sqldatabase:
|
||||||
resource_group: sqlcrudtest-4799
|
resource_group: myResourceGroup
|
||||||
server_name: sqlcrudtest-5961
|
server_name: sqlcrudtest-5961
|
||||||
name: restoreddb
|
name: restoreddb
|
||||||
location: eastus
|
location: eastus
|
||||||
|
@ -161,12 +161,12 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: Create SQL Database in Copy Mode
|
- name: Create SQL Database in Copy Mode
|
||||||
azure_rm_sqldatabase:
|
azure_rm_sqldatabase:
|
||||||
resource_group: sqlcrudtest-4799
|
resource_group: myResourceGroup
|
||||||
server_name: sqlcrudtest-5961
|
server_name: sqlcrudtest-5961
|
||||||
name: copydb
|
name: copydb
|
||||||
location: eastus
|
location: eastus
|
||||||
create_mode: copy
|
create_mode: copy
|
||||||
source_database_id: "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/servers/tests
|
source_database_id: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Sql/servers/tests
|
||||||
vr/databases/testdb"
|
vr/databases/testdb"
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
@ -177,7 +177,7 @@ id:
|
||||||
- Resource ID.
|
- Resource ID.
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4799/providers/Microsoft.Sql/servers/sqlcrudtest-5961/databases/t
|
sample: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Sql/servers/sqlcrudtest-5961/databases/t
|
||||||
estdb"
|
estdb"
|
||||||
database_id:
|
database_id:
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -60,7 +60,7 @@ author:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: Create (or update) Firewall Rule
|
- name: Create (or update) Firewall Rule
|
||||||
azure_rm_sqlfirewallrule:
|
azure_rm_sqlfirewallrule:
|
||||||
resource_group: firewallrulecrudtest-12
|
resource_group: myResourceGroup
|
||||||
server_name: firewallrulecrudtest-6285
|
server_name: firewallrulecrudtest-6285
|
||||||
name: firewallrulecrudtest-5370
|
name: firewallrulecrudtest-5370
|
||||||
start_ip_address: 172.28.10.136
|
start_ip_address: 172.28.10.136
|
||||||
|
@ -73,7 +73,7 @@ id:
|
||||||
- Resource ID.
|
- Resource ID.
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/firewallrulecrudtest-12/providers/Microsoft.Sql/servers/firewallrulecrudtest-628
|
sample: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Sql/servers/firewallrulecrudtest-628
|
||||||
5/firewallRules/firewallrulecrudtest-5370"
|
5/firewallRules/firewallrulecrudtest-5370"
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
|
@ -45,13 +45,13 @@ author:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: Get instance of SQL Firewall Rule
|
- name: Get instance of SQL Firewall Rule
|
||||||
azure_rm_sqlfirewallrule_facts:
|
azure_rm_sqlfirewallrule_facts:
|
||||||
resource_group: testgroup
|
resource_group: myResourceGroup
|
||||||
server_name: testserver
|
server_name: testserver
|
||||||
name: testrule
|
name: testrule
|
||||||
|
|
||||||
- name: List instances of SQL Firewall Rule
|
- name: List instances of SQL Firewall Rule
|
||||||
azure_rm_sqlfirewallrule_facts:
|
azure_rm_sqlfirewallrule_facts:
|
||||||
resource_group: testgroup
|
resource_group: myResourceGroup
|
||||||
server_name: testserver
|
server_name: testserver
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ rules:
|
||||||
- Resource ID
|
- Resource ID
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: "/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/testgroup/providers/Microsoft.Sql/servers/testser
|
sample: "/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Sql/servers/testser
|
||||||
ver/firewallRules/testrule"
|
ver/firewallRules/testrule"
|
||||||
resource_group:
|
resource_group:
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -67,7 +67,7 @@ author:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: Create (or update) SQL Server
|
- name: Create (or update) SQL Server
|
||||||
azure_rm_sqlserver:
|
azure_rm_sqlserver:
|
||||||
resource_group: resource_group
|
resource_group: myResourceGroup
|
||||||
name: server_name
|
name: server_name
|
||||||
location: westus
|
location: westus
|
||||||
admin_username: mylogin
|
admin_username: mylogin
|
||||||
|
@ -80,7 +80,7 @@ id:
|
||||||
- Resource ID.
|
- Resource ID.
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/servers/sqlcrudtest-4645
|
sample: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Sql/servers/sqlcrudtest-4645
|
||||||
version:
|
version:
|
||||||
description:
|
description:
|
||||||
- The version of the server.
|
- The version of the server.
|
||||||
|
|
|
@ -42,12 +42,12 @@ author:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: Get instance of SQL Server
|
- name: Get instance of SQL Server
|
||||||
azure_rm_sqlserver_facts:
|
azure_rm_sqlserver_facts:
|
||||||
resource_group: resource_group_name
|
resource_group: myResourceGroup
|
||||||
server_name: server_name
|
server_name: server_name
|
||||||
|
|
||||||
- name: List instances of SQL Server
|
- name: List instances of SQL Server
|
||||||
azure_rm_sqlserver_facts:
|
azure_rm_sqlserver_facts:
|
||||||
resource_group: resource_group_name
|
resource_group: myResourceGroup
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
@ -65,7 +65,7 @@ servers:
|
||||||
- Resource ID.
|
- Resource ID.
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Sql/servers/sqlcrudtest-4645
|
sample: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Sql/servers/sqlcrudtest-4645
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
- Resource name.
|
- Resource name.
|
||||||
|
|
|
@ -139,13 +139,13 @@ author:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: remove account, if it exists
|
- name: remove account, if it exists
|
||||||
azure_rm_storageaccount:
|
azure_rm_storageaccount:
|
||||||
resource_group: Testing
|
resource_group: myResourceGroup
|
||||||
name: clh0002
|
name: clh0002
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
- name: create an account
|
- name: create an account
|
||||||
azure_rm_storageaccount:
|
azure_rm_storageaccount:
|
||||||
resource_group: Testing
|
resource_group: myResourceGroup
|
||||||
name: clh0002
|
name: clh0002
|
||||||
type: Standard_RAGRS
|
type: Standard_RAGRS
|
||||||
tags:
|
tags:
|
||||||
|
@ -154,7 +154,7 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: create an account with blob CORS
|
- name: create an account with blob CORS
|
||||||
azure_rm_storageaccount:
|
azure_rm_storageaccount:
|
||||||
resource_group: Testing
|
resource_group: myResourceGroup
|
||||||
name: clh002
|
name: clh002
|
||||||
type: Standard_RAGRS
|
type: Standard_RAGRS
|
||||||
blob_cors:
|
blob_cors:
|
||||||
|
|
|
@ -62,12 +62,12 @@ author:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: Get facts for one account
|
- name: Get facts for one account
|
||||||
azure_rm_storageaccount_facts:
|
azure_rm_storageaccount_facts:
|
||||||
resource_group: Testing
|
resource_group: myResourceGroup
|
||||||
name: clh0002
|
name: clh0002
|
||||||
|
|
||||||
- name: Get facts for all accounts in a resource group
|
- name: Get facts for all accounts in a resource group
|
||||||
azure_rm_storageaccount_facts:
|
azure_rm_storageaccount_facts:
|
||||||
resource_group: Testing
|
resource_group: myResourceGroup
|
||||||
|
|
||||||
- name: Get facts for all accounts by tags
|
- name: Get facts for all accounts by tags
|
||||||
azure_rm_storageaccount_facts:
|
azure_rm_storageaccount_facts:
|
||||||
|
@ -109,7 +109,8 @@ storageaccounts:
|
||||||
id:
|
id:
|
||||||
description:
|
description:
|
||||||
- Resource ID.
|
- Resource ID.
|
||||||
sample: "/subscriptions/XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX/resourceGroups/testing/providers/Microsoft.Storage/storageAccounts/testaccount001"
|
sample: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/t
|
||||||
|
estaccount001"
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
- Name of the storage account to update or create.
|
- Name of the storage account to update or create.
|
||||||
|
|
|
@ -125,14 +125,14 @@ author:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: Remove container foo
|
- name: Remove container foo
|
||||||
azure_rm_storageblob:
|
azure_rm_storageblob:
|
||||||
resource_group: testing
|
resource_group: myResourceGroup
|
||||||
storage_account_name: clh0002
|
storage_account_name: clh0002
|
||||||
container: foo
|
container: foo
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
- name: Create container foo and upload a file
|
- name: Create container foo and upload a file
|
||||||
azure_rm_storageblob:
|
azure_rm_storageblob:
|
||||||
resource_group: Testing
|
resource_group: myResourceGroup
|
||||||
storage_account_name: clh0002
|
storage_account_name: clh0002
|
||||||
container: foo
|
container: foo
|
||||||
blob: graylog.png
|
blob: graylog.png
|
||||||
|
@ -142,7 +142,7 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: Download the file
|
- name: Download the file
|
||||||
azure_rm_storageblob:
|
azure_rm_storageblob:
|
||||||
resource_group: Testing
|
resource_group: myResourceGroup
|
||||||
storage_account_name: clh0002
|
storage_account_name: clh0002
|
||||||
container: foo
|
container: foo
|
||||||
blob: graylog.png
|
blob: graylog.png
|
||||||
|
|
|
@ -98,25 +98,25 @@ EXAMPLES = '''
|
||||||
azure_rm_subnet:
|
azure_rm_subnet:
|
||||||
name: foobar
|
name: foobar
|
||||||
virtual_network_name: My_Virtual_Network
|
virtual_network_name: My_Virtual_Network
|
||||||
resource_group: Testing
|
resource_group: myResourceGroup
|
||||||
address_prefix_cidr: "10.1.0.0/24"
|
address_prefix_cidr: "10.1.0.0/24"
|
||||||
|
|
||||||
- name: Create a subnet refer nsg from other resource group
|
- name: Create a subnet refer nsg from other resource group
|
||||||
azure_rm_subnet:
|
azure_rm_subnet:
|
||||||
name: foobar
|
name: foobar
|
||||||
virtual_network_name: My_Virtual_Network
|
virtual_network_name: My_Virtual_Network
|
||||||
resource_group: Testing
|
resource_group: myResourceGroup
|
||||||
address_prefix_cidr: "10.1.0.0/16"
|
address_prefix_cidr: "10.1.0.0/16"
|
||||||
security_group:
|
security_group:
|
||||||
name: secgroupfoo
|
name: secgroupfoo
|
||||||
resource_group: Testing1
|
resource_group: mySecondResourceGroup
|
||||||
route_table: route
|
route_table: route
|
||||||
|
|
||||||
- name: Delete a subnet
|
- name: Delete a subnet
|
||||||
azure_rm_subnet:
|
azure_rm_subnet:
|
||||||
name: foobar
|
name: foobar
|
||||||
virtual_network_name: My_Virtual_Network
|
virtual_network_name: My_Virtual_Network
|
||||||
resource_group: Testing
|
resource_group: myResourceGroup
|
||||||
state: absent
|
state: absent
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
|
@ -54,12 +54,12 @@ author:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: Get endpoints facts of a Traffic Manager profile
|
- name: Get endpoints facts of a Traffic Manager profile
|
||||||
azure_rm_trafficmanagerendpoint_facts:
|
azure_rm_trafficmanagerendpoint_facts:
|
||||||
resource_group: TestRG
|
resource_group: myResourceGroup
|
||||||
profile_name: Testing
|
profile_name: Testing
|
||||||
|
|
||||||
- name: Get specific endpoint of a Traffic Manager profile
|
- name: Get specific endpoint of a Traffic Manager profile
|
||||||
azure_rm_trafficmanager_facts:
|
azure_rm_trafficmanager_facts:
|
||||||
resource_group: TestRG
|
resource_group: myResourceGroup
|
||||||
profile_name: Testing
|
profile_name: Testing
|
||||||
name: test_external_endpoint
|
name: test_external_endpoint
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ endpoints:
|
||||||
- Name of a resource group.
|
- Name of a resource group.
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: testGroup
|
sample: myResourceGroup
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
- Name of the Traffic Manager endpoint.
|
- Name of the Traffic Manager endpoint.
|
||||||
|
@ -92,7 +92,7 @@ endpoints:
|
||||||
description:
|
description:
|
||||||
- The Azure Resource URI of the of the endpoint.
|
- The Azure Resource URI of the of the endpoint.
|
||||||
type: str
|
type: str
|
||||||
sample: /subscriptions/XXXXXX...XXXXXXXXX/resourceGroups/vscjavaci/providers/Microsoft.ClassicCompute/domainNames/vscjavaci
|
sample: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.ClassicCompute/domainNames/vscjavaci
|
||||||
target:
|
target:
|
||||||
description:
|
description:
|
||||||
- The fully-qualified DNS name of the endpoint.
|
- The fully-qualified DNS name of the endpoint.
|
||||||
|
|
|
@ -113,7 +113,7 @@ EXAMPLES = '''
|
||||||
- name: Create a Traffic Manager Profile
|
- name: Create a Traffic Manager Profile
|
||||||
azure_rm_trafficmanagerprofile:
|
azure_rm_trafficmanagerprofile:
|
||||||
name: tmtest
|
name: tmtest
|
||||||
resource_group: tmt
|
resource_group: myResourceGroup
|
||||||
location: global
|
location: global
|
||||||
profile_status: enabled
|
profile_status: enabled
|
||||||
routing_method: priority
|
routing_method: priority
|
||||||
|
@ -131,7 +131,7 @@ EXAMPLES = '''
|
||||||
azure_rm_trafficmanagerprofile:
|
azure_rm_trafficmanagerprofile:
|
||||||
state: absent
|
state: absent
|
||||||
name: tmtest
|
name: tmtest
|
||||||
resource_group: tmt
|
resource_group: myResourceGroup
|
||||||
'''
|
'''
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
id:
|
id:
|
||||||
|
|
|
@ -46,7 +46,7 @@ EXAMPLES = '''
|
||||||
- name: Get facts for one Traffic Manager profile
|
- name: Get facts for one Traffic Manager profile
|
||||||
azure_rm_trafficmanager_facts:
|
azure_rm_trafficmanager_facts:
|
||||||
name: Testing
|
name: Testing
|
||||||
resource_group: TestRG
|
resource_group: myResourceGroup
|
||||||
|
|
||||||
- name: Get facts for all Traffic Manager profiles
|
- name: Get facts for all Traffic Manager profiles
|
||||||
azure_rm_trafficmanager_facts:
|
azure_rm_trafficmanager_facts:
|
||||||
|
@ -148,7 +148,8 @@ tms:
|
||||||
description:
|
description:
|
||||||
- Fully qualified resource Id for the resource.
|
- Fully qualified resource Id for the resource.
|
||||||
type: str
|
type: str
|
||||||
sample: /subscriptions/XXXXXX...XXXXXXXXX/resourceGroups/tmt/providers/Microsoft.Network/trafficManagerProfiles/tmtest/externalEndpoints/e1
|
sample: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Network/trafficMan
|
||||||
|
agerProfiles/tmtest/externalEndpoints/e1"
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
- The name of the endpoint.
|
- The name of the endpoint.
|
||||||
|
@ -163,7 +164,8 @@ tms:
|
||||||
description:
|
description:
|
||||||
- The Azure Resource URI of the of the endpoint.
|
- The Azure Resource URI of the of the endpoint.
|
||||||
type: str
|
type: str
|
||||||
sample: /subscriptions/XXXXXX...XXXXXXXXX/resourceGroups/vscjavaci/providers/Microsoft.ClassicCompute/domainNames/vscjavaci
|
sample: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.ClassicCompute/dom
|
||||||
|
ainNames/vscjavaci"
|
||||||
target:
|
target:
|
||||||
description:
|
description:
|
||||||
- The fully-qualified DNS name of the endpoint.
|
- The fully-qualified DNS name of the endpoint.
|
||||||
|
|
|
@ -80,7 +80,7 @@ EXAMPLES = '''
|
||||||
azure_rm_virtualmachine_extension:
|
azure_rm_virtualmachine_extension:
|
||||||
name: myvmextension
|
name: myvmextension
|
||||||
location: eastus
|
location: eastus
|
||||||
resource_group: Testing
|
resource_group: myResourceGroup
|
||||||
virtual_machine_name: myvm
|
virtual_machine_name: myvm
|
||||||
publisher: Microsoft.Azure.Extensions
|
publisher: Microsoft.Azure.Extensions
|
||||||
virtual_machine_extension_type: CustomScript
|
virtual_machine_extension_type: CustomScript
|
||||||
|
@ -92,7 +92,7 @@ EXAMPLES = '''
|
||||||
azure_rm_virtualmachine_extension:
|
azure_rm_virtualmachine_extension:
|
||||||
name: myvmextension
|
name: myvmextension
|
||||||
location: eastus
|
location: eastus
|
||||||
resource_group: Testing
|
resource_group: myResourceGroup
|
||||||
virtual_machine_name: myvm
|
virtual_machine_name: myvm
|
||||||
state: absent
|
state: absent
|
||||||
'''
|
'''
|
||||||
|
|
|
@ -49,16 +49,16 @@ author:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: Get facts for all virtual machines of a resource group
|
- name: Get facts for all virtual machines of a resource group
|
||||||
azure_rm_virtualmachine_facts:
|
azure_rm_virtualmachine_facts:
|
||||||
resource_group: Testing
|
resource_group: myResourceGroup
|
||||||
|
|
||||||
- name: Get facts by name
|
- name: Get facts by name
|
||||||
azure_rm_virtualmachine_facts:
|
azure_rm_virtualmachine_facts:
|
||||||
resource_group: Testing
|
resource_group: myResourceGroup
|
||||||
name: vm
|
name: vm
|
||||||
|
|
||||||
- name: Get facts by tags
|
- name: Get facts by tags
|
||||||
azure_rm_virtualmachine_facts:
|
azure_rm_virtualmachine_facts:
|
||||||
resource_group: Testing
|
resource_group: myResourceGroup
|
||||||
tags:
|
tags:
|
||||||
- testing
|
- testing
|
||||||
- foo:bar
|
- foo:bar
|
||||||
|
@ -107,7 +107,8 @@ vms:
|
||||||
- Resource ID.
|
- Resource ID.
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: /subscriptions/xxxx/resourceGroups/myclusterrg/providers/Microsoft.Compute/virtualMachines/mycluster-node-2
|
sample: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/my
|
||||||
|
cluster-node-2"
|
||||||
image:
|
image:
|
||||||
description:
|
description:
|
||||||
- Image specification
|
- Image specification
|
||||||
|
@ -167,6 +168,7 @@ vms:
|
||||||
description:
|
description:
|
||||||
- Resource group.
|
- Resource group.
|
||||||
type: str
|
type: str
|
||||||
|
sample: myResourceGroup
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- State of the resource.
|
- State of the resource.
|
||||||
|
|
|
@ -227,7 +227,7 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: Create VMSS
|
- name: Create VMSS
|
||||||
azure_rm_virtualmachine_scaleset:
|
azure_rm_virtualmachine_scaleset:
|
||||||
resource_group: Testing
|
resource_group: myResourceGroup
|
||||||
name: testvmss
|
name: testvmss
|
||||||
vm_size: Standard_DS1_v2
|
vm_size: Standard_DS1_v2
|
||||||
capacity: 2
|
capacity: 2
|
||||||
|
@ -252,7 +252,7 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: Create a VMSS with a custom image
|
- name: Create a VMSS with a custom image
|
||||||
azure_rm_virtualmachine_scaleset:
|
azure_rm_virtualmachine_scaleset:
|
||||||
resource_group: Testing
|
resource_group: myResourceGroup
|
||||||
name: testvmss
|
name: testvmss
|
||||||
vm_size: Standard_DS1_v2
|
vm_size: Standard_DS1_v2
|
||||||
capacity: 2
|
capacity: 2
|
||||||
|
@ -265,7 +265,7 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: Create a VMSS with a custom image from a particular resource group
|
- name: Create a VMSS with a custom image from a particular resource group
|
||||||
azure_rm_virtualmachine_scaleset:
|
azure_rm_virtualmachine_scaleset:
|
||||||
resource_group: Testing
|
resource_group: myResourceGroup
|
||||||
name: testvmss
|
name: testvmss
|
||||||
vm_size: Standard_DS1_v2
|
vm_size: Standard_DS1_v2
|
||||||
capacity: 2
|
capacity: 2
|
||||||
|
|
|
@ -55,17 +55,17 @@ author:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: Get facts for a virtual machine scale set
|
- name: Get facts for a virtual machine scale set
|
||||||
azure_rm_virtualmachine_scaleset_facts:
|
azure_rm_virtualmachine_scaleset_facts:
|
||||||
resource_group: Testing
|
resource_group: myResourceGroup
|
||||||
name: testvmss001
|
name: testvmss001
|
||||||
format: curated
|
format: curated
|
||||||
|
|
||||||
- name: Get facts for all virtual networks
|
- name: Get facts for all virtual networks
|
||||||
azure_rm_virtualmachine_scaleset_facts:
|
azure_rm_virtualmachine_scaleset_facts:
|
||||||
resource_group: Testing
|
resource_group: myResourceGroup
|
||||||
|
|
||||||
- name: Get facts by tags
|
- name: Get facts by tags
|
||||||
azure_rm_virtualmachine_scaleset_facts:
|
azure_rm_virtualmachine_scaleset_facts:
|
||||||
resource_group: Testing
|
resource_group: myResourceGroup
|
||||||
tags:
|
tags:
|
||||||
- testing
|
- testing
|
||||||
'''
|
'''
|
||||||
|
@ -81,7 +81,7 @@ vmss:
|
||||||
- Resource ID
|
- Resource ID
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/TestGroup/providers/Microsoft.Compute/scalesets/myscaleset
|
sample: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Compute/scalesets/myscaleset
|
||||||
admin_username:
|
admin_username:
|
||||||
description:
|
description:
|
||||||
- Admin username used to access the host after it is created.
|
- Admin username used to access the host after it is created.
|
||||||
|
@ -192,7 +192,7 @@ vmss:
|
||||||
- Resource group.
|
- Resource group.
|
||||||
type: str
|
type: str
|
||||||
returned: always
|
returned: always
|
||||||
sample: testrg
|
sample: myResourceGroup
|
||||||
ssh_password_enabled:
|
ssh_password_enabled:
|
||||||
description:
|
description:
|
||||||
- Is SSH password authentication enabled. Valid only for Linux.
|
- Is SSH password authentication enabled. Valid only for Linux.
|
||||||
|
|
|
@ -48,13 +48,13 @@ author:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: Get information on specific Virtual Machine Extension
|
- name: Get information on specific Virtual Machine Extension
|
||||||
azure_rm_virtualmachineextension_facts:
|
azure_rm_virtualmachineextension_facts:
|
||||||
resource_group: myrg
|
resource_group: myResourceGroup
|
||||||
virtual_machine_name: myvm
|
virtual_machine_name: myvm
|
||||||
name: myextension
|
name: myextension
|
||||||
|
|
||||||
- name: List installed Virtual Machine Extensions
|
- name: List installed Virtual Machine Extensions
|
||||||
azure_rm_virtualmachineextension_facts:
|
azure_rm_virtualmachineextension_facts:
|
||||||
resource_group: myrg
|
resource_group: myResourceGroup
|
||||||
virtual_machine_name: myvm
|
virtual_machine_name: myvm
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
@ -69,13 +69,14 @@ extensions:
|
||||||
- Resource Id
|
- Resource Id
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myrg/providers/Microsoft.Compute/myvm/testVM/extensions/myextension
|
sample: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Compute/myvm/testVM/extens
|
||||||
|
ions/myextension"
|
||||||
resource_group:
|
resource_group:
|
||||||
description:
|
description:
|
||||||
- Resource group name
|
- Resource group name
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: myrg
|
sample: myResourceGroup
|
||||||
virtual_machine_name:
|
virtual_machine_name:
|
||||||
description:
|
description:
|
||||||
- Virtual machine name
|
- Virtual machine name
|
||||||
|
|
|
@ -84,7 +84,7 @@ EXAMPLES = '''
|
||||||
azure_rm_virtualmachinescalesetextension:
|
azure_rm_virtualmachinescalesetextension:
|
||||||
name: myvmssextension
|
name: myvmssextension
|
||||||
location: eastus
|
location: eastus
|
||||||
resource_group: Testing
|
resource_group: myResourceGroup
|
||||||
vmss_name: myvm
|
vmss_name: myvm
|
||||||
publisher: Microsoft.Azure.Extensions
|
publisher: Microsoft.Azure.Extensions
|
||||||
type: CustomScript
|
type: CustomScript
|
||||||
|
@ -96,7 +96,7 @@ EXAMPLES = '''
|
||||||
azure_rm_virtualmachinescalesetextension:
|
azure_rm_virtualmachinescalesetextension:
|
||||||
name: myvmssextension
|
name: myvmssextension
|
||||||
location: eastus
|
location: eastus
|
||||||
resource_group: Testing
|
resource_group: myResourceGroup
|
||||||
vmss_name: myvm
|
vmss_name: myvm
|
||||||
state: absent
|
state: absent
|
||||||
'''
|
'''
|
||||||
|
@ -107,7 +107,7 @@ id:
|
||||||
- VMSS extension resource ID
|
- VMSS extension resource ID
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/TestGroup/providers/Microsoft.Compute/scalesets/myscaleset/extensions/myext
|
sample: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Compute/scalesets/myscaleset/extensions/myext
|
||||||
'''
|
'''
|
||||||
|
|
||||||
from ansible.module_utils.azure_rm_common import AzureRMModuleBase
|
from ansible.module_utils.azure_rm_common import AzureRMModuleBase
|
||||||
|
|
|
@ -45,7 +45,7 @@ author:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: Get information on specific Virtual Machine Scale Set Extension
|
- name: Get information on specific Virtual Machine Scale Set Extension
|
||||||
azure_rm_virtualmachineextension_facts:
|
azure_rm_virtualmachineextension_facts:
|
||||||
resource_group: myrg
|
resource_group: myResourceGroup
|
||||||
vmss_name: myvmss
|
vmss_name: myvmss
|
||||||
name: myextension
|
name: myextension
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ extensions:
|
||||||
- Resource Id
|
- Resource Id
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myrg/providers/Microsoft.Compute/virtualMachineScaleSets/
|
sample: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/
|
||||||
myvmss/extensions/myextension"
|
myvmss/extensions/myextension"
|
||||||
resource_group:
|
resource_group:
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -82,7 +82,7 @@ EXAMPLES = '''
|
||||||
- name: Create a virtual network
|
- name: Create a virtual network
|
||||||
azure_rm_virtualnetwork:
|
azure_rm_virtualnetwork:
|
||||||
name: foobar
|
name: foobar
|
||||||
resource_group: Testing
|
resource_group: myResourceGroup
|
||||||
address_prefixes_cidr:
|
address_prefixes_cidr:
|
||||||
- "10.1.0.0/16"
|
- "10.1.0.0/16"
|
||||||
- "172.100.0.0/16"
|
- "172.100.0.0/16"
|
||||||
|
@ -96,7 +96,7 @@ EXAMPLES = '''
|
||||||
- name: Delete a virtual network
|
- name: Delete a virtual network
|
||||||
azure_rm_virtualnetwork:
|
azure_rm_virtualnetwork:
|
||||||
name: foobar
|
name: foobar
|
||||||
resource_group: Testing
|
resource_group: myResourceGroup
|
||||||
state: absent
|
state: absent
|
||||||
'''
|
'''
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
|
|
|
@ -48,12 +48,12 @@ author:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: Get facts for one virtual network
|
- name: Get facts for one virtual network
|
||||||
azure_rm_virtualnetwork_facts:
|
azure_rm_virtualnetwork_facts:
|
||||||
resource_group: Testing
|
resource_group: myResourceGroup
|
||||||
name: secgroup001
|
name: secgroup001
|
||||||
|
|
||||||
- name: Get facts for all virtual networks
|
- name: Get facts for all virtual networks
|
||||||
azure_rm_virtualnetwork_facts:
|
azure_rm_virtualnetwork_facts:
|
||||||
resource_group: Testing
|
resource_group: myResourceGroup
|
||||||
|
|
||||||
- name: Get facts by tags
|
- name: Get facts by tags
|
||||||
azure_rm_virtualnetwork_facts:
|
azure_rm_virtualnetwork_facts:
|
||||||
|
@ -90,7 +90,7 @@ virtualnetworks:
|
||||||
id:
|
id:
|
||||||
description:
|
description:
|
||||||
- Resource ID.
|
- Resource ID.
|
||||||
sample: /subscriptions/XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX/resourceGroups/Testing/providers/Microsoft.Network/virtualNetworks/vnet2001
|
sample: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/vnet2001
|
||||||
type: str
|
type: str
|
||||||
address_prefixes:
|
address_prefixes:
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -80,18 +80,18 @@ author:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: Create virtual network peering
|
- name: Create virtual network peering
|
||||||
azure_rm_virtualnetworkpeering:
|
azure_rm_virtualnetworkpeering:
|
||||||
resource_group: myResourceGroup1
|
resource_group: myResourceGroup
|
||||||
name: vnet_peer1
|
name: vnet_peer1
|
||||||
virtual_network: myVnet1
|
virtual_network: myVnet1
|
||||||
remote_virtual_network:
|
remote_virtual_network:
|
||||||
resource_group: myResourceGroup2
|
resource_group: mySecondResourceGroup
|
||||||
name: myVnet2
|
name: myVnet2
|
||||||
allow_virtual_network_access: false
|
allow_virtual_network_access: false
|
||||||
allow_forwarded_traffic: true
|
allow_forwarded_traffic: true
|
||||||
|
|
||||||
- name: Delete the virtual network peering
|
- name: Delete the virtual network peering
|
||||||
azure_rm_virtualnetworkpeering:
|
azure_rm_virtualnetworkpeering:
|
||||||
resource_group: myResourceGroup1
|
resource_group: myResourceGroup
|
||||||
name: vnet_peer1
|
name: vnet_peer1
|
||||||
virtual_network: myVnet1
|
virtual_network: myVnet1
|
||||||
state: absent
|
state: absent
|
||||||
|
|
|
@ -50,12 +50,12 @@ author:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: Get facts for web app by name
|
- name: Get facts for web app by name
|
||||||
azure_rm_webapp_facts:
|
azure_rm_webapp_facts:
|
||||||
resource_group: testrg
|
resource_group: myResourceGroup
|
||||||
name: winwebapp1
|
name: winwebapp1
|
||||||
|
|
||||||
- name: Get facts for web apps in resource group
|
- name: Get facts for web apps in resource group
|
||||||
azure_rm_webapp_facts:
|
azure_rm_webapp_facts:
|
||||||
resource_group: testrg
|
resource_group: myResourceGroup
|
||||||
|
|
||||||
- name: Get facts for web apps with tags
|
- name: Get facts for web apps with tags
|
||||||
azure_rm_webapp_facts:
|
azure_rm_webapp_facts:
|
||||||
|
@ -75,7 +75,7 @@ webapps:
|
||||||
- Id of the web app.
|
- Id of the web app.
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: /subscriptions/xxxx/resourceGroups/xxx/providers/Microsoft.Web/sites/xx
|
sample: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Web/sites/xx
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
- Name of the web app.
|
- Name of the web app.
|
||||||
|
@ -86,6 +86,7 @@ webapps:
|
||||||
- Resource group of the web app.
|
- Resource group of the web app.
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
|
sample: myResourceGroup
|
||||||
location:
|
location:
|
||||||
description:
|
description:
|
||||||
- Location of the web app.
|
- Location of the web app.
|
||||||
|
@ -96,7 +97,7 @@ webapps:
|
||||||
- Id of app service plan used by the web app.
|
- Id of app service plan used by the web app.
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: /subscriptions/xxxx/resourceGroups/xxx/providers/Microsoft.Web/serverfarms/xxx
|
sample: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Web/serverfarms/xxx
|
||||||
app_settings:
|
app_settings:
|
||||||
description:
|
description:
|
||||||
- App settings of the application. Only returned when web app has app settings.
|
- App settings of the application. Only returned when web app has app settings.
|
||||||
|
|
|
@ -171,7 +171,7 @@ author:
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: Create a webapp slot
|
- name: Create a webapp slot
|
||||||
azure_rm_webapp_slot:
|
azure_rm_webapp_slot:
|
||||||
resource_group: myRG
|
resource_group: myResourceGroup
|
||||||
webapp_name: myJavaWebApp
|
webapp_name: myJavaWebApp
|
||||||
name: stage
|
name: stage
|
||||||
configuration_source: myJavaWebApp
|
configuration_source: myJavaWebApp
|
||||||
|
@ -180,7 +180,7 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: swap the slot with production slot
|
- name: swap the slot with production slot
|
||||||
azure_rm_webapp_slot:
|
azure_rm_webapp_slot:
|
||||||
resource_group: myRG
|
resource_group: myResourceGroup
|
||||||
webapp_name: myJavaWebApp
|
webapp_name: myJavaWebApp
|
||||||
name: stage
|
name: stage
|
||||||
swap:
|
swap:
|
||||||
|
@ -188,14 +188,14 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: stop the slot
|
- name: stop the slot
|
||||||
azure_rm_webapp_slot:
|
azure_rm_webapp_slot:
|
||||||
resource_group: myRG
|
resource_group: myResourceGroup
|
||||||
webapp_name: myJavaWebApp
|
webapp_name: myJavaWebApp
|
||||||
name: stage
|
name: stage
|
||||||
app_state: stopped
|
app_state: stopped
|
||||||
|
|
||||||
- name: udpate a webapp slot app settings
|
- name: udpate a webapp slot app settings
|
||||||
azure_rm_webapp_slot:
|
azure_rm_webapp_slot:
|
||||||
resource_group: myRG
|
resource_group: myResourceGroup
|
||||||
webapp_name: myJavaWebApp
|
webapp_name: myJavaWebApp
|
||||||
name: stage
|
name: stage
|
||||||
app_settings:
|
app_settings:
|
||||||
|
@ -203,7 +203,7 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: udpate a webapp slot frameworks
|
- name: udpate a webapp slot frameworks
|
||||||
azure_rm_webapp_slot:
|
azure_rm_webapp_slot:
|
||||||
resource_group: myRG
|
resource_group: myResourceGroup
|
||||||
webapp_name: myJavaWebApp
|
webapp_name: myJavaWebApp
|
||||||
name: stage
|
name: stage
|
||||||
frameworks:
|
frameworks:
|
||||||
|
@ -216,7 +216,7 @@ id:
|
||||||
description: Id of current slot.
|
description: Id of current slot.
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: /subscriptions/<subsid>/resourceGroups/myRG/providers/Microsoft.Web/sites/testapp/slots/stage1
|
sample: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Web/sites/testapp/slots/stage1
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import time
|
import time
|
||||||
|
|
Loading…
Reference in a new issue