Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
01-20-2020 11:33 PM
Hello,
I was able to get the az cli
script that Mr Allen put together here working except for the curl
command at the end to change the default password.
Rather than run a command after the fact and have an unsecured instance facing the internet (for even a few seconds), I want to inject the new password as part of the build.
Is this possible?
Thanks
01-21-2020 04:18 AM
It's possible. In the step of the script that creates the network access rules and does this:
az network nsg rule create
You just need to add a flag --source-address-prefixes
. Use that to specify the network range of where you're coming from, and then instead of the security groups being open to the internet, they can be open to the IP range you specify, or no IPs at all. You can always adjust the definition of the network security rules after the VM has finished starting up.
Here's the reference on how that command works
01-21-2020 09:53 PM
This is very good information, thank you. I will try this out now.
Thank you!
01-21-2020 10:48 PM
For others that stumble here, the following worked to allow only a single IP address to access the VM:
curl ifconfig.me
to get current IP addressaz network nsg rule create
--source-address-prefixes your.ip.address.here/32 \
All the sessions of the conference are now available online