Skip to content
Snippets Groups Projects
Commit 8f8ec7ef authored by Recolic's avatar Recolic :house_with_garden:
Browse files

.

parent 1a5055f0
No related branches found
No related tags found
No related merge requests found
......@@ -96,6 +96,8 @@ if ! az group show -g "$resgrp" > /dev/null 2>&1; then
debugexec az group create -n "$resgrp" --location "$location" || exit $?
fi
plugin_hook plugin_before_av_creat
# Create an availability set if we want deploy into specific node/cluster. This could be a plugin.
if [ "$cluster" != "" ]; then
echo_warn "++ Using TiP session $tipid at cluster $cluster"
......
......@@ -11,6 +11,10 @@ Conflict: Please include this plugin **after** 'secured'
"
}
function plugin_before_av_creat () {
avname="${avname}_ex$(head -c3 /dev/urandom | base64 -w0 | tr -d =/+)"
}
function plugin_before_vnet_creat () {
az network vnet show --name "${vnetname}" --resource-group "${resgrp}" --query "name" --output tsv >/dev/null 2>&1 || ! echo_warn "[vnet-append] Error: To use this plugin, vnet $vnetname must already exists in $resgrp." || exit 1
vmname="${vmname}_ex$(head -c3 /dev/urandom | base64 -w0 | tr -d =/+)"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment