Created
January 10, 2019 20:25
-
-
Save asdkant/4ae515f6be6d14ef58e12462445dd236 to your computer and use it in GitHub Desktop.
create a webtty in azure container instances
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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