This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
An extension for the SIFLess uninstall scripts to include SXC 9 components. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Parameters": { | |
"SolrUrl": { | |
"Type": "string", | |
"DefaultValue": "https://localhost:8989/solr", | |
"Description": "The Solr instance url." | |
}, | |
"SolrRoot": { | |
"Type": "string", | |
"DefaultValue": "c:\\solr-6.6.2", | |
"Description": "The file path to the Solr instance." | |
}, | |
"CorePrefix": { | |
"Type": "string", | |
"DefaultValue": "xp0", | |
"Description": "The prefix for each of the created indexes." | |
}, | |
"SqlServer": { | |
"Type": "string", | |
"DefaultValue": ".\\SQLSERVER", | |
"Description": "The Commerce Engine database server name." | |
}, | |
"SqlAdminUser": { | |
"Type": "string", | |
"DefaultValue": "sa", | |
"Description": "The Sql admin user account to use when installing databases." | |
}, | |
"SqlAdminPassword": { | |
"Type": "string", | |
"DefaultValue": "12345", | |
"Description": "The Sql admin password to use when installing databases." | |
}, | |
"CommerceServicesDbName": { | |
"Type": "string", | |
"DefaultValue": "SitecoreCommerce9_SharedEnvironments", | |
"Description": "The Commerce Engine database name." | |
}, | |
"CommerceServicesGlobalDbName": { | |
"Type": "string", | |
"DefaultValue": "SitecoreCommerce9_Global", | |
"Description": "The Commerce Engine global database name" | |
}, | |
"CommerceServicesPostfix": { | |
"Type": "string", | |
"DefaultValue": "Sc9", | |
"Description": "The Commerce Engine postfix for services names" | |
}, | |
"SitesRoot": { | |
"Type": "string", | |
"DefaultValue": "C:\\inetpub\\wwwroot\\", | |
"Description": "The parent directory where commerce sites were installed" | |
}, | |
"SitecoreBizFxName": { | |
"Type": "string", | |
"DefaultValue": "SitecoreBizFx", | |
"Description": "Sitecore BizFX site name" | |
}, | |
"SitecoreIdentityServerName": { | |
"Type": "string", | |
"DefaultValue": "SitecoreIdentityServer", | |
"Description": "Sitecore Identity Server name" | |
} | |
}, | |
"Variables": { | |
"Solr.FullRoot": "[joinpath(parameter('SolrRoot'), 'server', 'solr'))]", | |
"CatalogCore": "[concat(parameter('CorePrefix'), '_CatalogItemsScope')]", | |
"CustomersCore": "[concat(parameter('CorePrefix'), '_CustomersScope')]", | |
"OrdersCore": "[concat(parameter('CorePrefix'), '_OrdersScope')]", | |
"CommerceOps": "[concat('CommerceOps_', parameter('CommerceServicesPostfix'))]", | |
"CommerceShops": "[concat('CommerceShops_', parameter('CommerceServicesPostfix'))]", | |
"CommerceAuthoring": "[concat('CommerceAuthoring_', parameter('CommerceServicesPostfix'))]", | |
"CommerceMinions": "[concat('CommerceMinions_', parameter('CommerceServicesPostfix'))]", | |
"CommerceOpsPhysicalPath": "[concat(parameter('SitesRoot'), variable('CommerceOps'))]", | |
"CommerceShopsPhysicalPath": "[concat(parameter('SitesRoot'), variable('CommerceShops')))]", | |
"CommerceAuthoringPhysicalPath": "[concat(parameter('SitesRoot'), variable('CommerceAuthoring')))]", | |
"CommerceMinionsPhysicalPath": "[concat(parameter('SitesRoot'), variable('CommerceMinions')))]", | |
"SitecoreBizFxPhysicalPath": "[concat(parameter('SitesRoot'), parameter('SitecoreBizFxName'))]", | |
"SitecoreIdentityServerPhysicalPath": "[concat(parameter('SitesRoot'), parameter('SitecoreIdentityServerName')))]" | |
}, | |
"Tasks": { | |
"RemoveCores":{ | |
"Type": "ManageSolrCore", | |
"Params": [ | |
{ "Action": "Unload", "Address": "[parameter('SolrUrl')]", "Arguments": { "Core": "[variable('CatalogCore')]" } }, | |
{ "Action": "Unload", "Address": "[parameter('SolrUrl')]", "Arguments": { "Core": "[variable('CustomersCore')]" } }, | |
{ "Action": "Unload", "Address": "[parameter('SolrUrl')]", "Arguments": { "Core": "[variable('OrdersCore')]" } } | |
] | |
}, | |
"RemoveCoreFiles":{ | |
"Type": "RemoveFolder", | |
"Params": [ | |
{ "Name": "[joinpath(variable('Solr.FullRoot'), variable('CatalogCore'))]" }, | |
{ "Name": "[joinpath(variable('Solr.FullRoot'), variable('CustomersCore'))]" }, | |
{ "Name": "[joinpath(variable('Solr.FullRoot'), variable('OrdersCore'))]" } | |
] | |
}, | |
"RemoveWebsite":{ | |
"Type": "RemoveWebsite", | |
"Params": [ | |
{ "Name": "[variable('CommerceOps')]" }, | |
{ "Name": "[variable('CommerceShops')]" }, | |
{ "Name": "[variable('CommerceAuthoring')]" }, | |
{ "Name": "[variable('CommerceMinions')]" }, | |
{ "Name": "[parameter('SitecoreBizFxName')]" }, | |
{ "Name": "[parameter('SitecoreIdentityServerName')]" } | |
] | |
}, | |
"RemoveAppPool":{ | |
"Type": "RemoveAppPool", | |
"Params": [ | |
{ "Name": "[variable('CommerceOps')]" }, | |
{ "Name": "[variable('CommerceShops')]" }, | |
{ "Name": "[variable('CommerceAuthoring')]" }, | |
{ "Name": "[variable('CommerceMinions')]" }, | |
{ "Name": "[parameter('SitecoreBizFxName')]" }, | |
{ "Name": "[parameter('SitecoreIdentityServerName')]" } | |
] | |
}, | |
"RemoveWebsiteFolder":{ | |
"Type": "RemoveFolder", | |
"Params": [ | |
{ "Name": "[variable('CommerceOpsPhysicalPath')]" }, | |
{ "Name": "[variable('CommerceShopsPhysicalPath')]" }, | |
{ "Name": "[variable('CommerceAuthoringPhysicalPath')]" }, | |
{ "Name": "[variable('CommerceMinionsPhysicalPath')]" }, | |
{ "Name": "[variable('SitecoreBizFxPhysicalPath')]" }, | |
{ "Name": "[variable('SitecoreIdentityServerPhysicalPath')]" } | |
] | |
}, | |
"RemoveDatabases": { | |
"Type": "RemoveDatabase", | |
"Params": [ | |
{ | |
"DatabaseName": "[parameter('CommerceServicesDbName')]", | |
"ServerName": "[parameter('SqlServer')]", | |
"Login": "[parameter('SqlAdminUser')]", | |
"Password": "[parameter('SqlAdminPassword')]" | |
}, | |
{ | |
"DatabaseName": "[parameter('CommerceServicesGlobalDbName')]", | |
"ServerName": "[parameter('SqlServer')]", | |
"Login": "[parameter('SqlAdminUser')]", | |
"Password": "[parameter('SqlAdminPassword')]" | |
} | |
] | |
} | |
}, | |
"Modules":[ | |
".\\Invoke-RemoveDatabaseTask.psm1", | |
".\\Invoke-RemoveFolderTask.psm1", | |
".\\Invoke-RemoveAppPoolTask.psm1", | |
".\\Invoke-RemoveWebsiteTask.psm1" | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Add this to your SIFLess-EZUninstall script | |
$commerceParams = @{ | |
Path = "remove-commerce.json" | |
SolrUrl = $SolrUrl | |
SolrRoot = $SolrRoot | |
CorePrefix = $prefix | |
SqlServer = $SqlServer | |
SqlAdminUser = $SqlAdminUser | |
SqlAdminPassword = $SqlAdminPassword | |
} | |
Install-SitecoreConfiguration @commerceParams |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment