Reading this article on WebPI from August, 2022, I would think WebPI was active, but now I get from the command line that it's retired.
Are there any alternatives to this?
I was trying to install Service Fabric:
PS C:\Users\caec> C:\"Program Files"\"Microsoft SDKs"\Azure\".NET SDK"\v2.9\bin\plugins\WebDeploy\WebpiCmd.exe /List /ListOption:All
The software that you obtain using the Web Platform Installer Command Line Tool is licensed to you by its owner. Microsoft grants you no rights for third party software.
Successfully loaded primary feed: https://aka.ms/webpifeed51
Current language of installers is English
There are no products available for Previously Installed Products
--Available Products
ID Title
----------------------------------------
WebPIRetired The Web Platform Installer is now officially retired
There are no products available for Applications
Are there any other ways to install Service Fabric with some kind of package manager?
I tried in my environment and installed the service fabric successfully .
Yes, the Web Platform Installer (WebPI) is retired on September 1, 2022 & no longer supported and has been removed. Using tools like PowerShell, NuGet, and Chocolatey, Microsoft has shifted to a more current package method.
You can install the service fabric cluster using PowerShell Gallery to download the Service Fabric SDK and related modules.
Open Powershell command prompt and run as administrator.
Command:
Install-Module -Name Az.ServiceFabric -RequiredVersion 3.1.0
Console:
Once its installation done, you can import the Service Fabric modules by running the following command:
Command:
Import-module -Name Az.ServiceFabric
Once imported you can use the get-module command to verify it is installed.
Another approach is Chocolatey package manager same as PowerShell run as administrator.
Command:
choco install service-fabric
Console:
Reference:
Chocolatey Software | Service Fabric 9.1.1390
Related
I'm having problems with Service Fabric that I can't figure out, so I will try a reinstall. However, I want to do this using the CLI, but I can't even find it in the list of installed packages;)
First trying Get-AppxPackage, which doesn't list either the SDK or the Runtime.
Get-AppxPackage –AllUsers
I also tried Get-WmiObject and this actually lists the SDK, but not the Runtime.
PS C:\Users\caec> Get-WmiObject -Class Win32_Product| Where-Object -Property Name -Match "Fabric"
IdentifyingNumber : {8D646D05-61C0-49AA-98C0-B92AAF1F9119}
Name : Microsoft Azure Service Fabric SDK
Vendor : Microsoft Corporation
Version : 6.1.1390.9590
Caption : Microsoft Azure Service Fabric SDK
If I look in installed Apps in Control Panel, I see both.
Any pointers?;)
I tried installing service fabric CLI in my Azure Bash environment and able to run it successfully after installation.
Install service fabric using below pip command.
Note: Make sure that you check the Python, Service Fabric as well as pip version compatibility.
pip install -I sfctl==11.2.0 //Latest version
Once it gets installed successfully, execute below command to check the runtime version & compatibility as shown:
sfctl --h
Executing below command will take you to the service fabric command line and sub commands.
sfctl
MSDoc for reference.
I need to install Web Deploy 3.6 for Hosting Servers. Normally you would use the Web Platform Installer, but I need to deploy this using PowerShell. I have found the download for Web Deploy 3.6 and can use PowerShell to install the .MSI of that, but that is different that Web Deploy 3.6 for Hosting Servers.
Does anyone know where I can download Web Deploy 3.6 for Hosting Servers or know how to use PowerShell to install via the Web Platform Installer?
I have located the answer. The Web Platform Installer has an API so you can call the .exe with PowerShell akin to this:
& "C:\Program Files\Microsoft\Web Platform Installer\WebPICMD.exe" /List /ListOption:Available
There are install options as noted here: https://learn.microsoft.com/en-us/iis/install/web-platform-installer/web-platform-installer-v4-command-line-webpicmdexe-rtw-release
How would I run a program installer (in C:\Downloads) using a Powershell V1 script?
I do not have control over the Powershell version so please do not ask me to update to newer version.
If I do it manually, there will be a few options for me to choose before installing. I also have to specify the location for the application.
If I have to do it via scripts, how do I set which options to choose and specify the location?
I have searched the application support page and they do not have anything I need for the installation of the software via scripts.
I am not a very skilled person when it comes to scripting as I just started out months ago.
Do you know about Chocolatey? It's a Windows package manager that allows you to install Windows applications using CLI.
To install Chrome for example:
choco install googlechrome
You can find all the available packages here.
I'm having trouble with installing PowerShell 5 on Windows Server 2012 R2 using Packer.
To install PowerShell 5.1, I'm using chocolatey
powershell
iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex
choco install PowerShell -y
I need to to do this for two packer builder:
Amazon Web Services EC2 AMI.
Hyper-V Vagrant.
With the Amazon Web Services EC2 AMI I've tried executing the above from the following locations
As part of the user_data_file script.
As an inline provision script.
I've added the windows-restart provision in the flow after the execution of the fragment.
Similarly I've tried the same with the Hyper-V Vagrant both as part of the Autounattend flow and as an inline provision.
In both cases the installation fails because the user profile is not created. At least I think that is the problem. As a reference, I've faced the exact same problem when installing sql server express.
Has anyone managed to accomplish this flow and what is your recommendation?
PowerShell package uses MSU (Windows Update file). There are a couple of considerations here:
Ensure Windows Updates Service is turned on. Chocolatey doesn't do that yet, although there is an issue filed.
MSUs must be run locally from the machine. So if you are running over WinRM, you instead need to have it set up a scheduled task to call choco install and then run it that way.
Yes, that second point is accurate. No, it is not Chocolatey's fault. That's a Microsoft design decision with MSU files. It's a real PITA.
FYI - BoxStarter handles it appropriately, and it can be used with Packer. You will find less pain if you look there.
HTH
I tried below command
Get-Module -ListAvailable
But it did not showed me "FailoverClusters" in the list
From where I can download this module? Do I have to install any SDK?
Note: I do not want to install Azure SDK. Is there any other way?
Update
I am using my local windows 10 to remote connect to the Azure Virtual Machine (Windows Server 2012 R2). I do want to manage all configurations using powershell from my local windows 10 machine.
As jisaak already explained, the FailoverClusters module is installed when you install the Failover Clustering feature on a Windows Server.
If, however, you want to manage a cluster from a computer without the Failover Clustering feature installed, this is what you do:
Download the appropriate version of Remote Server Administration Tools
Run the installer
Navigate to the Programs and Features control panel pane (run appwiz.cpl)
Choose "Turn Windows Features on or off"
Find the "Failover Cluster Management" feature under Remote Server Administration Tools
Enable it
Voila
The FailoverClusters Windows PowerShell module is installed on the
computer with the Failover Clustering feature
Source
Install the Failover Clustering Feature