Skip to content

Commit 39bdcc1

Browse files
dguidoclaude
andauthored
Migrate Azure module to azure.azcollection (#14909)
* Migrate Azure module to azure.azcollection Replace deprecated azure_rm_deployment module with FQCN: - azure_rm_deployment → azure.azcollection.azure_rm_deployment Changes: - Add azure.azcollection (>=3.0.0) to requirements.yml - Update roles/cloud-azure/tasks/main.yml to use FQCN No parameter changes needed - the collection module supports all existing parameters via aliases (deployment_name, resource_group_name, client_id, secret, tenant, subscription_id). Closes #14904 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * Fix trailing comma in Azure deployment template Remove invalid trailing comma in outputs section (line 222). This was a pre-existing JSON syntax error. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
1 parent 42aa65d commit 39bdcc1

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

requirements.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ collections:
1414
version: ">=0.41.0"
1515
- name: community.digitalocean
1616
version: ">=1.26.0"
17+
- name: azure.azcollection
18+
version: ">=3.0.0"

roles/cloud-azure/files/deployment.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@
219219
"outputs": {
220220
"publicIPAddresses": {
221221
"type": "string",
222-
"value": "[reference(resourceId('Microsoft.Network/publicIPAddresses',resourceGroup().name),providers('Microsoft.Network', 'publicIPAddresses').apiVersions[0]).ipAddress]",
222+
"value": "[reference(resourceId('Microsoft.Network/publicIPAddresses',resourceGroup().name),providers('Microsoft.Network', 'publicIPAddresses').apiVersions[0]).ipAddress]"
223223
}
224224
}
225225
}

roles/cloud-azure/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{% if region is defined %}{{ region }}{%- elif _algo_region.user_input %}{{ azure_regions[_algo_region.user_input | int - 1]['name'] }}{%- else %}{{ azure_regions[default_region | int - 1]['name'] }}{% endif %}
88
99
- name: Create AlgoVPN Server
10-
azure_rm_deployment:
10+
azure.azcollection.azure_rm_deployment:
1111
state: present
1212
deployment_name: "{{ algo_server_name }}"
1313
template: "{{ lookup('file', role_path + '/files/deployment.json') }}"

0 commit comments

Comments
 (0)