Skip to content

Commit 09aac4a

Browse files
committed
Exclude readonly properties from subnet update
1 parent a75e884 commit 09aac4a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/services/network/subnet_resource.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,10 @@ func resourceSubnetUpdate(d *pluginsdk.ResourceData, meta interface{}) error {
436436

437437
props := *existing.Model.Properties
438438

439+
// remove readonly properties as they are not managed by TF - large IPConfiguration blocks can cause ARM API limit errors
440+
props.IPConfigurations = nil
441+
props.PrivateEndpoints = nil
442+
439443
if d.HasChange("address_prefixes") {
440444
addressPrefixesRaw := d.Get("address_prefixes").([]interface{})
441445
switch len(addressPrefixesRaw) {

0 commit comments

Comments
 (0)