Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Gauthier Segay
    @smoothdeveloper
    the mbrace bits work perfectly, but I need the process I'm launching to connect back to the machine where I'm running the script
    my workflow is basically to use mbrace for my code deployment on "cloud service (classic)", the code being legacy .net code for now, which tries to connect back to the machine from which I'm deploying
    Eirik Tsarpalis
    @eiriktsarpalis
    aaah, I see
    Gauthier Segay
    @smoothdeveloper
    eventually I'll refactor the code so I can just send the code to run with mbrace, but this is a long stretch
    Eirik Tsarpalis
    @eiriktsarpalis
    yes, that would work
    though you would have to create your own .cspkg instances for MBrace
    Gauthier Segay
    @smoothdeveloper
    thanks I'll check about .cspkg
    Here's a good place to start
    it contains a smaller solution with the cspkg tempalte
    which you can edit
    Gauthier Segay
    @smoothdeveloper
    thanks for pointers, it would make sense if MS provided a .net API that can be talked to from the machines themselves, then we could just send another cloud computation with few lines of code to setup that part :)
    mbrace is an easy sell to my manager compared to setup VM with our software, need to update with each release, etc. with mbrace I can just ship the software easily :)
    Eirik Tsarpalis
    @eiriktsarpalis
    good to know :)
    Gauthier Segay
    @smoothdeveloper
    and since the F# api is wonderful, it will sell usage of F# for that area (I have to "prove" advantage of F# vs C# in every piece I promote its usage)
    Eirik Tsarpalis
    @eiriktsarpalis
    nice
    In every case, it's got a decent C# API as well
    if you are into C# interactive and all
    Gauthier Segay
    @smoothdeveloper
    yes saw there was significant efforts (which is great for mbrace adoption) toward that too, but F# computation expressions gives outstanding solution IMHO
    I hope MS starts advertising mbrace now that it has a C# api
    (and sponsoring its development)
    Eirik Tsarpalis
    @eiriktsarpalis
    haha, I wouldn't count on that :)
    Gauthier Segay
    @smoothdeveloper
    it totally removes the pain of doing azure with .net, using raw azure APIs is a real pain apparently
    Gauthier Segay
    @smoothdeveloper

    I've made a custom deployment based on starter pack, adding the tcp port I need, I've used VS "publish" option because I want to enable remote connection. I had to also set a storage connection string which I picked up from server explorer in VS.

    In my script when I issue this:

    let subscription = Config.GetSubscriptionManager()
    subscription.GetDeployments()

    It doesn't pickup the deployment and just returns an empty array, although I can see in the portal there is one deployment matching what I published from VS.

    Gauthier Segay
    @smoothdeveloper
    mmh apparently I also miss servicebus connection string, checking how to get it from portal
    Gauthier Segay
    @smoothdeveloper
    wondering if I should use Azure SDK 2.7, I've updated the solution to the most recent one 2.9 assuming it should work
    I'm still figuring out deployment issues that I'm seeing in VS
    Eirik Tsarpalis
    @eiriktsarpalis
    Yes, the subscription manager only returns deployments that have been made by the management library itself
    so anything published from the Visual Studio UI will be ignored
    Instead of "Publish" you should use the "Package" option
    here are some instructions
    Gauthier Segay
    @smoothdeveloper
    using package option, I do endup with two files, a .cspkg and ServiceConfiguration.Cloud.cscfg, I tried to use the .cspkg itself but it didn't seem to work, I'm going to retry it
    should I have both files next to each others?
    Eirik Tsarpalis
    @eiriktsarpalis
    no, one is enough
    you have to specify that in the custom cspkg path
    Gauthier Segay
    @smoothdeveloper
    ok, if my package has remote desktop enabled I get
    (Validation Errors: Error validating the .cscfg file against the .csdef file. Severity:Error, message:The service configuration file does not provide a value for setting 'Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountEncryptedPassword' for role 'MBrace.Azure.WorkerRole'.,Error validating the .cscfg file against the .csdef file. Severity:Error, message:The service configuration file does not provide a value for setting 'Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountExpiration' for role 'MBrace.Azure.WorkerRole'.,Error validating the .cscfg file against the .csdef file. Severity:Error, message:The service configuration file does not provide a value for setting 'Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountUsername' for role 'MBrace.Azure.WorkerRole'.,Error validating the .cscfg file against the .csdef file. Severity:Error, message:The service configuration file does not provide a value for setting 'Microsoft.WindowsAzure.Plugins.RemoteAccess.Enabled' for role 'MBrace.Azure.WorkerRole'.,Error validating the .cscfg file against the .csdef file. Severity:Error, message:The service configuration file does not provide a value for setting 'Microsoft.WindowsAzure.Plugins.RemoteForwarder.Enabled' for role 'MBrace.Azure.WorkerRole'.,Error validating the .cscfg file against the .csdef file. Severity:Error, message:The service configuration file does not provide a certificate identification information for certificate 'Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption' for role 'MBrace.Azure.WorkerRole'.)
    Eirik Tsarpalis
    @eiriktsarpalis
    hmmm, I'm not sure what is at fault there
    Gauthier Segay
    @smoothdeveloper
    I'm trying again without that option but with my tcp port still defined, I remember it worked but I could not connect to the process (that I deploy separately) via tcp
    my understanding is that with remote desktop enabled, it requires separate file containing the credentials
    mmmh I think I should manually upload the certificate, VS prompts me to do so if I deploy manually
    Gauthier Segay
    @smoothdeveloper
    wonder if it wouldn't require to extend https://github.com/mbraceproject/MBrace.Azure/blob/master/src/MBrace.Azure.Management/Compute.fs#L284 to work with remote desktop so I would be able to pass additional properties (mentionned in the error message)
    it would also require an option .pfx file and associated password to work (assuming it would add the certificate like it can be done in the classic console)
    I'm leaving idea of using remote desktop for now, and try to setup another cspkg with just my tcp port
    Eirik Tsarpalis
    @eiriktsarpalis
    ok
    why do you want to use remote desktop?
    I often just use mbrace to perform adminstrative stuff on my nodes
    processes run with admin rights so you can do whatever you want with the nodes' state
    Gauthier Segay
    @smoothdeveloper
    I don't really want it, although I was thinking to help me troubleshoot network setup issue I'm having (can't connect to tcp port I've opened) it would help to remote login