Draft
Conversation
Co-authored-by: llama90 <6668548+llama90@users.noreply.github.com>
Co-authored-by: llama90 <6668548+llama90@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Create production-ready Terraform code for Azure Blob Storage
Add Azure Blob Storage module
Dec 18, 2025
Contributor
🔍 Terraform Check Results📊 Summary✅ All checks passed!
🔍 TFLint Details (0 issue(s))🔒 Trivy Security Details (16 issue(s))👤 Pusher: @Copilot | 🔄 Action: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of Change
Checklist
Module Information
Module Path:
terraform/azurePurpose:
Production-ready Azure Blob Storage (Storage Account + Container) module following S3 reference implementation patterns. Secure defaults: HTTPS-only, TLS 1.2, infrastructure encryption, versioning, soft delete.
Key Resources:
azurerm_storage_account- Storage account with blob properties, network rules, CMK encryption supportazurerm_storage_container- Blob container with configurable access levelsazurerm_storage_management_policy- Lifecycle rules for Cool/Archive tieringAdditional Notes
Azure provider authentication differs from AWS mock pattern - tests require valid credentials (
az loginor ARM_* environment variables) to runterraform plan.Complex lifecycle rule type structure mirrors Azure's API. Long property names (e.g.,
tier_to_cool_after_days_since_modification_greater_than) match official Azure resource schema.Module includes 25+ variables with validation, 25+ outputs (sensitive values marked), and 6 test scenarios covering: basic, CMK encryption, lifecycle management, network restrictions, geo-replication, minimal config.
Usage example:
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
checkpoint-api.hashicorp.com/usr/local/bin/terraform terraform version(dns block)/usr/local/bin/terraform terraform fmt -recursive /home/REDACTED/work/infra-modules/infra-modules/terraform/azure/(dns block)/usr/local/bin/terraform terraform init -backend=false(dns block)get.trivy.dev/usr/bin/curl curl -w %{http_code} -sL -o /tmp/tmp.AmQsvf41Se/trivy_0.68.2_Linux-64bit.tar.gz REDACTED(dns block)https://api.github.com/repos/terraform-linters/tflint-ruleset-aws/releases/tags/v0.31.0/usr/local/bin/tflint tflint --init --config=terraform/.tflint.hcl(http block)login.microsoftonline.com.terraform/providers/registry.terraform.io/hashicorp/azurerm/3.117.1/linux_amd64/terraform-provider-azurerm_v3.117.1_x5 .terraform/providers/registry.terraform.io/hashicorp/azurerm/3.117.1/linux_amd64/terraform-provider-azurerm_v3.117.1_x5(dns block)mirror.gcr.io/usr/local/bin/trivy trivy config terraform/azure/ --severity MEDIUM,HIGH,CRITICAL --quiet(dns block)/usr/local/bin/trivy trivy config terraform/azure/ --severity MEDIUM,HIGH,CRITICAL --quiet 6668548+llama90@users.noreply.github.com>(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.