Skip to content

Instantly share code, notes, and snippets.

View thgossler's full-sized avatar

Thomas Gossler thgossler

  • Erlangen, Germany
  • 04:59 (UTC +02:00)
  • X @thgossler
View GitHub Profile
$resourceTypesAndKinds = @{}
$PSStyle.Progress.MaxWidth = 150
$subscriptions = Get-AzSubscription | Where-Object { $_.State -ne 'Disabled' } | Sort-Object Name; foreach ($subscription in $subscriptions) {
Set-AzContext -Subscription $subscription.Id
$resourceProviders = Get-AzResourceProvider | Sort-Object ProviderNamespace; foreach ($provider in $resourceProviders) {
$providerNamespace = $provider.ProviderNamespace
foreach ($resourceType in $provider.ResourceTypes | Sort-Object ResourceTypeName) {
$resourceTypeName = $resourceType.ResourceTypeName
$concatenatedString = "$providerNamespace/$resourceTypeName"
$resourceTypesAndKinds[$concatenatedString] = $true
@thgossler
thgossler / CommandLine.cs
Last active December 21, 2022 02:42
Workaround for not supported commandLineArgs for WSL launch profile with Visual Studio remote debugging
// Slightly modified version of the code posted in https://stackoverflow.com/a/64236441/7422811
// License: Attribution-ShareAlike 2.5 Generic (CC BY-SA 2.5), https://creativecommons.org/licenses/by-sa/2.5/
using System.Text;
/// <summary>
/// Helper functions to parse a command line string into a command line argument array in
/// the same way as .NET does. Tested with .NET 6 on Windows and Ubuntu Linux.
/// </summary>
internal static class CommandLine
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy