Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectMicrosoftTeams ¶
func ConnectMicrosoftTeams(tenantId, applicationId, clientSecret, certificateThumbprint, certificatePath string) error
ConnectMicrosoftTeams authenticates PowerShell to Microsoft Teams using Connect-MicrosoftTeams. Supports only App ID + Certificate (thumbprint or file) and App ID + Client Secret authentication. Pass empty strings for unused parameters. All other authentication types will return an error.
func EnsurePowerShellAndTeamsModule ¶
func EnsurePowerShellAndTeamsModule() error
EnsurePowerShellAndTeamsModule checks if pwsh and the MicrosoftTeams module are installed, and installs the module if missing.
func RunPowerShell ¶
RunPowerShell executes a PowerShell command and returns its output or error
Types ¶
type ResourceData ¶
type ResourceData struct {
GraphClient client.GraphClientInterface
ProviderData *client.ProviderData
}
ResourceData combines GraphClientInterface and ProviderData for PowerShell resources
Click to show internal directories.
Click to hide internal directories.