You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- I would say this pipeline example is a little vague - is this using etag or not. Or would input from pipeline use a different default behavior.
45
+
46
+
44
47
45
48
### Forcing Updates
46
49
@@ -50,8 +53,29 @@ Update a resource regardless of ETag settings
50
53
Update-AzVM <parameters> -Overwrite
51
54
```
52
55
56
+
- Overwrite is pretty non-standard powershell. -Force or -Confirm would be better (See https://stackoverflow.com/questions/34749333/powershell-guidelines-for-confirm-force-and-whatif and https://github.com/Azure/azure-powershell/issues/475)
57
+
53
58
## Comments and Questions
54
59
55
60
- Should Updates be conditional on ETag value match by default, or shoudl this be opt-in
56
-
61
+
57
62
- Should overwrite without regard to ETag values be an opt-in or default behavior
63
+
64
+
65
+
I believe this should be rolled in gradually, so initial release should have etags usage as optional. Let it bake for 6 months and then switch the default behavior.
Where UseEtag's default value changes from $false to $true after a while. This would initally not break scripts, but after the roll-out date all new `Update-AzVM` commands would use the ETAG checking.
71
+
72
+
### Question
73
+
How do etags work with sub-items i.e. network config. Do those sub items have a separate etag and updates to them cause the parent object etag to update also?
74
+
75
+
This is going to have to be *clearly* documented - I could see some real confusion in this path:
76
+
77
+
Get-AzVM -> (Change Disk Size via $vm.StorageProfile.DataDisks[0].DiskSizeGB = 123 ) -> Update-AzVM
78
+
79
+
vs
80
+
81
+
Get-AzVM -> get-AzDataDisk -> (Change Disk Size via Set-AzDataDisk) -> Update-AzVM
0 commit comments