mirror of
https://github.com/trailofbits/algo.git
synced 2026-08-17 21:25:50 +02:00
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 <noreply@anthropic.com> * 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 <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -14,3 +14,5 @@ collections:
|
||||
version: ">=0.41.0"
|
||||
- name: community.digitalocean
|
||||
version: ">=1.26.0"
|
||||
- name: azure.azcollection
|
||||
version: ">=3.0.0"
|
||||
|
||||
@@ -219,7 +219,7 @@
|
||||
"outputs": {
|
||||
"publicIPAddresses": {
|
||||
"type": "string",
|
||||
"value": "[reference(resourceId('Microsoft.Network/publicIPAddresses',resourceGroup().name),providers('Microsoft.Network', 'publicIPAddresses').apiVersions[0]).ipAddress]",
|
||||
"value": "[reference(resourceId('Microsoft.Network/publicIPAddresses',resourceGroup().name),providers('Microsoft.Network', 'publicIPAddresses').apiVersions[0]).ipAddress]"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
{% 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 %}
|
||||
|
||||
- name: Create AlgoVPN Server
|
||||
azure_rm_deployment:
|
||||
azure.azcollection.azure_rm_deployment:
|
||||
state: present
|
||||
deployment_name: "{{ algo_server_name }}"
|
||||
template: "{{ lookup('file', role_path + '/files/deployment.json') }}"
|
||||
|
||||
Reference in New Issue
Block a user