I have a script that if kept on the same line, it'll be quite annoying to edit. But at the point at where I want to break line, I get the error when running,
-ApplicationParameter : The term '-ApplicationParameter' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
I would just like for this to have that clean look, as I will be editing it with every deployment.
# Installs the application
New-ServiceFabricApplication -ApplicationName $ApplicationName -ApplicationTypeName $ApplicationType -ApplicationTypeVersion $ApplicationVersion |
-ApplicationParameter @{
Logic_ASPNETCORE_ENVIRONMENT = "LOCAL";
Logic_InstanceCount = "1";
Logic_ServiceUser = "switchcommerce\localdevgmsa";
Data_ASPNETCORE_ENVIRONMENT = "LOCAL";
Data_PartitionCount = "1";
Data_MinReplicaSetSize = "3";
Data_TargetReplicaSetSize = "3";
Data_ServiceUser = "switchcommerce\localdevgmsa";
}
I've tried using the '|' symbol and n and r but no luck. Is there a way to keep it looking like this but make sure it'll run? Or are you just unable to start a line with a parameter: -ApplicationParameter