Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
be88895
Removed VSCode Files
arisettisanjana Sep 21, 2022
b4507ec
AddedChecks
arisettisanjana Oct 19, 2022
69343cf
UpdatedForLoggingTheError
arisettisanjana Oct 21, 2022
d88f30e
UpdatedCode
arisettisanjana Oct 21, 2022
38d75dc
Revert "UpdatedCode"
arisettisanjana Oct 26, 2022
e643dd6
Revert "updated lsblk command by using more flags"
arisettisanjana Oct 26, 2022
752e627
reverting to master
arisettisanjana Oct 26, 2022
d3614c3
Merge branch 'Azure:master' into master
arisettisanjana Nov 21, 2022
f2a25a3
Merge branch 'Azure:master' into master
arisettisanjana Dec 1, 2022
7fbb0d1
Merge branch 'Azure:master' into master
arisettisanjana Dec 13, 2022
93f5171
Merge remote-tracking branch 'upstream/master'
arisettisanjana Dec 13, 2022
45b670d
Merge branch 'master' of https://github.com/arisettisanjana/azure-lin…
arisettisanjana Dec 13, 2022
6ee2ef7
Merge remote-tracking branch 'upstream/master'
arisettisanjana Feb 8, 2023
d32caeb
Merge branch 'Azure:master' into master
arisettisanjana Feb 13, 2023
5b5d7d1
Merge branch 'master' of https://github.com/arisettisanjana/azure-lin…
arisettisanjana Feb 13, 2023
6910c56
Merge remote-tracking branch 'upstream/master'
arisettisanjana Feb 21, 2023
f89bed4
Merge branch 'Azure:master' into master
arisettisanjana Feb 21, 2023
a3412dc
Merge branch 'master' of https://github.com/arisettisanjana/azure-lin…
arisettisanjana Feb 21, 2023
129c7a4
Merge remote-tracking branch 'upstream/master'
arisettisanjana Mar 9, 2023
0011cd4
removed sudo
arisettisanjana May 15, 2023
d89fbfd
Revert "removed sudo"
arisettisanjana May 15, 2023
085b60d
Merge branch 'Azure:master' into master
arisettisanjana May 15, 2023
6e02140
Merge branch 'master' of https://github.com/arisettisanjana/azure-lin…
arisettisanjana May 16, 2023
df94315
Merge branch 'Azure:master' into master
arisettisanjana May 29, 2023
7f5c965
Merge branch 'master' of https://github.com/arisettisanjana/azure-lin…
arisettisanjana May 29, 2023
937870d
Merge branch 'Azure:master' into master
arisettisanjana Jun 5, 2023
2381fe8
Merge branch 'master' of https://github.com/arisettisanjana/azure-lin…
arisettisanjana Jun 5, 2023
4a2a67d
Merge branch 'Azure:master' into master
arisettisanjana Jul 17, 2023
a351b1e
Merge branch 'master' of https://github.com/arisettisanjana/azure-lin…
arisettisanjana Jul 17, 2023
82dd260
Merge branch 'Azure:master' into master
arisettisanjana Sep 4, 2023
56053e9
Merge branch 'Azure:master' into master
arisettisanjana Sep 7, 2023
469cbfd
Merge branch 'Azure:master' into master
arisettisanjana Sep 19, 2023
fd13f36
Merge branch 'Azure:master' into master
arisettisanjana Sep 20, 2023
1a863f6
Merge branch 'Azure:master' into master
arisettisanjana Sep 22, 2023
93446a9
Merge branch 'Azure:master' into master
arisettisanjana Nov 16, 2023
3bf57c4
Merge branch 'Azure:master' into master
arisettisanjana Nov 17, 2023
821278c
Merge branch 'Azure:master' into master
arisettisanjana Dec 7, 2023
555ab2c
Merge branch 'Azure:master' into master
arisettisanjana Feb 1, 2024
57e700e
Merge branch 'Azure:master' into master
arisettisanjana Feb 8, 2024
56abd24
Merge branch 'Azure:master' into master
arisettisanjana May 16, 2024
7346668
Merge branch 'Azure:master' into master
arisettisanjana May 24, 2024
7a1f38b
Merge branch 'master' of https://github.com/arisettisanjana/azure-lin…
arisettisanjana May 25, 2024
783d01e
Merge branch 'Azure:master' into master
arisettisanjana Aug 30, 2024
471ef99
Merge branch 'master' of https://github.com/arisettisanjana/azure-lin…
arisettisanjana Aug 30, 2024
9dbc18f
Merge branch 'Azure:master' into master
arisettisanjana Sep 12, 2024
8960b53
Merge branch 'Azure:master' into master
arisettisanjana Sep 23, 2024
ed42f23
Merge branch 'master' of https://github.com/arisettisanjana/azure-lin…
arisettisanjana Sep 23, 2024
4ec7d00
Merge branch 'Azure:master' into master
arisettisanjana Oct 10, 2024
99597e8
Merge branch 'Azure:master' into master
arisettisanjana Oct 30, 2024
8a313dd
Merge branch 'Azure:master' into master
arisettisanjana Jan 9, 2025
4acf407
Merge branch 'Azure:master' into master
arisettisanjana Jan 21, 2025
5d901dd
Merge branch 'Azure:master' into master
arisettisanjana Feb 27, 2025
37a9360
Merge branch 'Azure:master' into master
arisettisanjana Apr 16, 2025
5d25072
Merge branch 'Azure:master' into master
arisettisanjana Jun 11, 2025
64cdd28
Merge branch 'Azure:master' into master
arisettisanjana Jul 9, 2025
98e077e
Merge branch 'Azure:master' into master
arisettisanjana Aug 12, 2025
d42e1fb
Merge branch 'Azure:master' into master
arisettisanjana Aug 22, 2025
1d195f3
Merge branch 'Azure:master' into master
arisettisanjana Sep 23, 2025
8264279
renamed the key
Sep 23, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions VMBackup/main/Utils/HandlerUtil.py
Original file line number Diff line number Diff line change
Expand Up @@ -866,8 +866,8 @@ def redact_sensitive_encryption_details(self, request_body):
try:
meta_list = getattr(request_body, "snapshotMetadata", None)
for meta in meta_list:
if meta.get("Key") == "EncryptionDetails":
# Redact the entire value of EncryptionDetails
if meta.get("Key") == "DiskEncryptionSettings":
# Redact the entire value of DiskEncryptionSettings
meta["Value"] = "REDACTED"
return request_body
except Exception as e:
Expand Down
2 changes: 1 addition & 1 deletion VMBackup/main/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class CommonVariables:
isVMADEEnabled = 'isVMADEEnabled'
isOsDiskADEEncrypted = 'isOsDiskADEEncrypted'
areDataDisksADEEncrypted = 'areDataDisksADEEncrypted'
encryptionDetails = 'EncryptionDetails'
diskEncryptionSettings = 'DiskEncryptionSettings'
isAnyWADiskIncluded = 'isAnyWADiskIncluded'
isAnyDirectDriveDiskIncluded = 'isAnyDirectDriveDiskIncluded'
diskEncryptionKey = "x-ms-meta-DiskEncryptionSettings"
Expand Down
18 changes: 9 additions & 9 deletions VMBackup/main/hostsnapshotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ def snapshotall(self, paras, freezer, g_fsfreeze_on, taskId):
temp_dict[CommonVariables.key] = flag
temp_dict[CommonVariables.value] = paras.wellKnownSettingFlags[flag]
settings.append(temp_dict)
if(paras.isVMADEEnabled == True and paras.encryptionDetails):
if(paras.isVMADEEnabled == True and paras.diskEncryptionSettings):
settings.append({CommonVariables.key:CommonVariables.isOsDiskADEEncrypted, CommonVariables.value:paras.isOsDiskADEEncrypted})
settings.append({CommonVariables.key:CommonVariables.areDataDisksADEEncrypted, CommonVariables.value:paras.areDataDisksADEEncrypted})
meta_data.append({CommonVariables.key:CommonVariables.encryptionDetails, CommonVariables.value:paras.encryptionDetails})
meta_data.append({CommonVariables.key:CommonVariables.diskEncryptionSettings, CommonVariables.value:paras.diskEncryptionSettings})
hostDoSnapshotRequestBodyObj = HostSnapshotObjects.HostDoSnapshotRequestBody(taskId, diskIds, settings, paras.snapshotTaskToken, meta_data)
body_content = json.dumps(hostDoSnapshotRequestBodyObj, cls = HandlerUtil.ComplexEncoder)
redactedRequestBodyObj = self.hutil.redact_sensitive_encryption_details(hostDoSnapshotRequestBodyObj)
Expand Down Expand Up @@ -141,11 +141,11 @@ def pre_snapshot(self, paras, taskId, fetch_disk_details = False):
headers = {}
headers['Backup'] = 'true'
headers['Content-type'] = 'application/json'
# if the vm is ade enabled and if the encryptiondetails are not yet populated, then we need to fetch the disk details
# if the vm is ade enabled and if the diskEncryptionSettings are not yet populated, then we need to fetch the disk details
# or when the fetch_disk_details flag is set to true
if(fetch_disk_details == True or (paras.isVMADEEnabled == True and not paras.encryptionDetails)):
if(fetch_disk_details == True or (paras.isVMADEEnabled == True and not paras.diskEncryptionSettings)):
if(fetch_disk_details != True):
self.logger.log("Fetching disk details as the VM is ADE enabled and encryptionDetails are not yet populated")
self.logger.log("Fetching disk details as the VM is ADE enabled and diskEncryptionSettings are not yet populated")
fetch_disk_details = True
preSnapshotSettings = []
temp_dict = {}
Expand Down Expand Up @@ -187,13 +187,13 @@ def pre_snapshot(self, paras, taskId, fetch_disk_details = False):
response = json.loads(responseBody)
paras.isOsDiskADEEncrypted = response.get(CommonVariables.isOsDiskADEEncrypted)
paras.areDataDisksADEEncrypted = response.get(CommonVariables.areDataDisksADEEncrypted)
paras.encryptionDetails = response.get(CommonVariables.encryptionDetails)
paras.diskEncryptionSettings = response.get(CommonVariables.diskEncryptionSettings)
self.logger.log("PreSnapshotResponse: isOsDiskADEEncrypted: "+ str(paras.isOsDiskADEEncrypted))
self.logger.log("PreSnapshotResponse: areDataDisksADEEncrypted: "+ str(paras.areDataDisksADEEncrypted))
if paras.encryptionDetails is not None:
self.logger.log("PreSnapshotResponse: encryptionDetails: "+ str(len(paras.encryptionDetails)))
if paras.diskEncryptionSettings is not None:
self.logger.log("PreSnapshotResponse: DiskEncryptionSettings: "+ str(len(paras.diskEncryptionSettings)))
else:
self.logger.log("PreSnapshotResponse: EncryptionDetails are null")
self.logger.log("PreSnapshotResponse: DiskEncryptionSettings are null")
else:
self.logger.log("PreSnapshotResponse: VM is either not ADE Enabled or disk details were not requested")
elif(httpResp.status == 500 and not responseBody.startswith("{ \"error\"")):
Expand Down
2 changes: 1 addition & 1 deletion VMBackup/main/parameterparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(self, protected_settings, public_settings, backup_logger):
self.disk_encryption_details = []
self.isOsDiskADEEncrypted = False
self.areDataDisksADEEncrypted = False
self.encryptionDetails = {}
self.diskEncryptionSettings = {}
self.wellKnownSettingFlags = {CommonVariables.isSnapshotTtlEnabled: False, CommonVariables.useMccfToFetchDsasForAllDisks: False,
CommonVariables.useMccfForLad: False, CommonVariables.enableSnapshotExtensionPolling: False, CommonVariables.isVmmdBlobIncluded : False}
settingKeysMapping= {}
Expand Down