powershell

package
v0.26.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2025 License: MPL-2.0 Imports: 5 Imported by: 0

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

func RunPowerShell(cmd string) (string, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL