From fe69049a4d36b67cc29df156d3ec834b0308fe6a Mon Sep 17 00:00:00 2001 From: Arvind Shyamsundar Date: Thu, 23 Nov 2023 14:30:30 -0800 Subject: [PATCH] Use account_type in Azure azure_rm_storageaccount The change in #437 to use azure_rm_storageaccount to create the ADLS Gen2 storage account used a deprecated property `type` to specify the storage account type. In this PR we change that to `account_type`. --- ansible/roles/azure/tasks/create_adlsgen2.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/roles/azure/tasks/create_adlsgen2.yml b/ansible/roles/azure/tasks/create_adlsgen2.yml index d4fedd0..372b50f 100644 --- a/ansible/roles/azure/tasks/create_adlsgen2.yml +++ b/ansible/roles/azure/tasks/create_adlsgen2.yml @@ -76,12 +76,12 @@ line: "instance_volumes_adls = {{ InstanceVolumes|join(',') }}" # Not registering variable because storage values are not visible immediately -- name: Create ADLS Gen2 storage account using REST API +- name: Create ADLS Gen2 storage account azure.azcollection.azure_rm_storageaccount: state: present resource_group: "{{ resource_group }}" name: "{{ item.split('@')[1].split('.')[0] }}" - type: "{{ adls_storage_type }}" + account_type: "{{ adls_storage_type }}" kind: "StorageV2" is_hns_enabled: True location: "{{ location }}"