-
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 resources azurerm_mssql_virtual_machine_group
and azurerm_mssql_virtual_machine_availability_group_listener
#22808
Conversation
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.
Thanks for this PR @myc2h6o. I've left some comments in-line that need to be fixed up but once that's done we can take another look through.
}, false), | ||
}, | ||
|
||
"wsfc_domain_profile": helper.WsfcDomainProfileSchemaMsSqlVirtualMachineAvailabilityGroup(), |
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 only see this referenced once and the schema is flat so can we just in-line this here instead of defining it as a func elsewhere?
internal/services/mssql/mssql_virtual_machine_group_resource.go
Outdated
Show resolved
Hide resolved
internal/services/mssql/mssql_virtual_machine_group_resource.go
Outdated
Show resolved
Hide resolved
internal/services/mssql/mssql_virtual_machine_group_resource.go
Outdated
Show resolved
Hide resolved
internal/services/mssql/mssql_virtual_machine_group_resource.go
Outdated
Show resolved
Hide resolved
website/docs/r/mssql_virtual_machine_availability_group_listener.html.markdown
Outdated
Show resolved
Hide resolved
website/docs/r/mssql_virtual_machine_availability_group_listener.html.markdown
Outdated
Show resolved
Hide resolved
website/docs/r/mssql_virtual_machine_availability_group_listener.html.markdown
Outdated
Show resolved
Hide resolved
efd13aa
to
91c8a07
Compare
@stephybun thanks for reviewing the pr! I have updated it according to your comments, please take a look. |
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.
Thanks for addressing those comments @myc2h6o. Once comment was missed it seems and there's one typo in the docs. I've pointed them out in-line. Once they're resolved this should be good to go!
"private_ip_address": { | ||
Type: pluginsdk.TypeList, | ||
Required: true, | ||
ForceNew: true, | ||
MaxItems: 1, | ||
Elem: &pluginsdk.Resource{ | ||
Schema: map[string]*pluginsdk.Schema{ | ||
"ip_address": { | ||
Type: pluginsdk.TypeString, | ||
Required: true, | ||
ForceNew: true, | ||
ValidateFunc: validation.IsIPAddress, | ||
}, | ||
|
||
"subnet_id": { | ||
Type: pluginsdk.TypeString, | ||
Required: true, | ||
ForceNew: true, | ||
ValidateFunc: networkValidate.SubnetID, | ||
}, | ||
}, | ||
}, | ||
}, |
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.
Since we can only supply one of these and they're required we can flatten these.
"private_ip_address": { | |
Type: pluginsdk.TypeList, | |
Required: true, | |
ForceNew: true, | |
MaxItems: 1, | |
Elem: &pluginsdk.Resource{ | |
Schema: map[string]*pluginsdk.Schema{ | |
"ip_address": { | |
Type: pluginsdk.TypeString, | |
Required: true, | |
ForceNew: true, | |
ValidateFunc: validation.IsIPAddress, | |
}, | |
"subnet_id": { | |
Type: pluginsdk.TypeString, | |
Required: true, | |
ForceNew: true, | |
ValidateFunc: networkValidate.SubnetID, | |
}, | |
}, | |
}, | |
}, | |
"private_ip_address": { | |
Type: pluginsdk.TypeString, | |
Required: true, | |
ForceNew: true, | |
ValidateFunc: validation.IsIPAddress, | |
}, | |
"subnet_id": { | |
Type: pluginsdk.TypeString, | |
Required: true, | |
ForceNew: true, | |
ValidateFunc: networkValidate.SubnetID, | |
}, |
"private_ip_address": { | ||
Type: pluginsdk.TypeList, | ||
Required: true, | ||
ForceNew: true, | ||
MaxItems: 1, | ||
Elem: &pluginsdk.Resource{ | ||
Schema: map[string]*pluginsdk.Schema{ | ||
"ip_address": { | ||
Type: pluginsdk.TypeString, | ||
Required: true, | ||
ForceNew: true, | ||
ValidateFunc: validation.IsIPAddress, | ||
}, | ||
|
||
"subnet_id": { | ||
Type: pluginsdk.TypeString, | ||
Required: true, | ||
ForceNew: true, | ||
ValidateFunc: networkValidate.SubnetID, | ||
}, | ||
}, | ||
}, | ||
}, |
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.
Same here
|
||
A `replica` block supports the following: | ||
|
||
* `commit` - (Required) T replica commit mode for the availability group. Possible values are `Synchronous_Commit` and `Asynchronous_Commit`. Changing this forces a new resource to be created. |
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.
* `commit` - (Required) T replica commit mode for the availability group. Possible values are `Synchronous_Commit` and `Asynchronous_Commit`. Changing this forces a new resource to be created. | |
* `commit` - (Required) The replica commit mode for the availability group. Possible values are `Synchronous_Commit` and `Asynchronous_Commit`. Changing this forces a new resource to be created. |
@stephybun thanks, I've further flattened the |
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.
Thanks @myc2h6o LGTM 👍
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
Add support for SQL Virtual Machine Group and SQL Virtual Machine Availability Group Listener. This adds the ability to configure Always-On SQL Availability Group for SQL VMs.
Document
Swagger