This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ALL AGENT INTERACTIONS PER HOUR | |
| CloudAppEvents | |
| | extend AgentName = tostring((RawEventData).AgentName) | |
| | extend UserName = tostring((RawEventData).UserId) | |
| | where ActionType == 'CopilotInteraction' | |
| | where isnotempty(parse_json(RawEventData).AgentName) | |
| | summarize InteractionsPerHour = count() by UserName, DateHour = format_datetime(bin(datetime_utc_to_local(Timestamp,"America/New_York"), 1h), 'yyyy-MM-dd hh:mm:ss'), AgentName | |
| | project ['Date/Hour (Eastern)'] = DateHour, UserName, AgentName, InteractionsPerHour | |
| | order by ['Date/Hour (Eastern)'], InteractionsPerHour desc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kind: AdaptiveDialog | |
| beginDialog: | |
| kind: OnGeneratedResponse | |
| id: main | |
| priority: 1 | |
| actions: | |
| - kind: ConditionGroup | |
| id: has-answer-conditions | |
| conditions: | |
| - id: has-answer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #requires -modules "Microsoft.PowerApps.Administration.PowerShell" | |
| function Get-PowerPlatformEntraHttpConnection | |
| { | |
| [CmdletBinding()] | |
| param | |
| ( | |
| [Parameter(Mandatory=$true)] | |
| [string] | |
| $EnvironmentId, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #requires -modules "PnP.PowerShell" | |
| # requires SharePoint > application > sites.fullcontrol.all permissions | |
| $sites = "https://m365cpi68930152.sharepoint.com/sites/security-policies1", | |
| "https://m365cpi68930152.sharepoint.com/sites/security-policies2" | |
| $timestamp = Get-Date -Format FileDateTime | |
| foreach( $site in $sites ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #requries -modules "Microsoft.PowerApps.Administration.PowerShell" | |
| function Get-AuthorizationHeader | |
| { | |
| [CmdletBinding()] | |
| param | |
| ( | |
| [Parameter(Mandatory=$true)] | |
| [string] | |
| $EnvironmentUrl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kind: AdaptiveDialog | |
| beginDialog: | |
| kind: OnActivity | |
| id: main | |
| condition: =DateDiff(DateAdd(Coalesce(Global.UserProfile.LastRefreshed,Now()), 1440, TimeUnit.Minutes), Now(),TimeUnit.Minutes) > 0 | |
| type: Message | |
| actions: | |
| - kind: BeginDialog | |
| id: 0FnaSJ | |
| input: {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Import-Module -Name "Microsoft.PowerPlatform.EnterprisePolicies" -ErrorAction Stop | |
| Connect-AzAccount | |
| $tenantId = "<YOUR TENANT ID>" | |
| $environmentId = "<ENVIRONMENT ID>" | |
| $hostname = "dc.services.visualstudio.com" | |
| Test-DnsResolution ` | |
| -EnvironmentId $environmentId ` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # taken from -- https://www.powershellgallery.com/packages/AzurePowerShellUtilityFunctions | |
| function Send-AppInsightsEventTelemetry | |
| { | |
| <# | |
| .SYNOPSIS | |
| Sends custom event telemetry to an Azure Application Insights instance. | |
| .DESCRIPTION | |
| Sends custom event telemetry to an Azure Application Insights instance. This function uses the Azure Application Insights REST API instead of a compiled client library, so it works without additional dependencies. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Get-InstalledModule -Name Az.* | ForEach-Object -Process { Get-InstalledModule -Name $_.Name -AllVersions | Uninstall-Module -Force -Verbose } | |
| Get-InstalledModule -Name Az -AllVersions | Uninstall-Module -Force -Verbose |
NewerOlder