Skip to content

Instantly share code, notes, and snippets.

View imartinezm's full-sized avatar

Ivan Martinez M imartinezm

View GitHub Profile
@imartinezm
imartinezm / gist:980ff5bcdfa616ae77ff02094325c6e3
Created December 21, 2018 14:18
POWERSHELL IMPLEMENTAR HYPER-V EN WINDOWS SERVER 2016
Install-WindowsFeature RSAT-Hyper-V-Tools -IncludeAllSubFeature
Install-WindowsFeature RSAT-Clustering -IncludeAllSubFeature
Install-WindowsFeature Multipath-IO
Restart-Computer
@imartinezm
imartinezm / gist:424b2251a43f13bedc187cc0389a8d98
Created December 13, 2017 16:33
code create container windows server core
docker --help
docker --run
Install-Module DockerProvider -Force
Install-Package Docker  -ProviderName -DockerProvider -Force
docker pull microsoft/windowsservercore
docker images
docker version
hostname
Install-WindowsFeature web-server
echo "BIENVENIDOS A VENTANA DE TECNOLOGIA CONTAINERS WINDOWS SERVER 2016 " >C:\windows\wwwroot\index.html
@imartinezm
imartinezm / gist:b50c8239737b01bf2175731ebed72464
Last active December 7, 2017 16:30
Code Container Services
create service azure container
az container create --name containerperu --image microsoft/aci-helloworld --resource-group Peru --ip-address public
show details create azure container
az container show --name helloworld -g Peru -o table
show container information logs
az container logs --name containerperu --resource-group Peru
show azure container service
az container show -n containerperu -g Peru
@imartinezm
imartinezm / gist:ac2af3c581e82171e3fad35207504b2c
Created January 29, 2017 18:43
CREACION VM UBUNTU VIA POWERSHELL AZURE IMPLEMENTANDO XRDP
#Creado por Ivan Martinez Moran
#blog ivanmartinezm.wordpress.com
#Definiendo Variables
$localizacion="Canada Central"
$producto ="Canonical"
$edicion="UbuntuServer"
#Mostrando las versiones de Linux Ubuntu en Azure
Get-AzureRmVMImageSku -Location $localizacion -PublisherName $producto -Offer $edicion
@imartinezm
imartinezm / Creacion Maquina PowerShellAzure
Last active May 15, 2017 02:23
Creacion Virtual Machine PowerShellAzure
# Declaracion de Variables
## Grupo de Recursos
$ResourceGroupName = "ResourceGroupPeru"
$Location = "WestEurope"
## Almacenamiento
$StorageName = "resourcestorage1"
$StorageType = "Standard_GRS"
## Red