New D365TopologyFile - FH-Inway/d365fo.tools GitHub Wiki
Create a new topology file
New-D365TopologyFile [-Path] <String> [-Services] <String[]> [-NewPath] <String> [<CommonParameters>]
Build a new topology file based on a template and update the ServiceModelList
New-D365TopologyFile -Path C:\Temp\DefaultTopologyData.xml -Services "ALMService","AOSService","BIService" -NewPath C:\temp\CurrentTopology.xml
This will read the "DefaultTopologyData.xml" file and fill in "ALMService","AOSService" and "BIService" as the services in the ServiceModelList tag. The new file is stored at "C:\temp\CurrentTopology.xml"
$Services = @(Get-D365InstalledService | ForEach-Object {$_.Servicename})
PS C:\> New-D365TopologyFile -Path C:\Temp\DefaultTopologyData.xml -Services $Services -NewPath C:\temp\CurrentTopology.xml
This will get all the services already installed on the machine. Afterwards the list is piped to New-D365TopologyFile where all services are import into the new topology file that is stored at "C:\temp\CurrentTopology.xml"
Path to the template topology file
Type: String
Parameter Sets: (All)
Aliases: File
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The array with all the service names that you want to fill into the topology file
Type: String[]
Parameter Sets: (All)
Aliases:
Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Path to where you want to save the new file after it has been created
Type: String
Parameter Sets: (All)
Aliases: NewFile
Required: True
Position: 4
Default value: None
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.
Author: Mötz Jensen (@Splaxi)