Commit e856937
committed
allow deleting cross-subscription snapshots
DeleteSnapshot should try to get subscription ID from snapshot ID
before proceeding with deletion to ensure we can delete a snapshot
that could have been created under different subscription ID.
If a cross-subscription snapshot deletion is attempted without it, the
driver will use the default subscription ID and fail with
`ResourceGroupNotFound` when `Delete` is executed with file share
client.
This is relevant only for ARM/Control Plane client authentication.1 parent 094d088 commit e856937
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1021 | 1021 | | |
1022 | 1022 | | |
1023 | 1023 | | |
1024 | | - | |
| 1024 | + | |
1025 | 1025 | | |
1026 | 1026 | | |
1027 | 1027 | | |
| |||
1035 | 1035 | | |
1036 | 1036 | | |
1037 | 1037 | | |
1038 | | - | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
1039 | 1042 | | |
1040 | 1043 | | |
1041 | 1044 | | |
| |||
0 commit comments