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
    @eiriktsarpalis actually no, I'm using the MBrace.Azure
    I'm going to investigate network settings in the config and azure documentation today, I assume the default implicit settings might not be those I need, maybe I need to specify ports to open on the vm created via mbrace
    Eirik Tsarpalis
    @eiriktsarpalis
    MBrace.Azure workers do not require any firewall configuration, all that is needed are a common set of connection strings
    in general I would avoid VM deployments in Azure; it's preferable to go for worker role deployments.
    it's easier to administrate like that
    Gauthier Segay
    @smoothdeveloper
    I'm basically using the same code as Tomas Petricek demonstrated at NDC https://github.com/tpetricek/Talks/blob/master/2016/big-data-analytics/code-done/utils/mbrace.fsx#L93
    Eirik Tsarpalis
    @eiriktsarpalis
    ok
    this shouldn't need managing any firewalls or opening up tcp ports
    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