curl --insecure -sfL https://104.211.32.151:8443/v3/import/zp2b5dhb7h79fn7qlk2g7k4rl2mv7b2j29s8brxfzmhskfnt4tvpmd.yaml | kubectl apply -f -
Invoke-WebRequest : A parameter cannot be found that matches parameter name 'sfL'.
At line:1 char:17
+ curl --insecure -sfL https://104.211.32.151:8443/v3/import/zp2b5dhb7h ...
+                 ~~~~
    + CategoryInfo          : InvalidArgument: (:) [Invoke-WebRequest], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
            Asked
            
        
        
            Active
            
        
            Viewed 116 times
        
    0
            
            
        1 Answers
0
            
            
        It depends on your shell.
I usually use c:\Program files\Git\mingw64\bin\curl.exe (shipped with Git for windows) or C:\Windows\System32\curl.exe (with Windows 10), in a regular CMD shell session.
But if you are using a Powershell, as explained here, curl is a built in alias to Invoke-WebRequest cmdlet.
Use curl.exe instead of curl.
 
    
    
        VonC
        
- 1,262,500
- 529
- 4,410
- 5,250
- 
                    1I don't know why, but I tried this command after some time and resolved my error! Thanks for sharing your solution! – gokul Aug 01 '22 at 11:58
 
    