Comments (8)
Hello @prez13
Thank you for the feedback.
1, Can you provide the parameters you provided as input to Install-PreReqs.ps? In particular the ModuleSourcePath parameter.
2. If you install 7-zip manually, the script should not attempt to install/download it again. Can you check if 7-zip was installed correctly in ProgramFiles\7-Zip\7z.exe
3. Good point. We assume the execution policy can be set to execute remote script. Using the Unblock-File commandlet is a possible option.
Please continue to provide feedback and we welcome your contributions as well.
from arcgis-powershell-dsc.
Hi @prez13,
I didn't encounter your first issue but here are a couple suggestions for the other two you might try. I install NuGet and Chocolaty, which I then use to get 7-zip and the dsc modules, all in the Pre-Reqs script (which I expanded). I make sure to run the dsc piece on my local and the remote machines to keep them in sync.
function Install-NuGet {
if (Test-Path -Path "C:\Program Files\PackageManagement\ProviderAssemblies\nuget") {
Write-Output "NuGet is already installed"
}
else {
Write-Output "Installing NuGet"
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
Import-PackageProvider -Name NuGet -RequiredVersion 2.8.5.201
Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted
}
}
function Install-Choco {
Write-Output "Checking Choco"
Get-PackageProvider -Name "Chocolatey" -ForceBootstrap
}
function Install-7zip {
if (Test-Path -Path "C:\Program Files\7-Zip\7z.exe") {
Write-Output "7zip is already installed"
}
else {
Write-Output "Installing 7zip"
Install-Package -Name "7zip" -ProviderName "Chocolateyget"
}
}
function Install-ArcgisDSC {
Import-Module -Name PSDesiredStateConfiguration
if (Get-DscResource -Module "ArcGIS") {
Write-Output "ArcGIS DSC is already installed, updating..."
Install-Module ArcGIS -Force
}
else {
Write-Output "Installing ArcGIS DSC Library"
Install-Module ArcGIS -Force
}
}
from arcgis-powershell-dsc.
@RQF4 Thanks for the contribution. This is a very good script to have when all the machines have access to the internet and have WMF 5 installed.
@prez13 I have made some changes to address issues 1 and 3 with the changes I have made to Appendix B
.
from arcgis-powershell-dsc.
@prez13 another Workaround for issue 2 is to extract the installer manually and refer to the Setup.exe of the extracted installer in the configuration. Then no 7-zip and no Internet Connection at all is needed…
@shailesh91 Maybe this can be added in the documentation. i think its a good solution for disconnected Environments. you have to extract the installer once and you can use it many times in pointing the configuration to the extracted files...
from arcgis-powershell-dsc.
@spitzerr yes that is a good solution for issue 2. Thanks for the suggestion, I will consider adding it to the documentation.
from arcgis-powershell-dsc.
Hi @shailesh91, thank you for the changes. We need to upgrade a few ArcGIS Server machines, which would be a good opportunity to test your modifications. However, I just heard from Esri personnel at the Dev Summit in Europe that it is not recommended to mix deployment methods, which means in our case: we should not use PowerShell DSC to upgrade ArcGIS Server since it was installed manually (not using DSC). Can you confirm this?
from arcgis-powershell-dsc.
@prez13 Yes, this is correct. We do not recommend this since there is the possibility of the user missing out on some configurations changes that might have been made. Even, if you have complete knowledge about your configuration we still advise proceeding with caution when mixing deployment methods.
from arcgis-powershell-dsc.
Closing the issue. If the issue still persists please reopen.
from arcgis-powershell-dsc.
Related Issues (20)
- "Register an Enterprise Geodatabase with ArcGIS Server site" Links to devtopia.esri.com HOT 1
- Changelogs for versions so scripts can be more easily upgraded
- 4.2: GISServer-GeneralPurpose-MultipleWA-MultiContext.json Uses AllNodes.WebAdaptorConfig.ServerContext Instead of AllNodes.WebAdaptorConfig.Context
- DSC 4.2 - Enterprise 11.1 - AllNode property not getting completely processed when doing downloads. HOT 1
- Documentation: Portal Content directory must exist, it will not be created HOT 1
- Service account username/password is not changed if service is already set as automatic startup HOT 1
- Enterprise 11.1 - Error creating site when using Azure Storage accounts. HOT 8
- Enterprise 11.2 - Insights 2023.3 HOT 1
- Web Adaptor fails to install with exit code 1642 HOT 2
- Installing on AWS image with pre-installed server HOT 7
- WebAdaptor fails to install with error SendConfigurationApply function did not succeed HOT 6
- [ArcGISLicense] ArcGIS Pro Single licensing not working. HOT 1
- Multiple WA settings HOT 4
- Server installation error when defining WebAdaptor in role HOT 1
- ArcGIS Enterprise Upgrade From 11.1 to 11.2 Failed to Install Portal HOT 6
- ArcGIS Pro Patches not Downloaded/Installed HOT 5
- WebAdaptors fails to install in a base deployment with error SendConfigurationApply function did not succeed HOT 9
- Upgrade Base Deployment from 11.2 to 11.3 HOT 4
- Invalid MOF definition for node error when installing 11.3 HOT 1
- Enterprise 11.1 Install ODBC Driver 18.1.2.1 fails if already installed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arcgis-powershell-dsc.