<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://geeks.ms/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Juanlu, elGuerre : Sql Azure, setup, Windows Azure</title><link>http://geeks.ms/blogs/jlguerrero/archive/tags/Sql+Azure/setup/Windows+Azure/default.aspx</link><description>Etiquetas: Sql Azure, setup, Windows Azure</description><dc:language /><generator>CommunityServer 2008.5 SP1 (Build: 31106.3070)</generator><item><title>Desplegando LightSwitch en Azure. Varios click y CERO Código.</title><link>http://geeks.ms/blogs/jlguerrero/archive/2011/03/20/desplegando-lightswitch-en-azure-varios-click-y-cero-c-243-digo.aspx</link><pubDate>Sun, 20 Mar 2011 22:28:00 GMT</pubDate><guid isPermaLink="false">2a2e7ade-7474-448b-9de5-1515d8bb7d1b:190766</guid><dc:creator>Juanlu,ElGuerre</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.ms/blogs/jlguerrero/rsscomments.aspx?PostID=190766</wfw:commentRss><comments>http://geeks.ms/blogs/jlguerrero/archive/2011/03/20/desplegando-lightswitch-en-azure-varios-click-y-cero-c-243-digo.aspx#comments</comments><description>&lt;p&gt;Lleg&amp;oacute; el momento, y&amp;nbsp; tras haber podido instalar el SP1 de Visual Studio+ LightSwitch Beta 2 (&amp;iexcl;Como ya coment&amp;eacute; en un &lt;a href="http://eljuanlu.blogspot.com/2011/03/visual-studio-2010-sp1-y-lightswitch.html"&gt;post anterior&lt;/a&gt;, no era posible!), he continuado mis pasos con LightSwitch y ahora, con una&amp;nbsp; sencilla, sencilla publicaci&amp;oacute;n en Azure.&lt;/p&gt;
&lt;p&gt;He aqu&amp;iacute; los pasos para el deploy en Azure de una aplicaci&amp;oacute;n LigthSwitch + acceso a datos con SQL Azure.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Antes de nada, veamos la configuraci&amp;oacute;n del deploy/publicaci&amp;oacute;n. &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="http://geeks.ms/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/jlguerrero/image_5F00_37633231.png"&gt;&lt;img height="256" width="525" src="http://geeks.ms/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/jlguerrero/image_5F00_thumb_5F00_0B52470E.png" alt="image" border="0" title="image" style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Pulsamos &amp;ldquo;Publish&amp;hellip;&amp;rdquo;&amp;nbsp; y a seguir los pasos del wizard. &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="http://geeks.ms/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/jlguerrero/image_5F00_092D2047.png"&gt;&lt;img height="338" width="462" src="http://geeks.ms/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/jlguerrero/image_5F00_thumb_5F00_737685DF.png" alt="image" border="0" title="image" style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Como puede verse, podemos optar por modo &amp;ldquo;Desktop&amp;rdquo; o &amp;ldquo;Web&amp;rdquo; (Yo opto por el Web). &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="http://geeks.ms/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/jlguerrero/image_5F00_6D22877E.png"&gt;&lt;img height="341" width="466" src="http://geeks.ms/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/jlguerrero/image_5F00_thumb_5F00_66AB3F89.png" alt="image" border="0" title="image" style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Seguidamente en el siguiente paso del Wizard introducimos&amp;nbsp; el &amp;ldquo;Subcription ID&amp;rdquo; copiado del portal de Azure. Exite un boton de acceso directo al mismo &amp;ldquo;&lt;em&gt;Open the Windows Azure Portal&lt;/em&gt;&amp;rdquo;. &lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Seleccionamos un certificado&lt;/strong&gt; o creamos uno nuevo, en cuyo caso ser&amp;aacute; necesario &amp;ldquo;Copy Path&amp;rdquo; para localizar la ubicaci&amp;oacute;n del mismo y poderlo &lt;strong&gt;subir al portal de Azure&lt;/strong&gt;, concretamente a &amp;ldquo;&lt;strong&gt;&lt;em&gt;Management Certificates&lt;/em&gt;&lt;/strong&gt;&amp;rdquo;. &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="http://geeks.ms/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/jlguerrero/image_5F00_3CC364FD.png"&gt;&lt;img height="344" width="470" src="http://geeks.ms/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/jlguerrero/image_5F00_thumb_5F00_1CF43F9B.png" alt="image" border="0" title="image" style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Si no subimos el certificado a Azure seg&amp;uacute;n comento en el punto anterior, veremos el siguiente mensaje (&amp;ldquo;&lt;em&gt;Could not connect to Windows Azure using the provided Subscription ID and Certificate&lt;/em&gt;&amp;rdquo;) y no podremos continuar: &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="http://geeks.ms/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/jlguerrero/image_5F00_46BBA45E.png"&gt;&lt;img height="153" width="407" src="http://geeks.ms/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/jlguerrero/image_5F00_thumb_5F00_7B885E01.png" alt="image" border="0" title="image" style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Si todo va bien, accederemos al siguiente paso, donde seleccionaremos los datos de nuestra subscripci&amp;oacute;n de azure sobre la que queremos realizar el despliegue. Adicionalmente&amp;nbsp; seleccionamos el &amp;ldquo;Environment&amp;rdquo;(Deployment) en el que se va a realizar el despliegue &amp;ldquo;Production&amp;rdquo; o &amp;ldquo;Staging&amp;rdquo;. &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="http://geeks.ms/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/jlguerrero/image_5F00_5ACC98E9.png"&gt;&lt;img height="357" width="488" src="http://geeks.ms/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/jlguerrero/image_5F00_thumb_5F00_2808A443.png" alt="image" border="0" title="image" style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;En el siguiente caso seleccionamos un certificado existente (.pfx) o creamos un nuevo certificado &amp;lt;&lt;em&gt;Create new self-signed-certificate&amp;hellip;.&lt;/em&gt;&amp;gt;. &lt;strong&gt;IMPORTANTE&lt;/strong&gt;. Este certificado tendremos que subirlo tambien a Azure a trav&amp;eacute;s de su portal, pero en este caso, lo asociaremos a la subscripci&amp;oacute;n del despliegue. &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="http://geeks.ms/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/jlguerrero/image_5F00_6689DDEA.png"&gt;&lt;img height="360" width="487" src="http://geeks.ms/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/jlguerrero/image_5F00_thumb_5F00_15C7DB50.png" alt="image" border="0" title="image" style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Ahora toca el turno a la configuraci&amp;oacute;n de la conexi&amp;oacute;n de datos (SQL Azure). &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="http://geeks.ms/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/jlguerrero/image_5F00_7D903728.png"&gt;&lt;img height="359" width="491" src="http://geeks.ms/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/jlguerrero/image_5F00_thumb_5F00_6D2085A3.png" alt="image" border="0" title="image" style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;En el siguiente paso volvemos a seleccionar un certificado (distino al del selecionado en los pasos previos) o crear un nuevo certificado. &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="http://geeks.ms/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/jlguerrero/image_5F00_6E04FD5B.png"&gt;&lt;img height="364" width="498" src="http://geeks.ms/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/jlguerrero/image_5F00_thumb_5F00_699A8E62.png" alt="image" border="0" title="image" style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Si intentamos seleccionar el mismo certificado (.pfx) selecionado previamente en pasos anteriores, encontrearemos este otro error &amp;ldquo;&lt;em&gt;Unable to add &amp;lsquo;&amp;lt;XapCertifie&amp;gt;.pfx&amp;rsquo;. A file with than name alread exists&lt;/em&gt; &amp;rdquo;: &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="http://geeks.ms/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/jlguerrero/image_5F00_4E219E2D.png"&gt;&lt;img height="134" width="350" src="http://geeks.ms/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/jlguerrero/image_5F00_thumb_5F00_5D54B4A2.png" alt="image" border="0" title="image" style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Una vez m&amp;aacute;s y si todo va bien, pasaremos al siguiente paso, al &amp;uacute;ltimo. &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="http://geeks.ms/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/jlguerrero/image_5F00_3C511C2E.png"&gt;&lt;img height="365" width="499" src="http://geeks.ms/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/jlguerrero/image_5F00_thumb_5F00_1EA1C960.png" alt="image" border="0" title="image" style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&amp;ldquo;&lt;strong&gt;Publish&amp;hellip;&amp;rdquo;&lt;/strong&gt; y a esperar varios minutos con el siguiente mensaje en Visual Studio. &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="http://geeks.ms/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/jlguerrero/image3_5F00_38917583.png"&gt;&lt;img height="173" width="411" src="http://geeks.ms/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/jlguerrero/image3_5F00_thumb_5F00_470C71A8.png" alt="image" border="0" title="image" style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://geeks.ms/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/jlguerrero/image6_5F00_190EF923.png"&gt;&lt;img height="147" width="565" src="http://geeks.ms/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/jlguerrero/image6_5F00_thumb_5F00_562B4E51.png" alt="image" border="0" title="image" style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Una vez finalizada la espera.&amp;nbsp; Espera necesaria para la subida de los ficheros &amp;ldquo;.cspkg&amp;rdquo; y &amp;ldquo;ServiceConfiguration.cscfg&amp;rdquo; al storage de Azure, concretamente a un container &amp;ldquo;lightswitch&amp;rdquo;. A continuaci&amp;oacute;n se abrir&amp;aacute; el portal de azure&amp;nbsp; y comenzar&amp;aacute; el despliegue. &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="http://geeks.ms/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/jlguerrero/image_5F00_508C6C46.png"&gt;&lt;img height="140" width="470" src="http://geeks.ms/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/jlguerrero/image_5F00_thumb_5F00_62C50D3B.png" alt="image" border="0" title="image" style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Finalmente la aplicaci&amp;oacute;n esta en Azure (&amp;ldquo;EN LA NUBE&amp;rdquo;). &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="http://geeks.ms/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/jlguerrero/image_5F00_7AC82BFC.png"&gt;&lt;img height="355" width="549" src="http://geeks.ms/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/jlguerrero/image_5F00_thumb_5F00_2E1FDB5A.png" alt="image" border="0" title="image" style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Ahora podemos eliminar el contenido del container &amp;ldquo;lightswitch&amp;rdquo; de Azure Storage. &amp;iexcl;Que pena que lo lo haga el despliegue de forma autom&amp;aacute;tica!. Ser&amp;aacute; para la &amp;ldquo;Release&amp;rdquo;.&amp;nbsp;&amp;nbsp; Junto a este peque&amp;ntilde;o inconveniente, encuentro otro adicional, s&amp;oacute;lo existe un camino para el despligue. LightSwich lo controla todo, no es posible hacer despligues manuales a partir de los ficheros de despliegue. &amp;iexcl;Bueno si, en el momento que comience la publicaci&amp;oacute;n, abortamos y en la carpeta &amp;ldquo;Bin\Debug&amp;rdquo; encontraremos dichos ficheros! &lt;img src="http://geeks.ms/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/jlguerrero/wlEmoticon_2D00_openmouthedsmile_5F00_528D0945.png" alt="Open-mouthed smile" class="wlEmoticon wlEmoticon-openmouthedsmile" style="border-bottom-style:none;border-left-style:none;border-top-style:none;border-right-style:none;" /&gt;.&amp;nbsp; Desde mi punto de vista y s&amp;oacute;lo es una idea, el equipo de Azure est&amp;aacute; pensando 100% en el &amp;ldquo;Zero Code&amp;rdquo;, &lt;img src="http://geeks.ms/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/jlguerrero/wlEmoticon_2D00_winkingsmile_5F00_6B1CA695.png" alt="Winking smile" class="wlEmoticon wlEmoticon-winkingsmile" style="border-bottom-style:none;border-left-style:none;border-top-style:none;border-right-style:none;" /&gt;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Saluods @LightSwitch/SAzure &lt;br /&gt;Juanlu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://geeks.ms/aggbug.aspx?PostID=190766" width="1" height="1"&gt;</description><category domain="http://geeks.ms/blogs/jlguerrero/archive/tags/setup/default.aspx">setup</category><category domain="http://geeks.ms/blogs/jlguerrero/archive/tags/Windows+Azure/default.aspx">Windows Azure</category><category domain="http://geeks.ms/blogs/jlguerrero/archive/tags/Sql+Azure/default.aspx">Sql Azure</category><category domain="http://geeks.ms/blogs/jlguerrero/archive/tags/LightSwitch/default.aspx">LightSwitch</category></item></channel></rss>