Paso a Paso 365-ADFS-Azure Capitulo 4
Hola ya por ultimo desplegaremos nuestra maquinas virtuales partiendo de una plantilla o Template, que tan amablemente nos ofrece Azure.
En la siguiente tabla sacada de azure podemos observar las plantillas disponibles.
PublisherName |
Offer |
Sku |
CoreOS |
CoreOS |
Beta |
CoreOS |
CoreOS |
Stable |
MicrosoftDynamicsNAV |
DynamicsNAV |
2015 |
MicrosoftSharePoint |
MicrosoftSharePointServer |
2013 |
Microsoft |
Oracle-Database-12c-Weblogic-Server-12c |
Standard |
Microsoft |
Oracle-Database-12c-Weblogic-Server-12c |
Enterprise |
MicrosoftSQLServer |
SQL2014-WS2012R2 |
Enterprise-Optimized-for-DW |
MicrosoftSQLServer |
SQL2014-WS2012R2 |
Enterprise-Optimized-for-OLTP |
MicrosoftWindowsServer |
WindowsServer |
2012-Datacenter |
MicrosoftWindowsServer |
WindowsServer |
2012-R2-Datacenter |
MicrosoftWindowsServer |
WindowsServer |
2008-R2-SP1 |
MicrosoftWindowsServer |
WindowsServer |
Windows-Server-Technical-Preview |
Podremos utilizar, el siguiente comando para determinar las plantillas disponibles en azure.
en el PowerShell
azure vm image list
muy bien unas vez determinada la versiones de Sistema operativo solo nos queda desplegar para eso les aconsejo que utilizen la siguiente plantilla suministrada por Azure, que la verdad no es nada compleja y funciona adecuadamente.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
<span class="pln">$family</span><span class="pun">=</span><span class="str">"Windows Server 2012 R2 Datacenter"</span><span class="pln"> $image</span><span class="pun">=</span><span class="typ">Get</span><span class="pun">-</span><span class="typ">AzureVMImage</span> <span class="pun">|</span> <span class="kwd">where</span> <span class="pun">{</span><span class="pln"> $_</span><span class="pun">.</span><span class="typ">ImageFamily</span> <span class="pun">-</span><span class="pln">eq $family </span><span class="pun">}</span> <span class="pun">|</span><span class="pln"> sort </span><span class="typ">PublishedDate</span> <span class="pun">-</span><span class="typ">Descending</span> <span class="pun">|</span> <span class="kwd">select</span> <span class="pun">-</span><span class="typ">ExpandProperty</span> <span class="typ">ImageName</span> <span class="pun">-</span><span class="typ">First</span> <span class="lit">1</span><span class="pln"> $vmname</span><span class="pun">=</span><span class="str">"ADFS01"</span><span class="pln"> $vmsize</span><span class="pun">=</span><span class="str">"Large"</span><span class="pln"> $vm1</span><span class="pun">=</span><span class="typ">New</span><span class="pun">-</span><span class="typ">AzureVMConfig</span> <span class="pun">-</span><span class="typ">Name</span><span class="pln"> $vmname </span><span class="pun">-</span><span class="typ">InstanceSize</span><span class="pln"> $vmsize </span><span class="pun">-</span><span class="typ">ImageName</span><span class="pln"> $image $cred1</span><span class="pun">=</span><span class="typ">Get</span><span class="pun">-</span><span class="typ">Credential</span> <span class="pun">–</span><span class="typ">Message</span> <span class="str">"Type the name and password of the local administrator account."</span><span class="pln"> $cred2</span><span class="pun">=</span><span class="typ">Get</span><span class="pun">-</span><span class="typ">Credential</span> <span class="pun">–</span><span class="typ">Message</span> <span class="str">"Now type the name (not including the domain) and password of an account that has permission to add the machine to the domain."</span><span class="pln"> $domaindns</span><span class="pun">=</span><span class="str">"corp.maitchovcow.com"</span><span class="pln"> $domacctdomain</span><span class="pun">=</span><span class="str">"CORP"</span><span class="pln"> $vm1 </span><span class="pun">|</span> <span class="typ">Add</span><span class="pun">-</span><span class="typ">AzureProvisioningConfig</span> <span class="pun">-</span><span class="typ">AdminUsername</span><span class="pln"> $cred1</span><span class="pun">.</span><span class="typ">Username</span> <span class="pun">-</span><span class="typ">Password</span><span class="pln"> $cred1</span><span class="pun">.</span><span class="typ">GetNetworkCredential</span><span class="pun">().</span><span class="typ">Password</span> <span class="pun">-</span><span class="typ">WindowsDomain</span> <span class="pun">-</span><span class="typ">Domain</span><span class="pln"> $domacctdomain </span><span class="pun">-</span><span class="typ">DomainUserName</span><span class="pln"> $cred2</span><span class="pun">.</span><span class="typ">Username</span> <span class="pun">-</span><span class="typ">DomainPassword</span><span class="pln"> $cred2</span><span class="pun">.</span><span class="typ">GetNetworkCredential</span><span class="pun">().</span><span class="typ">Password</span> <span class="pun">-</span><span class="typ">JoinDomain</span><span class="pln"> $domaindns $vm1 </span><span class="pun">|</span> <span class="typ">Set</span><span class="pun">-</span><span class="typ">AzureSubnet</span> <span class="pun">-</span><span class="typ">SubnetNames</span> <span class="str">"RED_VIRTUAL"</span><span class="pln"> $disksize</span><span class="pun">=</span><span class="lit">200</span><span class="pln"> $disklabel</span><span class="pun">=</span><span class="str">"ADFSData"</span><span class="pln"> $lun</span><span class="pun">=</span><span class="lit">0</span><span class="pln"> $hcaching</span><span class="pun">=</span><span class="str">"ReadWrite"</span><span class="pln"> $vm1 </span><span class="pun">|</span> <span class="typ">Add</span><span class="pun">-</span><span class="typ">AzureDataDisk</span> <span class="pun">-</span><span class="typ">CreateNew</span> <span class="pun">-</span><span class="typ">DiskSizeInGB</span><span class="pln"> $disksize </span><span class="pun">-</span><span class="typ">DiskLabel</span><span class="pln"> $disklabel </span><span class="pun">-</span><span class="pln">LUN $lun </span><span class="pun">-</span><span class="typ">HostCaching</span><span class="pln"> $hcaching $svcname</span><span class="pun">=</span><span class="str">"Azure-MAITCHOVCOW"</span><span class="pln"> $vnetname</span><span class="pun">=</span><span class="str">"RED_PRIVADA"</span> <span class="typ">New</span><span class="pun">-</span><span class="typ">AzureVM</span> <span class="pun">–</span><span class="typ">ServiceName</span><span class="pln"> $svcname </span><span class="pun">-</span><span class="typ">VMs</span><span class="pln"> $vm1 </span><span class="pun">-</span><span class="typ">VNetName</span><span class="pln"> $vnetname Muchas gracias a todos por seguirme y si quereis compartirlo podeis hacerlo.</span> |