Skip to content
Open
Changes from all commits
Commits
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 veeam_microsoft365.sh
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ veeamJobsUrl=$(curl -X GET --header "Accept:application/json" --header "Authoriz

declare -i arrayJobs=0
for id in $(echo "$veeamJobsUrl" | jq -r '.[].id'); do
nameJob=$(echo "$veeamJobsUrl" | jq --raw-output ".[$arrayJobs].name" | awk '{gsub(/ /,"\\ ");print}')
nameJob=$(echo "$veeamJobsUrl" | jq --raw-output ".[$arrayJobs].name" | awk '{gsub(/ /,"\\ "); gsub(/,/, "\\,"); print}')
idJob=$(echo "$veeamJobsUrl" | jq --raw-output ".[$arrayJobs].id")

# Backup Job Sessions
Expand Down Expand Up @@ -425,4 +425,4 @@ for id in $(echo "$veeamRbacRoleUrl" | jq -r '.[].id'); do
-p s \
"veeam_office365_rbac_scope,organization=$rbacOrganization,rbacRoleId=$rbacRoleId,rbacRoleName=$rbacRoleName,rbacRoleDescription=$rbacRoleDescription,rbacRoleType=$rbacRoleType rbacRoleAdminId=$arrayRbacRoles"
arrayRbacRoles=$arrayRbacRoles+1
done
done