-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
New Data Source/Resource: azurerm_dedicated_host
#5513
Conversation
5b12f0c
to
6ba7bf8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of minor comments to revisit later, but LGTM otherwise.
azurerm/internal/services/compute/tests/resource_arm_dedicated_host_test.go
Show resolved
Hide resolved
@@ -103,3 +105,11 @@ func validateDiskSizeGB(v interface{}, _ string) (warnings []string, errors []er | |||
} | |||
return warnings, errors | |||
} | |||
|
|||
func validateDedicatedHostGroupName() func(i interface{}, k string) (warnings []string, errors []error) { | |||
return validation.StringMatch(regexp.MustCompile(`^[^_\W][\w-.]{0,78}[\w]$`), "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suspect this regex may need tweaking, but since I'm unable to put my hands on the naming rules, I'm not completely sure. Worth checking later.
8a256fa
to
58efb83
Compare
Resource Tests pass:
|
Includes: - custom parser function - rename `sku` to `sku_name` - multi-line code to oneline - increase each timeout of state polling for eventual consistency from 5sec to 10 sec, to alleviate
58efb83
to
137183a
Compare
137183a
to
a323a71
Compare
Data Source tests pass:
|
This has been released in version 1.42.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azurerm" {
version = "~> 1.42.0"
}
# ... other configuration ... |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
This PR contains the changes from @magodo in #5417 with the PR comments resolved so that this can be merged - which is a requirement for the new VM Resources.