Skip to content

Commit a56a15c

Browse files
authored
Merge pull request #1035 from KelvinTegelaar/dev
[pull] dev from KelvinTegelaar:dev
2 parents 93507d9 + 83c7735 commit a56a15c

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

Config/FeatureFlags.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"Id": "CopilotAI",
4949
"Name": "Copilot & AI",
5050
"Description": "Under Development: Microsoft 365 Copilot and AI management pages including settings, usage reports, Agent365 packages, and Shadow AI analysis.",
51-
"Enabled": false,
51+
"Enabled": true,
5252
"AllowUserToggle": false,
5353
"Timers": [],
5454
"Endpoints": [
@@ -67,7 +67,7 @@
6767
"/copilot/reports/copilot-usage",
6868
"/copilot/reports/copilot-trend"
6969
],
70-
"Hidden": true
70+
"Hidden": false
7171
},
7272
{
7373
"Id": "MCPServer",
@@ -82,4 +82,4 @@
8282
"Pages": [],
8383
"Hidden": false
8484
}
85-
]
85+
]

Modules/CIPPStandards/Public/Standards/Invoke-CIPPStandardDisableSelfServiceLicenses.ps1

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ function Invoke-CIPPStandardDisableSelfServiceLicenses {
8181
policyValue = $AutoClaimPolicy.tenantPolicyValue ?? 'Disabled'
8282
})
8383
} catch {
84+
$CurrentValues.Add([PSCustomObject]@{
85+
productName = 'Trial Autoclaim'
86+
productId = 'autoclaim'
87+
policyValue = 'Failed to retrieve current state, check the logs for details'
88+
})
8489
Write-LogMessage -API 'Standards' -tenant $Tenant -message "Failed to retrieve trial autoclaim policy: $($_.Exception.Message)" -sev Error
8590
}
8691
}
@@ -181,6 +186,11 @@ function Invoke-CIPPStandardDisableSelfServiceLicenses {
181186
policyValue = $AutoClaimPolicy.tenantPolicyValue ?? 'Disabled'
182187
})
183188
} catch {
189+
$CurrentValues.Add([PSCustomObject]@{
190+
productName = 'Trial Autoclaim'
191+
productId = 'autoclaim'
192+
policyValue = 'Failed to retrieve current state, check the logs for details'
193+
})
184194
Write-LogMessage -API 'Standards' -tenant $Tenant -message "Failed to retrieve trial autoclaim policy after remediation: $($_.Exception.Message)" -sev Error
185195
}
186196
}

0 commit comments

Comments
 (0)