Skip to content

Commit

Permalink
azurerm_eventhub_authorization_rule - extend regex char limit for `…
Browse files Browse the repository at this point in the history
…name` and doc fixes (#17057)
  • Loading branch information
stephybun authored Jun 2, 2022
1 parent 42726f9 commit 56c38f2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions internal/services/eventhub/validate/eventhub_names.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func ValidateEventHubConsumerName() pluginsdk.SchemaValidateFunc {

func ValidateEventHubAuthorizationRuleName() pluginsdk.SchemaValidateFunc {
return validation.StringMatch(
regexp.MustCompile("^[a-zA-Z0-9]([-._a-zA-Z0-9]{0,48}[a-zA-Z0-9])?$"),
"The authorization rule name can contain only letters, numbers, periods, hyphens and underscores. The name must start and end with a letter or number and be up to 50 characters long.",
regexp.MustCompile("^[a-zA-Z0-9]([-._a-zA-Z0-9]{0,58}[a-zA-Z0-9])?$"),
"The authorization rule name can contain only letters, numbers, periods, hyphens and underscores. The name must start and end with a letter or number and be up to 60 characters long.",
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ resource "azurerm_subscription_policy_assignment" "example" {
resource "azurerm_subscription_policy_exemption" "example" {
name = "exampleExemption"
resource_group_id = data.azurerm_subscription.example.id
subscription_id = data.azurerm_subscription.example.id
policy_assignment_id = azurerm_subscription_policy_assignment.example.id
exemption_category = "Mitigated"
}
Expand Down
4 changes: 1 addition & 3 deletions website/docs/r/storage_share.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ The following arguments are supported:
* `storage_account_name` - (Required) Specifies the storage account in which to create the share.
Changing this forces a new resource to be created.

* `access_tier` - (Optional) The access tier of the File Share. Possible values are `Hot`, `Cool` and `TransactionOptimized`.
* `access_tier` - (Optional) The access tier of the File Share. Possible values are `Hot`, `Cool` and `TransactionOptimized`, `Premium`.

* `acl` - (Optional) One or more `acl` blocks as defined below.

Expand All @@ -66,8 +66,6 @@ The following arguments are supported:

* `metadata` - (Optional) A mapping of MetaData for this File Share.

* `access_tier` - (Optional) The tier of the File Share. Can be one of `Hot`, `Cool`, `TransactionOptimized`, `Premium`.

---

A `acl` block supports the following:
Expand Down

0 comments on commit 56c38f2

Please sign in to comment.