git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/AzureHelpers/Private
diff options
context:
space:
mode:
authormail_redacted_for_web 2025-07-24 14:49:27 +0200
committermail_redacted_for_web 2025-07-24 14:49:27 +0200
commit1b082205f1e98a084695b042adec5cc122ff7717 (patch)
treeddfc10de4f5a9f7b6732ae98d6d52cf72769f58e /AzureHelpers/Private
downloadazure-helpers-1b082205f1e98a084695b042adec5cc122ff7717.tar.bz2
InComm, rather spontaneous
Diffstat (limited to 'AzureHelpers/Private')
-rw-r--r--AzureHelpers/Private/vars.ps1.example46
1 files changed, 46 insertions, 0 deletions
diff --git a/AzureHelpers/Private/vars.ps1.example b/AzureHelpers/Private/vars.ps1.example
new file mode 100644
index 0000000..ba17300
--- /dev/null
+++ b/AzureHelpers/Private/vars.ps1.example
@@ -0,0 +1,46 @@
+#!powershell
+# vim:syntax=ps1:ts=4
+<#
+.SYNOPSIS
+
+Define variables for the functions defined mainly in /public
+
+.OUTPUTS
+
+[Hashtable]$tenantMap Maps desired names to a subscription's tenant UUID
+
+[Hashtable]$subscrMap Maps desired names to a subscription's own UUID
+#>
+# For now, we have to do these manually.
+# For every subscription you want to use with Login-AzSubscription,
+# add the name in the enum and the tenant UUID in the tenant map as well
+# as the subscription UUID in the subscription map.
+# Here, you do it once. Better than every time you switch subscriptions :-)
+
+
+# NOT USED ANYMORE. The validation we can do through this is outweighed by
+# users having to populate only simple variables below. Plus, we have to
+# check whether the maps contain the key in any case and do that already.
+# The enum would make more sense in case of a centralised output, which is why
+# we keep this commented out.
+# # The names you want to use for the subscriptions. Does not have to match the
+# # actual names in Azure - use simplified names if you like to.
+# Add-Type -TypeDefinition @"
+# public enum azSubscriptions {
+ # common,
+ # customer1
+ # }
+# "@
+
+# The tenants that the subscriptions have been created in. Again, use whatever
+# name - the UUIDs are important.
+$tenantMap = @{
+ 'common' = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
+ 'customer1' = 'yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy'
+}
+
+# The subscription UUIDs themselves. Again, only the UUIDs must match Azure.
+$subscrMap = @{
+ 'common' = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
+ 'customer1' = 'yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy'
+} \ No newline at end of file