-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tutorial 0-provision-azure-cluster errs on Config.ProvisionCluster() #97
Comments
@MaxWilson Yes, unfortunately this means the tutorial is no longer valid, and there is no simple getting-started path for MBrace at the moment. We will need to adjust the docs until this is resolved |
Thanks. At least I don't have to bang my head on the wall now. :) My aim is familiarization and experimentation, so I guess I'll just browse the samples and the docs for now without running them, at least in Azure. Hopefully I can get the Thespian samples working in VS 2015... |
@MaxWilson In the short term, you can use the Thespian (local) cluster to get up and running. You could also give https://github.com/isaacabraham/mbrace-arm a try. |
I ran into the same issue (I suppose many will do) and I was about to give up, but trying MBrace with Thespian sounds better. |
Same here! (Namely newbie seeing similar errors.) Glad it's not (only) my stupidity, & that I found this issue. All working fine with Thespian, so that's good. I also tried manually creating from the Azure portal, three items:
taking note of the connection strings (for 2 & 3) & then submitting the commands here: http://mbrace.io/starterkit/HandsOnTutorial.FSharp/going-further/200-managing-azure-clusters.html namely: let serviceBusConnection = " ... enter ServiceBusConnectionString here ..."
let storageConnection = "... enter StorageConnectionString here ... "
let config = Configuration(storageConnection, serviceBusConnection)
let cluster = AzureCluster.Connect(config, logger = ConsoleLogger(true), logLevel = LogLevel.Info) Should that work at this point? Let me just get you the error log... wow, no errors this time. It worked! I have a cluster! :) But no workers. :( When I try to run 1-hello-world, I get
OK, probably best to look at the new ARM code that @isaacabraham is working on rather than work with the old code? -- |
In case this is useful to anyone else getting familiar with MBrace, I have been successful in creating four artifacts (visible on the Azure Portal) using the instructions in the README.md file, to execute commands in a PowerShell window ## Logs into Azure using your credentials - no need for pub setting
Login-AzureRmAccount
## Create a "resource group" for the cluster, called MyCluster
New-AzureRmResourceGroup -Name MyCluster -Location "canadacentral"
## Create a 'small' MBrace cluster called MyCluster!
New-AzureRmResourceGroupDeployment -ResourceGroupName MyCluster -TemplateFile .\azuredeploy.json -TemplateParameterFile "small-cluster.json" Bravo! (I see However, I still don't have any workers? (On the basis of running As above, I tried the F# commands here: 200-managing-azure-clusters.html namely: let serviceBusConnection = " ... enter ServiceBusConnectionString here ..."
let storageConnection = "... enter StorageConnectionString here ... "
let config = Configuration(storageConnection, serviceBusConnection)
let cluster = AzureCluster.Connect(config, logger = ConsoleLogger(true), logLevel = LogLevel.Info) which successfully gives me a At that point, should I be able to go straight to 1-hello-world.fsx & start to execute cloud workflows, such as let quickText =
cloud { return "Hello world!" }
|> cluster.Run or am I missing extra steps (to create workers)? Perhaps I should not expect any code from the |
Hi. No, that should be all you need to get things working for the ARM-based deployment. What version of VS are you running with? Also - try getting worker stats from your cluster - what do you see? The tutorials should work 100% with both ARM + App Service or the old Cloud Service approach. The only real different between them is that the ARM version hosts MBrace in the App Service (IIS) rather than Cloud Services (which are really just VMs with some add-ons). The code should work on both without an issue. |
@roguetrainer I was able to provision and deploy a cluster by manually creating a ServiceBus resource and then passing connection strings for storage and the new bus: let deployment = Deployment.Provision(pubSettingsFile, Region.East_US, 2, VMSize.A1, logger = ConsoleLogger(true), logLevel = LogLevel.Info, subscriptionId=subscription.Id, storageAccount=storageConnection, serviceBusAccount=serviceBusConnection) There are some issues with VM sizes on for the smaller tiers and the provisioning takes a little bit of time before you'll get workers. |
Hi,
Newbie here. I hit an issue when trying the first tutorial (0-provision-azure-cluster.fsx). When I execute the line
let deployment = Config.ProvisionCluster()
I get a bunch of successes but also an error:
Binding session to 'D:\code\rtg\MBraceAzure\HandsOnTutorial.FSharp../packages/MBrace.Azure/tools\Newtonsoft.Json.dll'...
The referenced link (https://go.microsoft.com/fwlink/?linkid=852159&clcid=0x409) says something about a recent change to Azure functionality.
ACS Namespaces you create before June 30, 2017 will not be affected and will be fully supported, however, attempts to create new ACS enabled Service Bus, Event Hubs, or Relay namespaces using PowerShell, ARM templates, and our APIs after June 30 will fail.
This failure blocks the rest of the tutorial, because calls to Config.GetCluster() now fail too.
The text was updated successfully, but these errors were encountered: