我正在使用Azure应用程序网关,并坚持以下错误.在这里,我的网络图

这里,我配置了PowerShell脚本Poweshell输出PS C:\ Users\shabbir.akolawala> Get-AzureApplicationGateway sbr2appgateway
Name : sbr2appgateway
Description :
VnetName : Group Shabs-AppGateway2 sbag2vnet
Subnets : {sbag2subnet1}
InstanceCount : 2
GatewaySize : Small
State : Running
VirtualIPs : {104.41.159.238} <-- Note IP Here
DnsName : 01b9b0e4-4cd2-4437-b641-0b5dc4e3efe7.cloudapp.net
Run Code Online (Sandbox Code Playgroud)
这里,应用程序网关的公共IP是104.41.159.238现在,如果我第一次点击网关,你得到以下输出注意,这个网站无法正确呈现,因为许多请求(css/images)失败了502 .
现在,如果我第二次点击,我会立即得到502错误
但是,当点击云服务IP时,我正确地获得了我的网站
我使用以下配置XML配置Azure网关
我的问题是,
1]是否知道如何访问Application Gateway中生成的日志(理论上,应用程序网关在IIS 8.5/ARR上运行)
2]我在设计或配置方面有任何明显错误吗?
当我尝试使用 Powershell cmdlet Stop-AzureRMVM(新 ARM 的)停止 Azure 上的虚拟机时,我收到如下所示的消息框。有这个问题,如果我在批处理语句中运行它,我会在 VM 关闭的每个语句中收到此消息框/提示。我如何抑制这个?
我对JavaScript承诺和承诺链有一个浅薄的理解.说,我有一个方法如下所示.它的编写是TypeScript,但可以修改以匹配JavaScript ES6
private InsertPersonInDB(p : Person) {
return this.db.find({ //<- would this return?
selector: {objType: 'Person'},
fields: ['_id'],
sort: ['_id']
}).then( result => {
let allpersondIds : string[] = [];
(result.docs).forEach(rec => {
allpersondIds.push(rec._id);
});
return allpersondIds;
}).then ( allpersonIdsInDB => {
var id = this.getIdfromPersonName(person.personName, allpersonIdsInDB);
person._id = id;
return this.db.post(person) //<- or would this return?
}
}
//Calling function
for(let person of this.persons) {
InsertPersonInDB(person).then(result => {
console.log(result)
//Some UI updates
}).catch(err => {
console.log(err)
//Some UI updates …Run Code Online (Sandbox Code Playgroud) azure ×2
angular ×1
es6-promise ×1
gateway ×1
javascript ×1
powershell ×1
promise ×1
typescript ×1