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_virtualmachine boot_diagnostics resource group configuration #169

Closed
broth13 opened this issue Jun 17, 2020 · 1 comment · Fixed by #208
Closed

azure_rm_virtualmachine boot_diagnostics resource group configuration #169

broth13 opened this issue Jun 17, 2020 · 1 comment · Fixed by #208
Labels
has_pr PR fixes have been made

Comments

@broth13
Copy link

broth13 commented Jun 17, 2020

SUMMARY

azure_rm_virtualmachine can currently only specify a boot_diagnostics storage account that exists in the same resource group as the VM itself. Would like to be able to specify a "resource_group" tag in the "boot_diagnostics" stanza to allow the use of boot diagnostics storage accounts in other resource groups.

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

azure_rm_virtualmachine

ADDITIONAL INFORMATION

Sometimes a single storage account is dedicated in a subscription as a shared boot diagnostics repository to consolidate all console log data. In this case, the boot diagnostics storage account may not necessarily exist in the same resource group as the VM being provisioned.

Currently azure_rm_virtualmachine assumes the boot_diagnostics storage account is in the same resource group, and provisioning yields an error such as the following:

"msg": "Error fetching storage account mybootdiags - Azure Error: ResourceNotFound\nMessage: The Resource 'Microsoft.Storage/storageAccounts/mybootdiags' under resource group 'DIFFERENT-RG' was not found."

It would be helpful to be able to specify an optional alternate resource group for the storage account as follows:

boot_diagnostics:                                                                             
  enabled: yes                                                                                
  storage_account: "{{ azure_bootdiag }}"                                                     
  resource_group: "{{ azure_bootdiag_rg }}"
@broth13 broth13 changed the title boot_diagnostics resource group configuration azure_rm_virtualmachine boot_diagnostics resource group configuration Jun 17, 2020
@Fred-sun
Copy link
Collaborator

@broth13 Thank you for submitting this issue. This is a new request for boot_diagnostics that should contain storage accounts of other resource groups. I will investigate and add it. Thank you!

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
Projects
None yet
2 participants