-
Notifications
You must be signed in to change notification settings - Fork 0
/
eventhubs_nslookup.sh
33 lines (25 loc) · 933 Bytes
/
eventhubs_nslookup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
# Variables
eventHubsNamespaceEndpoint=$1
blobServicePrimaryEndpoint=$2
# Parameters validation
if [[ -z $eventHubsNamespaceEndpoint ]]; then
echo "eventHubsNamespaceEndpoint parameter cannot be null or empty"
exit 1
fi
if [[ -z $blobServicePrimaryEndpoint ]]; then
echo "blobServicePrimaryEndpoint parameter cannot be null or empty"
exit 1
fi
# Eliminate debconf warnings
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
# Update the system
sudo apt-get update -y
# Upgrade packages
sudo apt-get upgrade -y
# Run nslookup to verify that public hostname of the Service Bus namespace
# is properly mapped to the private address of the provate endpoint
nslookup $eventHubsNamespaceEndpoint
# Run nslookup to verify that public hostname of the Blob storage account
# is properly mapped to the private address of the provate endpoint
nslookup $blobServicePrimaryEndpoint