Giter Club home page Giter Club logo

Comments (8)

nshampur avatar nshampur commented on June 12, 2024

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.

RQF4 avatar RQF4 commented on June 12, 2024

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.

shailesh91 avatar shailesh91 commented on June 12, 2024

@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.

spitzerr avatar spitzerr commented on June 12, 2024

@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.

shailesh91 avatar shailesh91 commented on June 12, 2024

@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.

prez13 avatar prez13 commented on June 12, 2024

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.

shailesh91 avatar shailesh91 commented on June 12, 2024

@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.

shailesh91 avatar shailesh91 commented on June 12, 2024

Closing the issue. If the issue still persists please reopen.

from arcgis-powershell-dsc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.