Created
June 9, 2018 14:23
-
-
Save artisticcheese/de43aaa8e1918be9b1b2e4c9a9ca4722 to your computer and use it in GitHub Desktop.
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
PS Azure:\> New-AzureRmResourceGroup -Name CI -Location EastUS | |
ResourceGroupName : CI | |
Location : eastus | |
ProvisioningState : Succeeded | |
Tags : | |
ResourceId : /subscriptions/b55607ab-c703-4044-a526-72bd701b0d48/resourceGroups/CI | |
PS Azure:\> New-AzureRmContainerGroup -ResourceGroupName CI -Name whoamiwin -Image artisticcheese/whoami -OsType Windows -DnsNameLabel whoamiwin | |
ResourceGroupName : CI | |
Id : /subscriptions/b55607ab-c703-4044-a526-72bd701b0d48/resourceGroups/CI/providers/Microsoft.ContainerInstance/containerGroups/whoamiwin | |
Name : whoamiwin | |
Type : Microsoft.ContainerInstance/containerGroups | |
Location : eastus | |
Tags : | |
ProvisioningState : Pending | |
Containers : {whoamiwin} | |
ImageRegistryCredentials : | |
RestartPolicy : Always | |
IpAddress : 40.114.111.125 | |
DnsNameLabel : whoamiwin | |
Fqdn : whoamiwin.eastus.azurecontainer.io | |
Ports : {80} | |
OsType : Windows | |
Volumes : | |
State : Pending | |
Events : | |
PS Azure:\> while ((Get-AzureRMContainerGroup -ResourceGroupName CI -Name whoamiwin -OutVariable state).State -ne "Running") {Write-Output "Current state $($state.State), Sleeping"; Start-Sleep 10} | |
Sleeping | |
Sleeping | |
Sleeping | |
PS Azure:\> $fqdn = (Get-AzureRmContainerGroup -ResourceGroupName CI -Name whoamiwin).Fqdn | |
PS Azure:\> curl -I -s $fqdn | select-string ^Path: | |
Path: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Users\ContainerAdministrator\AppData\Local\Microsoft\WindowsApps;C:\Program Files\dotnet; | |
PS Azure:\> New-AzureRmContainerGroup -ResourceGroupName CI -Name whoamiunix -Image artisticcheese/whoami -OsType Linux -DnsNameLabel whoamiunix | |
PS Azure:\> while ((Get-AzureRMContainerGroup -ResourceGroupName CI -Name whoamiunix -OutVariable state).State -ne "Running") {Write-Output "Current state $($state.State), Sleeping"; Start-Sleep 10} | |
PS Azure:\> $fqdn = (Get-AzureRmContainerGroup -ResourceGroupName CI -Name whoamiunix).Fqdn | |
PS Azure:\> curl -I -s $fqdn | select-string ^Path: | |
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment