You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since you execute the script line-by-line in the terminal, you can add export resourceGroup=your-group to the script or type that in the terminal before you run parts of your script. There is currently no other way to bring in variables than what your terminal shell supports.
i think adding support for variables will help drive adoption. It is not practical to set so many variables (example below) each time on the terminal before switching back to scrapbook.
PREFIX="aks-egress"
RG="${PREFIX}-rg"
LOC="eastus"
PLUGIN=azure
AKSNAME="${PREFIX}"
VNET_NAME="${PREFIX}-vnet"
AKSSUBNET_NAME="aks-subnet"# DO NOT CHANGE FWSUBNET_NAME - This is currently a requirement for Azure Firewall.
FWSUBNET_NAME="AzureFirewallSubnet"
FWNAME="${PREFIX}-fw"
FWPUBLICIP_NAME="${PREFIX}-fwpublicip"
FWIPCONFIG_NAME="${PREFIX}-fwconfig"
FWROUTE_TABLE_NAME="${PREFIX}-fwrt"
FWROUTE_NAME="${PREFIX}-fwrn"
FWROUTE_NAME_INTERNET="${PREFIX}-fwinternet"
Is it possible to use variables in an azure cli scrapbook when using it on Windows ?
I want to be able things like that :
az group show --resource-group $resourceGroup
The text was updated successfully, but these errors were encountered: