Skip to content

Instantly share code, notes, and snippets.

@asdkant
Created January 10, 2019 20:25
Show Gist options
  • Save asdkant/4ae515f6be6d14ef58e12462445dd236 to your computer and use it in GitHub Desktop.
Save asdkant/4ae515f6be6d14ef58e12462445dd236 to your computer and use it in GitHub Desktop.
create a webtty in azure container instances
# password protection doesn't seem to work, I'll figure it out eventually
resgrp='some_resource_group'
location='´some_region'
name='some_name'
dnsname='some_dns_prefix'
password='some_password'
az container create \
--resource-group $resgrp \
--location $location \
--name $name --dns-name-label $dnsname \
--image garland/butterfly \
--cpu 1 --memory 0.5 \
--ports 57575 --protocol TCP \
--os-type Linux --ip-address Public \
--environment-variables PASSWORD=$password
echo "endpoint generated in http://"$dnsname"."$location".azurecontainer.io:57575/"
echo "password is " $password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment