Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azure_rm_manageddisk: Required parameter 'storageAccountId' is missing (null). #394

Closed
wcushen opened this issue Jan 14, 2021 · 6 comments · Fixed by #877
Closed

azure_rm_manageddisk: Required parameter 'storageAccountId' is missing (null). #394

wcushen opened this issue Jan 14, 2021 · 6 comments · Fixed by #877
Labels
has_pr PR fixes have been made medium_priority Medium priority work in In trying to solve, or in working with contributors

Comments

@wcushen
Copy link

wcushen commented Jan 14, 2021

SUMMARY

When a managed disk is created from a VHD file (imported) from Source URI, the storage account ID is missing.

Currently, there is no parameter in the azure_rm_manageddisk module to include StorageAccountId.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

azure_rm_manageddisk

pip packages installed as per: https://raw.githubusercontent.com/ansible-collections/azure/dev/requirements-azure.txt

ANSIBLE VERSION
ansible 2.10.4
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /var/lib/redhat/env/lib/python2.7/site-packages/ansible
  executable location = /var/lib/redhat/env/bin/ansible
  python version = 2.7.5 (default, Jun 11 2019, 14:33:56) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]

OS / ENVIRONMENT

RHEL 7.7

STEPS TO REPRODUCE
---
- name: example playbook
  hosts: localhost
  gather_facts: no
  tasks:
    - name: Create managed disk
      azure_rm_manageddisk:
        resource_group: AT-AU-CUST-***
        name: baselinuxdisk_rhel7
        auth_source: env
        location: auseast
        create_option: import
        source_uri: "https://r***.blob.core.windows.net/linuximage-stage/BaseRHELAzureBuild.vhd"
        os_type: linux
        storage_account_type: Standard_LRS

EXPECTED RESULTS

Managed disk created from Source URI (imported)

ACTUAL RESULTS
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Error creating the managed disk: Azure Error: BadRequest\nMessage: Required parameter 'storageAccountId' is missing (null)."}

@Fred-sun Fred-sun added medium_priority Medium priority work in In trying to solve, or in working with contributors labels Jan 14, 2021
@Fred-sun
Copy link
Collaborator

@wcushen Thank you for reporting this problem. We will investigate and solve it as soon as possible. Thank you!

@ghost
Copy link

ghost commented Feb 8, 2021

Hi @Fred-sun , any news on that? We're running into the same issue. Any work-around, @wcushen ? Any older version of ansible-mgmt-...?

@Fred-sun
Copy link
Collaborator

Fred-sun commented Feb 8, 2021

@shubert-wk Because I have been busy with other things recently, I have not been able to update my status. I will find out the reason as soon as possible. Thank you very much!

@ghost
Copy link

ghost commented Feb 8, 2021

It seems storageAccountId is required now, see this PS issue: Azure/azure-powershell#12719 (comment)

@ghost
Copy link

ghost commented Apr 19, 2021

Any update on this?

@bantvalprabhu
Copy link

bantvalprabhu commented May 29, 2021

Hi @Fred-sun, any updates on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has_pr PR fixes have been made medium_priority Medium priority work in In trying to solve, or in working with contributors
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants