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

azurerm_storage_account_management_policy - rule name can contains - #11792

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func resourceStorageManagementPolicy() *schema.Resource {
Type: schema.TypeString,
Required: true,
ValidateFunc: validation.StringMatch(
regexp.MustCompile(`^[a-zA-Z0-9]*$`),
regexp.MustCompile(`^[a-zA-Z0-9-]*$`),
"A rule name can contain any combination of alpha numeric characters.",
),
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ resource "azurerm_storage_management_policy" "test" {
storage_account_id = azurerm_storage_account.test.id

rule {
name = "rule1"
name = "rule-1"
enabled = true
filters {
prefix_match = ["container1/prefix1"]
Expand Down