Fall back to BOSH AZ name if cell VM is in a Azure AZ
[#164310812](https://www.pivotaltracker.com/story/show/164310812)
@@ -9,6 +9,12 @@ set +e
if [ 0 -eq $? ]; then
zone_flag="-zone=z${azure_fd}"
fi
+ azure_zone=$(curl -f --max-time 5 --connect-timeout 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
+ fi
set -e
<% end %>
