我在 Azure DevOps 中有很多项目。我希望能够迭代 Azure DevOps 中的所有存储库并获取存储库的名称、存储库的创建者和上次更新/提交。
当有人创建新的 Repo 时收到通知吗?
我正在研究 ARM 模板,我已经创建了包含两个或多个 azure 应用服务以及应用服务计划的模板文件,然后配置了每个应用服务的 VNET 集成。
这是示例 JSON 代码:
{
"comments": "Web-App-01",
"name": "[variables('app_name_01')]",
"type": "Microsoft.Web/sites",
"location": "[variables('location')]",
"apiVersion": "2016-08-01",
"dependsOn": [
"[resourceId('Microsoft.Web/serverfarms', variables('asp_name_01'))]"
],
"tags": {
"displayName": "[variables('app_name_01')]"
},
"properties": {
"name": "[variables('app_name_01')]",
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', variables('asp_name_01'))]",
"siteConfig": {
"alwaysOn": true
}
},
"resources": [
{
"type": "Microsoft.Web/sites/virtualNetworkConnections",
"name": "[concat(variables('app_name_01'), '/', variables('vnet_connection_name'),uniqueString('asdsdaxsdsd'))]",
"apiVersion": "2016-08-01",
"location": "[variables('location')]",
"properties": {
"vnetResourceId": "[resourceId('Microsoft.Network/virtualNetworks/subnets', variables('vm_vnet_name'), variables('web_subnet_name'))]"
},
"dependsOn": [
"[resourceId('Microsoft.Web/sites', variables('app_name_01'))]",
"[resourceId('Microsoft.Network/virtualNetworks/subnets', variables('vm_vnet_name'), variables('web_subnet_name'))]"
]
}
]
},
{
"comments": "Web-App-02",
"name": "[variables('app_name_02')]", …
Run Code Online (Sandbox Code Playgroud) azure azure-virtual-network azure-web-app-service azure-rm-template
当我在web.config中添加URL重写代码然后将其发布到azure中.即使我试图访问http网站,它也会自动重定向到https.
<rewrite>
<rules>
<rule name="Redirect to https">
<match url="(.*)"/>
<conditions>
<add input="{HTTPS}" pattern="Off"/>
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}"/>
</rule>
</rules>
</rewrite>
Run Code Online (Sandbox Code Playgroud)
但是,当我在本地计算机上运行相同的代码时,会出现以下错误.
此站点无法提供安全连接
在本地计算机上运行上述代码时,如何解决上述错误?
我正在研究Bot框架技术,最近微软宣布了bot的新版本(V3).我已经开发了使用旧版本的机器人,现在我正在尝试将我的机器人升级到更新的版本.为了一切正常,但在将我的机器人发布到azure之后,然后通过使用我试图在机器人框架通道模拟器(3.0.0.54)中测试的发布URL,它总是给出"500,内部服务器错误".但是当我将skype频道添加到我的机器人时它会正常工作.
唯一的问题是当我在机器人框架通道模拟器中使用我的机器人应用程序的已发布URL进行测试时,我只得到错误为"内部服务器错误".
我认为最新版本的bot框架通道模拟器可能存在问题
我目前正在研究云技术.在我目前的一个项目中,我在Azure中创建了服务结构集群.然后我尝试通过Windows PowerShell连接到群集.我收到了错误
无法访问群集端点,请检查是否存在连接/防火墙/ DNS问题.
请告诉我如何解决上述问题.
问候,
普拉迪普
我正在开发angular 2应用程序,在我目前的项目中,我想要显示基于年份,品牌,型号的下拉值的功能.例如,如果我选择本田,那么在模型下拉列表中仅显示本田车型.
默认情况下,我将绑定年份,品牌和型号的完整数据.
这是我的观点.
VehicleComponent.html
<div class="row form-group">
<div class="col-md-3">
<label class="control-label">Year*</label><br />
<select friendly-name="Year" id="year" name="year" class="col-md-6 form-control" ng-required="true" onchange='OnChange()' >
<option>Select</option>
<option *ngFor='let type of lookupdetailsvehicleyearinfo'>{{type.LookupValue}}</option>
</select>
</div>
<div class="col-md-3">
<label class="control-label">Make*</label><br />
<select friendly-name="Make" class="col-md-6 form-control" ng-required="true" >
<option>Select</option>
<option *ngFor='let type of lookupdetailsvehiclemakeinfo'>{{type.LookupValue}}</option>
</select>
</div>
<div class="col-md-3">
<label class="control-label">Model*</label>
<select friendly-name="Model" class="col-md-6 form-control" ng-required="true" >
<option>Select</option>
<option *ngFor='let type of lookupdetailsvehiclemodelinfo'>{{type.LookupValue}}</option>
</select>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
我将从My Own API获得上述数据.
您能告诉我如何在angular 2应用程序中编写typescript代码以获得上述功能.
我很难在C#中用打字稿和解密来实现加密.在这里发布问题之前,我做了Google并找到了一些链接,但这些链接与JavaScript有关,而不是打字稿.
如何在Angular 2中导入非核心npm模块,例如(使用加密库)?
我按照上面的链接,在我当前的应用程序中实现加密/解密概念.
这是我在myservice.ts中编写的代码
//import { CryptoJS } from 'node_modules/crypto-js/crypto-js.js';
//import 'crypto-js';
import * as CryptoJS from 'crypto-js';
var key = CryptoJS.enc.Utf8.parse('7061737323313233');
var iv = CryptoJS.enc.Utf8.parse('7061737323313233');
var encrypted = CryptoJS.AES.encrypt(CryptoJS.enc.Utf8.parse("It works"), key,
{
keySize: 128 / 8,
iv: iv,
mode: CryptoJS.mode.CBC,
padding: CryptoJS.pad.Pkcs7
});
var decrypted = CryptoJS.AES.decrypt(encrypted, key, {
keySize: 128 / 8,
iv: iv,
mode: CryptoJS.mode.CBC,
padding: CryptoJS.pad.Pkcs7
});
console.log('Encrypted :' + encrypted);
console.log('Key :' + encrypted.key);
console.log('Salt :' + encrypted.salt);
console.log('iv :' …
Run Code Online (Sandbox Code Playgroud) 我有Angular2和Asp.Net Web API应用程序,因此我将Application Insights资源配置为跟踪那些应用程序的自定义遥测。但是我使用了两种不同的AI密钥,一种用于Angular2应用程序,另一种用于Web API应用程序。
我曾经使用关联功能来关联前端调用和Web API调用的两次Applications Insights遥测,但是操作ID不匹配。
您能告诉我如何使用关联功能关联两个AI的前端调用和Web API调用遥测。
我开发了简单的 Web 应用程序,因为我使用 cosmos 数据库将一些数据保存到其中。到目前为止一切正常。但是每当我尝试从 cosmos 数据库中按时间获取最新值时,\xe2\x80\x99s 需要一分钟多才能给出最新记录。
\n\n这是我为从 cosmos 数据库获取最新记录而编写的代码。
\n\n public static async Task<IEnumerable<IoTHubDataPoint>> GetItemsAsync()\n {\n IDocumentQuery<IoTHubDataPoint> query = client.CreateDocumentQuery<IoTHubDataPoint>(\n UriFactory.CreateDocumentCollectionUri(DatabaseId, CollectionId), \n new FeedOptions { MaxItemCount = 1, EnableCrossPartitionQuery = true}).OrderByDescending(x=>x.Time).Take(1)\n .AsDocumentQuery();\n\n List<IoTHubDataPoint> results = new List<ServiceMaxIoTHubDataPoint>();\n while (query.HasMoreResults)\n {\n results.AddRange(await Task.Run(async () => await query.ExecuteNextAsync<IoTHubDataPoint>()) );\n }\n //return results.OrderByDescending(x => x.Time).Take(1).ToArray();\n return results;\n\n }\n
Run Code Online (Sandbox Code Playgroud)\n\n这是 azure cosmos 数据库中可用的示例数据。
\n\n{\n"DeviceID": "IoT-1",\n"Time": "2017-11-02T14:46:06.7846161",\n"Temperature": 28.63403,\n"Pressure": "95089.47",\n"Altitude": "532.5873",\n"LightStatus": "Too Bright",\n"LightCDSValue": "193",\n"LightCDSVoltageValue": "0.943304",\n"EventProcessedUtcTime": "2017-11-02T14:46:40.3930989Z",\n"PartitionId": 0,\n"EventEnqueuedUtcTime": "2017-11-02T14:46:07.6Z",\n"IoTHub": {\n "MessageId": …
Run Code Online (Sandbox Code Playgroud) 我使用 VS2017 开发了 .NET Core Web API 应用程序,为此我配置了应用程序见解以及快照调试功能。
我能够在 Azure Application Insights 资源中查看调试快照并下载快照,然后在 VS2017 中打开它。之后我在 VS2017 中调试.diagsession快照,然后出现以下错误。
Microsoft.WindowsAzure.Storage.pdb 包含查找模块 Microsoft.WindowsAzure.Storage.dll 的源所需的调试信息
我关注了这个博客,但我的问题仍然存在。问题:打开快照时无法加载符号
如何解决这个错误?
snapshot azure azure-application-insights asp.net-core-webapi
azure ×6
angular ×2
c# ×2
security ×2
typescript ×2
aes ×1
asp.net ×1
azure-devops ×1
botframework ×1
correlation ×1
powershell ×1
snapshot ×1
web-config ×1