Skip to content

Conversation

@nikpivkin
Copy link
Contributor

@nikpivkin nikpivkin commented Nov 11, 2025

Description

This PR adds support for the https_traffic_only_enabled attribute in Azure Storage Accounts, which replaces the older enable_https_traffic_only.

A small improvement is also included: a new Block.GetFirstAttributeOf method that returns the first existing attribute from the provided list. This helps eliminate boilerplate such as:

if attr := resource.GetAttribute("https_traffic_only_enabled"); attr.IsNotNil() { 
  account.EnforceHTTPS = attr.AsBoolValueOrDefault(true, resource) 
} else if attr := resource.GetAttribute("enable_https_traffic_only"); attr.IsNotNil() { 
  account.EnforceHTTPS = attr.AsBoolValueOrDefault(true, resource) 
}

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).

@nikpivkin nikpivkin force-pushed the feat/az-sa-https-traffic branch from a88c8ae to 1185dfd Compare November 11, 2025 13:30
@nikpivkin nikpivkin marked this pull request as ready for review November 11, 2025 13:30
@nikpivkin nikpivkin requested a review from simar7 as a code owner November 11, 2025 13:30
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.

1 participant