Skip to content

Commit

Permalink
Feature/ux improvements (#2)
Browse files Browse the repository at this point in the history
* improved comments

* changed bicep installation method for MacOS
  • Loading branch information
vjirovsky-pure authored Sep 21, 2023
1 parent b2cf28f commit 2ee145b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
29 changes: 15 additions & 14 deletions 00-setup-machine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,22 @@ fi
if [[ "$OSTYPE" =~ ^darwin ]]; then

# install az cli
brew update && brew install azure-cli
brew update && brew install azure-cli

# Add the tap for bicep
brew tap azure/bicep
# install jq
brew install jq

brew help
if [[ $? != 0 ]] ; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
else
brew update
fi
# install bicep cli

# Fetch the latest Bicep CLI binary
curl -Lo bicep https://github.com/Azure/bicep/releases/latest/download/bicep-osx-x64
# Mark it as executable
chmod +x ./bicep
# Add Gatekeeper exception (requires admin)
sudo spctl --add ./bicep
# Add bicep to your PATH (requires admin)
sudo mv ./bicep /usr/local/bin/bicep

brew install bicep
brew install jq

fi

# check installed tooling
Expand All @@ -52,9 +53,9 @@ fi

az bicep version
if [ $? == 0 ]; then
echosuccess "[.] bicep support...OK";
echosuccess "[.] az-cli bicep support...OK";
else
echo "Installing bicep"
echo "Enabling bicep support in az-cli"
az bicep install
fi

Expand Down
4 changes: 3 additions & 1 deletion 02-cbs.bicepparam.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ param arrayName = 'my-array-name'
param licenseKey = 'CBS-TRIAL-LICENSE'
param cbsModelSku = 'V20MUR1'
param orgDomain = 'myorgdomain.dev'
param managedUserIdentityId = '/subscriptions/<subscriptionId>/resourceGroups/<rgName>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/<uminame>'
// replace with resource ID of the managed identity (e.g. from output of 01-deploy-prerequisities.sh)
param managedUserIdentityId = '/subscriptions/<---MY SUBSCRITION ID--->/resourceGroups/<---RG NAME--->/providers/Microsoft.ManagedIdentity/userAssignedIdentities/<---NAME OF USER MANAGED IDENTITY --->'
// replace with vNET name (e.g. from output of 01-deploy-prerequisities.sh)
param vnetName = 'my-vnet-name'
param availabilityZone = 1
1 change: 1 addition & 0 deletions 03-test-vm.bicepparam.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ param resourceGroupName = 'your-resource-group-name'

param extensionFileUrl = 'https://raw.githubusercontent.com/PureStorage-OpenConnect/cbs-deploy-bicep/main/templates/test-vm-extensions/setup-demo-cbs.ps1'
param extensionCustomizeUXFileUrl = 'https://raw.githubusercontent.com/PureStorage-OpenConnect/cbs-deploy-bicep/main/templates/test-vm-extensions/customize-vm.ps1'
// replace with IP address of load balancer of CBS (e.g. from output of 02-deploy-cbs.sh)
param PureManagementIP = '<< IP address of load balancer of CBS >>'

// this is CBS default username and password
Expand Down

0 comments on commit 2ee145b

Please sign in to comment.