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

source_account_id should be storage_account_id #1187

Merged
merged 2 commits into from
Jun 27, 2023

Conversation

fargburger
Copy link
Contributor

SUMMARY

Fixes:

Error creating the managed disk: (BadRequest) Required parameter 'storageAccountId' is missing (null).
Code: BadRequest
Message: Required parameter 'storageAccountId' is missing (null).

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

azure_rm_manageddisk
azure_rm_multiplemanageddisk

ADDITIONAL INFORMATION
  - name: create a disk
    azure_rm_manageddisk:
      name: "{{ name }}"
      location: "{{ azure_location }}"
      resource_group: "{{ azure_staging_resource_group }}"
      create_option: import
      source_uri: "{{ azure_vhd }}"
      storage_account_id: "/subscriptions/{{ azure_subscription_id }}/resourceGroups/{{ azure_source_resource_group }}/providers/Microsoft.Storage/storageAccounts/{{ azure_source_storage_account }}"
      os_type: linux
      storage_account_type: Standard_LRS
      tenant: "{{ azure_tenant }}"
      subscription_id: "{{ azure_subscription_id }}"
      client_id: "{{ azure_client_id }}"
      secret: "{{ azure_secret }}"

results in

TASK [create a disk] ************************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {
    "changed": false
}

MSG:

Error creating the managed disk: (BadRequest) Required parameter 'storageAccountId' is missing (null).
Code: BadRequest
Message: Required parameter 'storageAccountId' is missing (null).

appears to be because 'source' was copied over 'storage' in the next line down.

appears to be copy/paste error with storage/source for storage_account_id parameter 

Error creating the managed disk: (BadRequest) Required parameter 'storageAccountId' is missing (null).
Code: BadRequest
Message: Required parameter 'storageAccountId' is missing (null).
@Fred-sun Fred-sun added ready_for_review The PR has been modified and can be reviewed and merged medium_priority Medium priority labels Jun 8, 2023
@xuzhang3
Copy link
Collaborator

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium_priority Medium priority ready_for_review The PR has been modified and can be reviewed and merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants