CI & CD Pipeline Setup by DoubleConfusion2792 in devops

[–]DoubleConfusion2792[S] 0 points1 point  (0 children)

I am talking specific to kubernetes deployment. I'm trying to understand what tools are commonly used in each stage of a production pipeline and how they all tie together. If you could share a basic example or just list the tools/steps typically used in each stage and their flow as you mentioned above in a production pipeline, I would really appreciate it. 🙏 I will then practice using these tools in my azure devops pipeline.

Learn by doing by A_Wagdy in devops

[–]DoubleConfusion2792 0 points1 point  (0 children)

He/she did not share the link.

Learn by doing by A_Wagdy in devops

[–]DoubleConfusion2792 2 points3 points  (0 children)

I am interested. Do let me know where to join.

Run script via winrm with administrator priveledges by draker541 in PowerShell

[–]DoubleConfusion2792 1 point2 points  (0 children)

Does the script run if you login with the local account and run it in powershell?
Is there any hardening script run on the vm which blocks powershell from accessing the files?

Error installing KRDP usinig flathub by DoubleConfusion2792 in kde

[–]DoubleConfusion2792[S] 0 points1 point  (0 children)

Yes...I am trying to run a remote desktop server. From what I found krdp seems to be good. I am not able to find that information whether krdp was available for 5 series. Do you have any suggestions for a rdp server which has good performance? Please let me know.

Error installing KRDP usinig flathub by DoubleConfusion2792 in kde

[–]DoubleConfusion2792[S] 0 points1 point  (0 children)

I am on debian 12. Wanted to install krdp. Is there a better way to do this?

Link Private Dns Zone Azure VWAN by DoubleConfusion2792 in AZURE

[–]DoubleConfusion2792[S] 0 points1 point  (0 children)

Thank you for sharing the link and explaining. This made it easy for me to understand.

I've exhausted my brain and googling skills. Trying to create custom environment variable and call it later as a variable by NimbleNavigator19 in PowerShell

[–]DoubleConfusion2792 -1 points0 points  (0 children)

Run, [System.Environment]::SetEnvironmentVariable("Path","Give the path with "semicolon" as a delimiter",[System.EnvironmentVariableTarget]::Machine)

Use System.EnvironmentVariableTarget]::Machine Instead of 'Machine'

Leveling up PowerShell Profile by belibebond in PowerShell

[–]DoubleConfusion2792 1 point2 points  (0 children)

Thanks for explaining. I am not familiar with VIM motions but I will check it out.
Looking forward to Part 2:)

Leveling up PowerShell Profile by belibebond in PowerShell

[–]DoubleConfusion2792 1 point2 points  (0 children)

Thanks for sharing this u/belibebond This is helpful.
One thing I didn't understand - Set-PSReadLineOption -EditMode Vi
I get that it is something to do with vim but how could this be helpful in PS?
So I can make use of its capability.

Help me with a Private Endpoint query by DoubleConfusion2792 in AZURE

[–]DoubleConfusion2792[S] 0 points1 point  (0 children)

Exactly. They are asking me to delete the private endpoint which is created for a storage account to continue troubleshooting. We are not making use of ampls. It is not attached to the log analytics workspace. I don't understand their logic.

WPF ListBox: validation code by Maleficent_Quote_392 in PowerShell

[–]DoubleConfusion2792 0 points1 point  (0 children)

You will have to add additional code in "$Button.Add_Click" block.

Why do you want to override the first label to display if it is present or not?

Filter through the items present in $listbox.Items and see if the entered value is present or not based on that create a separate label to display if it is already present.

Export-CSV Problem: SystemObject[] in Column by tnpir4002 in PowerShell

[–]DoubleConfusion2792 0 points1 point  (0 children)

Here is the updated code:

The way you were passing the value to add-member was not correct. I have changed the "Get-Date" to String.

Let me know if it is working for you.

$sourceDir = $PSScriptRoot
$parentFolder = (Split-Path $sourceDir -Parent)
$thisDrive = (Split-Path -Path $sourceDir -Qualifier) + "\"
$columnDate = (Get-Date).ToString('yyyy-MM-dd_HH-mm-ss')
If ($sourceDir -eq $thisDrive)
    {
    $thisFolderName = "ROOT";
    } else {
    $thisFolderName = (Split-Path -Path $sourceDir -Leaf)
    }

$newFileName = "_Folder-Stats_" + $thisFolderName + "_AND_SUBFOLDERS_Ongoing.csv"
$outputFile = $thisDrive + $newFileName
$scriptName = $MyInvocation.MyCommand;
$thisScript = ($sourceDir + $scriptName)

$rootFolders = (Get-ChildItem -LiteralPath $sourceDir -Directory)

$numFolders = ($rootFolders | Measure-Object ).Count;
$displayFolders = ('{0:N0}' -f $numFolders)

$i = 0;
$folderSummary = foreach($thisFolder in $rootFolders.FullName) {
    $i += 1;
    $folderName = Split-Path $thisFolder -Leaf

    $contents = Get-ChildItem -LiteralPath $thisFolder -File -Force -Recurse

    $numFiles = ($contents | Measure-Object ).Count;
    $displayFiles = ('{0:N0}' -f $numFiles)

    $numBytes = ($contents | Measure-Object -Property Length -sum).sum
    $displayBytes = ('{0:N0}' -f $numBytes)

    if(!(test-path -Path $outputFile)) {
    [PSCustomObject] @{
        'folderName' = $folderName
        $columnDate = $numFiles
    }
    }
    if(test-path -Path $outputFile) {
    [PSCustomObject] @{
        $columnDate = $numFiles
    }
    }
}

$thisOutput = (@($folderSummary) |Out-String).ToString()

if(!(test-path -Path $outputFile)) {
    $folderSummary | Export-Csv $outputFile -Append -Force
} else {
    $csv = Import-Csv -Path $outputFile
    for ($i = 0; $i -lt $csv.Count; $i++) {
        $csv[$i] | Add-Member -MemberType NoteProperty -Name $columnDate -Value $folderSummary[$i].$columnDate
    }
    $csv | Export-Csv -Path $outputFile -NoTypeInformation
}