Log the error when failing to curl azure endpoint
[#165923841](https://www.pivotaltracker.com/story/show/165923841)
@@ -8,12 +8,16 @@ set +e
azure_fd=$(curl -f --max-time 5 --silent http://169.254.169.254/metadata/v1/InstanceInfo/FD)
if [ 0 -eq $? ]; then
zone_flag="-zone=z${azure_fd}"
+ else
+ echo "Failed to curl azure metadata endpoint for fault domain"
fi
azure_zone=$(curl -f --max-time 5 --silent -H Metadata:true "http://169.254.169.254/metadata/instance/compute/zone?api-version=2017-12-01&format=text")
if [ 0 -eq $? ]; then
if [ ! -z $azure_zone ]; then
zone_flag=""
fi
+ else
+ echo "Failed to curl azure metadata endpoint for availability zone"
fi
set -e
<% end %>
