Skip to content

Instantly share code, notes, and snippets.

Avatar

Mihai Albert luckerby

View GitHub Profile
View RetrieveAzureVmData_wFuncAppMI.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Azure.Identity;
using Azure.Storage.Blobs;
using Microsoft.Azure.WebJobs;
using Microsoft.Extensions.Logging;
View RetrieveAzureVmData_wEntApp.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Azure.Identity;
using Azure.Storage.Blobs;
using Microsoft.Azure.WebJobs;
using Microsoft.Extensions.Logging;
View AWSRetrieveEC2Instances_SSO.cs
using System;
using System.Collections.Generic;
using System.Text.Json;
using System.Threading.Tasks;
using Amazon;
using Amazon.EC2;
using Amazon.EC2.Model;
using Amazon.Runtime;
using Amazon.SSO;
using Amazon.SSO.Model;
View AWSRetrieveEC2Instances.cs
using System;
using System.Collections.Generic;
using System.Text.Json;
using System.Threading.Tasks;
using Amazon;
using Amazon.EC2;
using Amazon.EC2.Model;
using Amazon.Organizations;
using Amazon.Organizations.Model;
using Amazon.Runtime;
View one_vmNic_2IPconfigs.txt
{
"provisioningState": "Succeeded",
"primary": true,
"resourceGuid": "d77ad786-7150-4871-bbf4-da60017464b9",
"enableAcceleratedNetworking": false,
"ipConfigurations": [
{
"properties": {
"provisioningState": "Succeeded",
"privateIPAllocationMethod": "Dynamic",
View Get-AzureVMs.ps1
function RunARGquery {
param (
[string[]]$SubscriptionIds,
[string]$ARG_query
)
$fullResultSet = @()
$pageSize = 5000
# Subscription batching code below taken
View Program.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using Azure.Storage.Blobs;
using Microsoft.Graph;
using Microsoft.Graph.Auth;
using Microsoft.Identity.Client;
namespace RetrieveO365PhotosAndInjectToStorage
View VS_PackageManagerOutputWindow_CommandLineParser_NuGet_install_on_fresh_system_PackageRestoreDisabled.txt
Running restore with 12 concurrent jobs.
Reading project file C:\Users\malbert\source\repos\CmdParserTest\CmdParserTest\CmdParserTest.csproj.
Persisting no-op dg to C:\Users\malbert\source\repos\CmdParserTest\CmdParserTest\obj\CmdParserTest.csproj.nuget.dgspec.json
Restoring packages for C:\Users\malbert\source\repos\CmdParserTest\CmdParserTest\CmdParserTest.csproj...
Restoring packages for .NETCoreApp,Version=v3.1...
GET https://api.nuget.org/v3-flatcontainer/commandlineparser/index.json
OK https://api.nuget.org/v3-flatcontainer/commandlineparser/index.json 475ms
GET https://api.nuget.org/v3-flatcontainer/commandlineparser/2.7.82/commandlineparser.2.7.82.nupkg
OK https://api.nuget.org/v3-flatcontainer/commandlineparser/2.7.82/commandlineparser.2.7.82.nupkg 37ms
Resolving conflicts for .NETCoreApp,Version=v3.1...
View Build_CommandLineParser_VSOutputLog.txt
Restoring NuGet packages...
To prevent NuGet from restoring packages during build, open the Visual Studio Options dialog, click on the NuGet Package Manager node and uncheck 'Allow NuGet to download missing packages during build.'
Running restore with 12 concurrent jobs.
Reading project file C:\Users\malbert\source\repos\CmdParserTest\CmdParserTest\CmdParserTest.csproj.
The restore inputs for 'CmdParserTest' have not changed. No further actions are required to complete the restore.
Committing restore...
Assets file has not changed. Skipping assets file writing. Path: C:\Users\malbert\source\repos\CmdParserTest\CmdParserTest\obj\project.assets.json
No-Op restore. The cache will not be updated. Path: C:\Users\malbert\source\repos\CmdParserTest\CmdParserTest\obj\project.nuget.cache
Restore completed in 1.46 ms for C:\Users\malbert\source\repos\CmdParserTest\CmdParserTest\CmdParserTest.csproj.
View CommandLineParser_NuGet_install_on_fresh_system.txt
Running restore with 12 concurrent jobs.
Reading project file C:\Users\malbert\source\repos\CmdParserTest\CmdParserTest\CmdParserTest.csproj.
Persisting no-op dg to C:\Users\malbert\source\repos\CmdParserTest\CmdParserTest\obj\CmdParserTest.csproj.nuget.dgspec.json
Restoring packages for C:\Users\malbert\source\repos\CmdParserTest\CmdParserTest\CmdParserTest.csproj...
Restoring packages for .NETCoreApp,Version=v3.1...
GET https://api.nuget.org/v3-flatcontainer/commandlineparser/index.json
OK https://api.nuget.org/v3-flatcontainer/commandlineparser/index.json 485ms
GET https://api.nuget.org/v3-flatcontainer/commandlineparser/2.7.82/commandlineparser.2.7.82.nupkg
OK https://api.nuget.org/v3-flatcontainer/commandlineparser/2.7.82/commandlineparser.2.7.82.nupkg 38ms
Resolving conflicts for .NETCoreApp,Version=v3.1...