Skip to content

Conversation

@yagreut
Copy link
Contributor

@yagreut yagreut commented Oct 30, 2025

Update azure storage schema in order to add IaC checks

Checklist

  • I've read the guidelines for contributing to this repository.
  • I've followed the conventions in the PR title.
  • I've added tests that prove my fix is effective or that my feature works.
  • I've updated the documentation with the relevant information (if needed).
  • I've added usage information (if the PR introduces new options)
  • I've included a "before" and "after" example to the description (if the PR is a user interface change).

@yagreut yagreut force-pushed the reut-azure-storage branch from d9bd5f2 to ca29e49 Compare October 30, 2025 09:10
customerManagedKeyBlock := resource.GetBlock("customer_managed_key")
if customerManagedKeyBlock.IsNotNil() {
account.CustomerManagedKey.Metadata = customerManagedKeyBlock.GetMetadata()
keyVaultKeyIdAttr := customerManagedKeyBlock.GetAttribute("key_vault_key_id")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How will attributes that link one resource to another, such as key_vault_key_id and user_assigned_identity_id, be used in checks? Just check that the value is not empty?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The checks will check that its not empty and that it is managed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants