Tag: 天青

尝试通过节点createBlockBlobFromStream()将Blob上载到Azure存储时发生“RequestBodyTooLarge”

当我尝试从Azure节点sdk上使用createBlockBlobFromStream()将100MBfile upload到Azure blob存储时,收到此错误: error: { code: 'RequestBodyTooLarge', message: 'The request body is too large and exceeds the maximum permissible limit. maxlimit: '67108864' } 有任何想法吗? 最大blob大小似乎是200GB,或50.000块。 我检查了常量,块大小设置在4MB,这是最大的。 SDK错误,或者我错过了什么?

将AzureServiceProject Node.js发布到Windows Server 2012

我试图使用Powershell“Publish-AzureServiceProject”cmdlet发布一个Node.js包到Azure。 使用默认的osFamily =“2”(Windows Server 2008 R2)它按预期工作,但是当我使用osFamily =“3”(Windows Server 2012)发布时,出现以下错误: 上载软件包所需的名为NetFx35的function在为部署select的OS *中不可用。 很明显,我没有使用.Net,但3.5是默认的,防止我上传的包。 指定.Net 4.5我读了我需要创build一个roleproperties.txt文件,其中包含: TargetFrameWorkVersion = V4.5 并通过/ rolePropertiesFile传递给cspack。 但是,因为我没有自己调用cspack,我怎么能通过Publish-AzureServiceProject传递给cspack? 还是有另一种解决方法? 目前我的ServiceDefinition看起来像这样: <?xml version="1.0"?> <ServiceDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Foo" upgradeDomainCount="1" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition"> <WorkerRole name="Bar"> <Imports> <Import moduleName="RemoteForwarder" /> <Import moduleName="RemoteAccess" /> </Imports> <Startup> <Task commandLine="setup_worker.cmd &gt; log.txt" executionContext="elevated"> <Environment> <Variable name="EMULATED"> <RoleInstanceValue xpath="/RoleEnvironment/Deployment/@emulated" /> </Variable> <Variable name="RUNTIMEID" […]

如何从Node中将表值参数插入到Sql Azure中?

我正在研究一个批量插入数据的应用程序,以减less我想要使用Table Valued参数的查询数量。 例: var sql = require('node-sqlserver'); var connectionString = 'Driver={SQL Server Native Client 11.0};server=tcp:serverName.database.windows.net,1433;UID=user@serverName;PWD=password;Database={databaseName};Encrypt=yes;Connection Timeout=30;'; sql.open(connectionString, function(err, conn) { if(err) { return console.error('could not connect to sql', err); } var tableValuedObject = ???; var query = 'usp_InsertSomeTable ?'; conn.query(query, tableValuedObject, function(err, result) { if(err) { return console.error('error running insert', err); } }); }); 其中usp_InsertSomeTable被定义为 […]

在使用node.js进行特定延迟后,从Azure ServiceBus主题发送消息

基本上,在Azure服务总线中,我有一个主题和订阅。 如果在上午11:00之前有消息到达话题,我的订阅者不应该处理它。 然而,在下午14:00,我希望我的订户来对待它。 有没有一种方法来实现这与本机主题filter? 在有关filter的官方文档中,我没有发现任何这种用例。 事实上,所有呈现的样本都是关于: “ 处理这种消息的用户,或从来没有 ”。 我在找: “ 期待处理这种消息的用户,但是在特定的时间晚点 ”。

Azure云服务和持久性configuration设置

我正在构build一个Node.js应用程序作为Azure云服务工作者angular色进行部署。 作为一个良好的做法,我喜欢将所有敏感信息(API密钥等)从我的回购站点中删除。 我通常的解决scheme是添加敏感信息作为环境variables,并让我的应用程序访问这些。 在(相对较新的)Azure网站中,这可以通过“configuration”选项卡的“应用程序设置”部分轻松完成。 添加新的设置,并用process.env.<setting key>在Node.js中抓取它们。 这些设置在更新和部署中保持不变。 但是,在Azure云服务中,似乎并不是这样。 我已经将“configuration设置”添加到了我的ServiceConfiguration.Cloud.cscfg : <ConfigurationSettings> <Setting name="API_KEY_1" value="" /> <Setting name="API_KEY_2" value="" /> </ConfigurationSettings> …和我的ServiceDefinition.csdef : <ConfigurationSettings> <Setting name="API_KEY_1" /> <Setting name="API_KEY_2" /> </ConfigurationSettings> 当我部署时,这些设置可以通过Web门户进行编辑,并添加了他们的值。 但是,当我重新部署时,设置将被覆盖。 我可以看到保留其合适的值的唯一方法是将值添加到.cscfg 。 但是,这意味着将这个信息提交到我的回购。 有没有我失踪的解决scheme?

在单个Azure Webangular色中混合使用node.js和ASP.NET项目?

在一个Azure Webangular色( 教程 )上托pipe多个ASP.NET项目是相当容易的,但是可以使用一个Webangular色来托pipeASP.NET和node.js项目吗?

部署Angular 2项目时,Azure持续部署在Github上失败

我对Azure和Angular2完全陌生。 目标 使用GitHub设置Azure连续部署。 问题 Azure正在提交存储库上的主分支。 所以这部分是可以的。 但是,由于构build错误,部署失败。 这里是部署细节: 这里是完整的日志: Command: "D:\home\site\deployments\tools\deploy.cmd" Handling .NET Web Application deployment. MSBuild auto-detection: using msbuild version '14.0' from 'D:\Program Files (x86)\MSBuild\14.0\bin'. All packages listed in packages.config are already installed. D:\home\site\repository\LearnJS\LearnJS.Web\app\app.component.ts(1,41): error TS2307: Build: Cannot find module 'angular2/core'. [D:\home\site\repository\LearnJS\LearnJS.Web\LearnJS.Web.csproj] D:\home\site\repository\LearnJS\LearnJS.Web\app\app.component.ts(2,46): error TS2307: Build: Cannot find module 'angular2/router'. [D:\home\site\repository\LearnJS\LearnJS.Web\LearnJS.Web.csproj] D:\home\site\repository\LearnJS\LearnJS.Web\app\crisis-form.component.ts(1,25): error TS2307: […]