New-PSUEventHub
SYNOPSIS
Creates a new event hub.
SYNTAX
New-PSUEventHub -Name <String> [-Description <String>] [-Role <String[]>] [-Authenticated]
[-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>] [-UseDefaultCredentials]
[-Integrated] [-TrustCertificate] [-Cookies] [<CommonParameters>]DESCRIPTION
Creates a new event hub.
EXAMPLES
Example 1
PS C:\> New-PSUEventHub -Name 'Hub' -Description 'A new event hub'Creates a new event hub named 'Hub' with the description 'A new event hub'.
PARAMETERS
-AppToken
The AppToken that is used for calling the PowerShell Universal Management API. You can also call Connect-PSUServer before calling this cmdlet to set the AppToken for the entire session.
-Authenticated
Whether this event hub requires authentication.
-ComputerName
Specifies the computer name or URL that should be called when accessing the PowerShell Universal Management API. You can also use Connect-PSUServer before calling this cmdlet to set the computer name for the entire session.
-Description
A description for this event hub.
-Integrated
Executes the command internally rather than using the Management API. Only works when running script from within PowerShell Universal.
-Name
The name of the event hub.
-Role
The roles that can access this event hub.
-UseDefaultCredentials
Whether to use the default credentials when accessing the PowerShell Universal Management API.
-Credential
Credentials to login to the PowerShell Universal Management API.
-TrustCertificate
Whether the cmdlet should ignore certificate issues.
-Cookies
Reuses and persists authentication cookies for the current PowerShell session.
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. For more information, see about_CommonParameters.
INPUTS
None
OUTPUTS
System.Object
NOTES
RELATED LINKS
PERMISSIONS
The access token requires apis.eventhubs/create to run this cmdlet remotely.
Last updated
Was this helpful?