-
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
azurerm_subnet
- the private_endpoint_network_policies_enabled property has been deprecated in favour of the private_endpoint_network_policies
property
#25779
Conversation
…from bool to string to support more values
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.
Aside from one commment i think this looks good
resource.Schema["private_endpoint_network_policies_enabled"] = &pluginsdk.Schema{ | ||
Type: pluginsdk.TypeBool, | ||
Computed: true, | ||
} |
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.
we should add a deprecation message here?
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.
Added
@katbyte , thanks for the comment. I updated PR. Please take another look. |
resource.Schema["private_endpoint_network_policies_enabled"] = &pluginsdk.Schema{ | ||
Type: pluginsdk.TypeBool, | ||
Computed: true, | ||
Deprecated: "This is deprecated in favor of `private_endpoint_network_policies`", |
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.
Can you please specify that the property will be removed in v4.0 of the provider
Deprecated: "This is deprecated in favor of `private_endpoint_network_policies`", | |
Deprecated: "This property has been superseded by `private_endpoint_network_policies` and will be removed in v4.0 of the AzureRM Provider.", |
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.
Updated
@stephybun , thanks for the comment. I updated PR. Please take another 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.
LGTM 🦕
azurerm_subnet
- convert the privateEndpointNetworkPolicies
property from bool to string to support more valuesazurerm_subnet
- the private_endpoint_network_policies_enabled property has been deprecated in favour of the private_endpoint_network_policies
property
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. |
Community Note
Description
Currently, azurerm_subnet has supported the "privateEndpointNetworkPolicies" property and it is marked as bool type in TF. But it's not expected since this property is expanded with new values and now it supports these values "Enabled"/"Disabled"/"NetworkSecurityGroupEnabled"/"RouteTableEnabled" in Swagger. So we have to convert it from bool to string to support more values in TF. This feature request is from Service team.
PR Checklist
For example: “
resource_name_here
- description of change e.g. adding propertynew_property_name_here
”Changes to existing Resource / Data Source
Testing
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_subnet
- convert theprivateEndpointNetworkPolicies
property from bool to string to support more valuesThis is a (please select all that apply):
Note
If this PR changes meaningfully during the course of review please update the title and description as required.