Add D365BroadcastMessageConfig - FH-Inway/d365fo.tools GitHub Wiki
Save a broadcast message config
Add-D365BroadcastMessageConfig [-Name] <String> [[-Tenant] <String>] [[-URL] <String>] [[-ClientId] <String>]
[[-ClientSecret] <String>] [[-TimeZone] <String>] [[-EndingInMinutes] <Int32>] [-OnPremise] [-Temporary]
[-Force] [<CommonParameters>]
Adds a broadcast message config to the configuration store
Add-D365BroadcastMessageConfig -Name "UAT" -Tenant "e674da86-7ee5-40a7-b777-1111111111111" -URL "https://usnconeboxax1aos.cloud.onebox.dynamics.com" -ClientId "dea8d7a9-1602-4429-b138-111111111111" -ClientSecret "Vja/VmdxaLOPR+alkjfsadffelkjlfw234522"
This will create a new broadcast message configuration with the name "UAT". It will save "e674da86-7ee5-40a7-b777-1111111111111" as the Azure Active Directory guid. It will save "https://usnconeboxax1aos.cloud.onebox.dynamics.com" as the D365FO environment. It will save "dea8d7a9-1602-4429-b138-111111111111" as the ClientId. It will save "Vja/VmdxaLOPR+alkjfsadffelkjlfw234522" as ClientSecret. It will use the default value "UTC" Time Zone for converting the different time and dates. It will use the default end time which is 60 minutes.
Add-D365BroadcastMessageConfig -Name "UAT" -OnPremise -Tenant "https://adfs.local/adfs" -URL "https://ax-sandbox.d365fo.local" -ClientId "dea8d7a9-1602-4429-b138-111111111111" -ClientSecret "Vja/VmdxaLOPR+alkjfsadffelkjlfw234522"
This will create a new broadcast message configuration with the name "UAT". It will target an OnPremise environment. It will save "https://adfs.local/adfs" as the OAuth Tenant Provider. It will save "https://ax-sandbox.d365fo.local" as the D365FO environment. It will save "dea8d7a9-1602-4429-b138-111111111111" as the ClientId. It will save "Vja/VmdxaLOPR+alkjfsadffelkjlfw234522" as ClientSecret. It will use the default value "UTC" Time Zone for converting the different time and dates. It will use the default end time which is 60 minutes.
The logical name of the broadcast configuration you are about to register in the configuration store
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Azure Active Directory (AAD) tenant id (Guid) that the D365FO environment is connected to, that you want to send a message to
Type: String
Parameter Sets: (All)
Aliases: $AADGuid
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
URL / URI for the D365FO environment you want to send a message to
Type: String
Parameter Sets: (All)
Aliases: URI
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The ClientId obtained from the Azure Portal when you created a Registered Application
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The ClientSecret obtained from the Azure Portal when you created a Registered Application
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Id of the Time Zone your environment is running in
You might experience that the local VM running the D365FO is running another Time Zone than the computer you are running this cmdlet from
All available .NET Time Zones can be traversed with tab for this parameter
The default value is "UTC"
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 6
Default value: UTC
Accept pipeline input: False
Accept wildcard characters: False
Specify how many minutes into the future you want this message / maintenance window to last
Default value is 60 minutes
The specified StartTime will always be based on local Time Zone. If you specify a different Time Zone than the local computer is running, the start and end time will be calculated based on your selection.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: 7
Default value: 60
Accept pipeline input: False
Accept wildcard characters: False
Specify if environnement is an D365 OnPremise
Default value is "Not set" (= Cloud Environnement)
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Instruct the cmdlet to only temporarily add the broadcast message configuration in the configuration store
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Instruct the cmdlet to overwrite the broadcast message configuration with the same name
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Tags: Servicing, Broadcast, Message, Users, Environment, Config, Configuration, ClientId, ClientSecret
Author: Mötz Jensen (@Splaxi)
Clear-D365ActiveBroadcastMessageConfig
Get-D365ActiveBroadcastMessageConfig
Get-D365BroadcastMessageConfig