- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我尝试为 docker 制作一个 Web 应用程序模板。我有以下 json 文件:
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"sites_docker_webscraper_name": {
"defaultValue": "docker-webscraper",
"type": "String"
},
"serverfarms_internet_suite_externalid": {
"defaultValue": "/subscriptions/fea4c865-1e54-44b3-ba1d-07315468f083/resourceGroups/rg-idn-nvwa-sas_nvwa/providers/Microsoft.Web/serverfarms/crinternetsuite",
"type": "String"
}
},
"variables": {},
"resources": [
{
"type": "Microsoft.Web/sites",
"apiVersion": "2022-03-01",
"name": "[parameters('sites_docker_webscraper_name')]",
"location": "West Europe",
"tags": {
"APM-id": "4442",
"APM-name": "SAS_NVWA",
"Clientname": "NVWA",
"Clientnumber": "tbd",
"Environment": "PRD",
"LZ-version": "V1"
},
"kind": "app,linux,container",
"properties": {
"enabled": true,
"hostNameSslStates": [
{
"name": "[concat(parameters('sites_docker_webscraper_name'), '.azurewebsites.net')]",
"sslState": "Disabled",
"hostType": "Standard"
},
{
"name": "[concat(parameters('sites_docker_webscraper_name'), '.scm.azurewebsites.net')]",
"sslState": "Disabled",
"hostType": "Repository"
}
],
"serverFarmId": "[parameters('serverfarms_internet_suite_externalid')]",
"reserved": true,
"isXenon": false,
"hyperV": false,
"vnetRouteAllEnabled": false,
"siteConfig": {
"numberOfWorkers": 1,
"linuxFxVersion": "DOCKER|crinternetsuite.azurecr.io/crinternetsuite-webscraper:latest",
"acrUseManagedIdentityCreds": false,
"alwaysOn": false,
"http20Enabled": false,
"functionAppScaleLimit": 0,
"minimumElasticInstanceCount": 0
},
"scmSiteAlsoStopped": false,
"clientAffinityEnabled": false,
"clientCertEnabled": false,
"clientCertMode": "Required",
"hostNamesDisabled": false,
"customDomainVerificationId": "A27256499C08A212DC5FD8B257022027F1FF0274BE78B8AADC345DF2C6F01FCE",
"containerSize": 0,
"dailyMemoryTimeQuota": 0,
"httpsOnly": true,
"redundancyMode": "None",
"storageAccountRequired": false,
"keyVaultReferenceIdentity": "SystemAssigned"
}
},
{
"type": "Microsoft.Web/sites/basicPublishingCredentialsPolicies",
"apiVersion": "2022-03-01",
"name": "[concat(parameters('sites_docker_webscraper_name'), '/ftp')]",
"location": "West Europe",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', parameters('sites_docker_webscraper_name'))]"
],
"tags": {
"APM-id": "4442",
"APM-name": "SAS_NVWA",
"Clientname": "NVWA",
"Clientnumber": "tbd",
"Environment": "PRD",
"LZ-version": "V1"
},
"properties": {
"allow": true
}
},
{
"type": "Microsoft.Web/sites/basicPublishingCredentialsPolicies",
"apiVersion": "2022-03-01",
"name": "[concat(parameters('sites_docker_webscraper_name'), '/scm')]",
"location": "West Europe",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', parameters('sites_docker_webscraper_name'))]"
],
"tags": {
"APM-id": "4442",
"APM-name": "SAS_NVWA",
"Clientname": "NVWA",
"Clientnumber": "tbd",
"Environment": "PRD",
"LZ-version": "V1"
},
"properties": {
"allow": true
}
},
{
"type": "Microsoft.Web/sites/config",
"apiVersion": "2022-03-01",
"name": "[concat(parameters('sites_docker_webscraper_name'), '/web')]",
"location": "West Europe",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', parameters('sites_docker_webscraper_name'))]"
],
"tags": {
"APM-id": "4442",
"APM-name": "SAS_NVWA",
"Clientname": "NVWA",
"Clientnumber": "tbd",
"Environment": "PRD",
"LZ-version": "V1"
},
"properties": {
"numberOfWorkers": 1,
"defaultDocuments": [
"Default.htm",
"Default.html",
"Default.asp",
"index.htm",
"index.html",
"iisstart.htm",
"default.aspx",
"index.php",
"hostingstart.html"
],
"netFrameworkVersion": "v4.0",
"linuxFxVersion": "DOCKER|crinternetsuite.azurecr.io/crinternetsuite-webscraper:latest",
"requestTracingEnabled": false,
"remoteDebuggingEnabled": false,
"remoteDebuggingVersion": "VS2019",
"httpLoggingEnabled": false,
"acrUseManagedIdentityCreds": false,
"logsDirectorySizeLimit": 35,
"detailedErrorLoggingEnabled": false,
"publishingUsername": "$docker-webscraper",
"scmType": "None",
"use32BitWorkerProcess": true,
"webSocketsEnabled": false,
"alwaysOn": false,
"managedPipelineMode": "Integrated",
"virtualApplications": [
{
"virtualPath": "/",
"physicalPath": "site\\wwwroot",
"preloadEnabled": false
}
],
"loadBalancing": "LeastRequests",
"experiments": {
"rampUpRules": []
},
"autoHealEnabled": false,
"vnetRouteAllEnabled": false,
"vnetPrivatePortsCount": 0,
"localMySqlEnabled": false,
"ipSecurityRestrictions": [
{
"ipAddress": "Any",
"action": "Allow",
"priority": 1,
"name": "Allow all",
"description": "Allow all access"
}
],
"scmIpSecurityRestrictions": [
{
"ipAddress": "Any",
"action": "Allow",
"priority": 1,
"name": "Allow all",
"description": "Allow all access"
}
],
"scmIpSecurityRestrictionsUseMain": false,
"http20Enabled": false,
"minTlsVersion": "1.2",
"scmMinTlsVersion": "1.2",
"ftpsState": "AllAllowed",
"preWarmedInstanceCount": 0,
"functionAppScaleLimit": 0,
"functionsRuntimeScaleMonitoringEnabled": false,
"minimumElasticInstanceCount": 0,
"azureStorageAccounts": {
"str-webcrawler": {
"type": "AzureFiles",
"accountName": "strdevinternetsuite",
"shareName": "fsndevinternetsuite",
"mountPath": "/var/www/html"
}
}
}
},
{
"type": "Microsoft.Web/sites/hostNameBindings",
"apiVersion": "2022-03-01",
"name": "[concat(parameters('sites_docker_webscraper_name'), '/', parameters('sites_docker_webscraper_name'), '.azurewebsites.net')]",
"location": "West Europe",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', parameters('sites_docker_webscraper_name'))]"
],
"properties": {
"siteName": "docker-webscraper",
"hostNameType": "Verified"
}
},
{
"type": "Microsoft.Web/sites/snapshots",
"apiVersion": "2015-08-01",
"name": "[concat(parameters('sites_docker_webscraper_name'), '/2022-07-03T17_07_28_3927091')]",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', parameters('sites_docker_webscraper_name'))]"
]
},
{
"type": "Microsoft.Web/sites/snapshots",
"apiVersion": "2015-08-01",
"name": "[concat(parameters('sites_docker_webscraper_name'), '/2022-07-04T02_07_28_9981063')]",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', parameters('sites_docker_webscraper_name'))]"
]
},
{
"type": "Microsoft.Web/sites/snapshots",
"apiVersion": "2015-08-01",
"name": "[concat(parameters('sites_docker_webscraper_name'), '/2022-07-04T17_07_30_0446802')]",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', parameters('sites_docker_webscraper_name'))]"
]
},
{
"type": "Microsoft.Web/sites/snapshots",
"apiVersion": "2015-08-01",
"name": "[concat(parameters('sites_docker_webscraper_name'), '/2022-07-05T02_07_30_6143578')]",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', parameters('sites_docker_webscraper_name'))]"
]
},
{
"type": "Microsoft.Web/sites/snapshots",
"apiVersion": "2015-08-01",
"name": "[concat(parameters('sites_docker_webscraper_name'), '/2022-07-05T17_07_31_6180553')]",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', parameters('sites_docker_webscraper_name'))]"
]
},
{
"type": "Microsoft.Web/sites/snapshots",
"apiVersion": "2015-08-01",
"name": "[concat(parameters('sites_docker_webscraper_name'), '/2022-07-06T02_07_32_2190070')]",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', parameters('sites_docker_webscraper_name'))]"
]
},
{
"type": "Microsoft.Web/sites/snapshots",
"apiVersion": "2015-08-01",
"name": "[concat(parameters('sites_docker_webscraper_name'), '/2022-07-06T17_07_33_2391266')]",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', parameters('sites_docker_webscraper_name'))]"
]
},
{
"type": "Microsoft.Web/sites/snapshots",
"apiVersion": "2015-08-01",
"name": "[concat(parameters('sites_docker_webscraper_name'), '/2022-08-02T03_08_19_1696825')]",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', parameters('sites_docker_webscraper_name'))]"
]
},
{
"type": "Microsoft.Web/sites/snapshots",
"apiVersion": "2015-08-01",
"name": "[concat(parameters('sites_docker_webscraper_name'), '/2022-08-02T04_08_19_1666344')]",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', parameters('sites_docker_webscraper_name'))]"
]
},
{
"type": "Microsoft.Web/sites/snapshots",
"apiVersion": "2015-08-01",
"name": "[concat(parameters('sites_docker_webscraper_name'), '/2022-08-02T05_08_19_2535918')]",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', parameters('sites_docker_webscraper_name'))]"
]
},
{
"type": "Microsoft.Web/sites/snapshots",
"apiVersion": "2015-08-01",
"name": "[concat(parameters('sites_docker_webscraper_name'), '/2022-08-02T06_08_19_3227599')]",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', parameters('sites_docker_webscraper_name'))]"
]
},
{
"type": "Microsoft.Web/sites/snapshots",
"apiVersion": "2015-08-01",
"name": "[concat(parameters('sites_docker_webscraper_name'), '/2022-08-02T07_08_19_3781004')]",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', parameters('sites_docker_webscraper_name'))]"
]
},
{
"type": "Microsoft.Web/sites/snapshots",
"apiVersion": "2015-08-01",
"name": "[concat(parameters('sites_docker_webscraper_name'), '/2022-08-02T08_08_19_4345008')]",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', parameters('sites_docker_webscraper_name'))]"
]
},
{
"type": "Microsoft.Web/sites/snapshots",
"apiVersion": "2015-08-01",
"name": "[concat(parameters('sites_docker_webscraper_name'), '/2022-08-02T09_08_19_5418008')]",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', parameters('sites_docker_webscraper_name'))]"
]
},
{
"type": "Microsoft.Web/sites/snapshots",
"apiVersion": "2015-08-01",
"name": "[concat(parameters('sites_docker_webscraper_name'), '/2022-08-02T10_08_19_5823928')]",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', parameters('sites_docker_webscraper_name'))]"
]
},
{
"type": "Microsoft.Web/sites/snapshots",
"apiVersion": "2015-08-01",
"name": "[concat(parameters('sites_docker_webscraper_name'), '/2022-08-02T11_08_19_6589523')]",
"dependsOn": [
"[resourceId('Microsoft.Web/sites', parameters('sites_docker_webscraper_name'))]"
]
}
]
}
但是如果我查看日志文件。我看到这个错误:
{
"status": "Failed",
"error": {
"code": "ResourceNotFound",
"message": "The Resource 'Microsoft.Web/sites/internetsuite' under resource group 'rg-idn-nvwa-sas_nvwa' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix"
}
}
但我的模板中没有有值(value)的互联网套件。那么这个值从哪里来呢?
谢谢
这是管道(ARM 模板):
# Docker
# Build and push an image to Azure Container Registry
# https://learn.microsoft.com/azure/devops/pipelines/languages/docker
trigger:
- master
resources:
- repo: self
variables:
# Container registry service connection established during pipeline creation
dockerRegistryServiceConnection: 'production_internetsuite_connection'
imageRepository: 'internetsuite-webscraper'
containerRegistry: 'crinternetsuite.azurecr.io'
dockerfilePath: '**/Dockerfile'
tag: '$(Build.BuildId)'
# Agent VM image name
vmImageName: 'ubuntu-latest'
stages:
- stage: Build
displayName: Build and push stage
jobs:
- job: Build
displayName: Build
pool:
vmImage: $(vmImageName)
steps:
- task: Docker@2
displayName: Build and push an image to container registry
inputs:
command: buildAndPush
repository: $(imageRepository)
dockerfile: $(dockerfilePath)
containerRegistry: $(dockerRegistryServiceConnection)
tags: |
$(tag)
- task: AzureResourceManagerTemplateDeployment@3
inputs:
deploymentScope: 'Subscription'
subscriptionId: 'fea4c865-1e54-44b3-ba1d-07315468f083'
azureResourceManagerConnection: 'spn-azure-contributor-002'
location: 'West Europe'
templateLocation: 'Linked artifact'
csmFile: '$(System.DefaultWorkingDirectory)/pipelines/templates/app-service/template.json'
csmParametersFile: '$(System.DefaultWorkingDirectory)/pipelines/templates/app-service/parameters.json'
deploymentMode: 'Incremental'
这是我的parameters.json 文件:
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"sites_docker_webscraper_name": {
"value": "internetsuite"
},
"serverfarms_internet_suite_externalid": {
"value": "internetsuite"
}
}
}
最佳答案
看起来它来自第二个参数。
这些值与错误消息不完全匹配,但错误消息与您昨天发布的问题中的模板更相似。
关于azure - 未找到资源组 'Microsoft.Web/sites/xxxxx' 下的资源 'rg-idn',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73239512/
我有一个想法:(可能太完整了) 我想知道是否可以 substring(1) 然后使用 .toUpperCase()字符串 然后使用 getLength() 获取长度.toLowerCase() 字符串
当我单击 map Activity 上的后退按钮时,应用程序崩溃。添加 moveTaskToBack(true);在 onBackPressed() 中不起作用。以下是日志猫: ---------崩溃
我尝试创建它,但它似乎无法正常工作 (/^ [A-Z]\d{5} \- [A-Z]\d{5} \- [A-Z]\d{3} \- [A-Z]\d{2} $/)) 最佳答案 [A-Z]\d{5} 表示:从
你好我有一个主表 BASECOMPANYDATA,其中 BaseCompanyDataID 作为 PK。这是继承自2 个其他表 CUSTOMERS & PRODUCTCOMPANIES。现在我有了 C
这个问题已经有答案了: Get the data received in a Flask request (24 个回答) 已关闭去年。 flask.request.form["xxx"] 之间有什么
我试图在这里运行代码 -- http://code.google.com/p/android-market-api/wiki/HowDownloadApps--,并将此代码放在 Tester.java
我有两个格式为 XXXX.csv.gz_1_2.tar 和 XXXX.csv.gz_2_2.tar 的文件,我的目标是合并这些文件以便能够按顺序解压缩完整文件获取 csv 文件。 你能帮帮我吗? 我尝
这是我每次运行应用程序时的错误: E/AndroidRuntime: FATAL EXCEPTION: main java.lang.RuntimeException: Unable to i
在 Azure 网站上进行身份验证时,我遇到了回复 URL 的问题。正常登录时一切正常,但使用其他页面登录时会生成“回复 URL”错误。 例如,使用“https://xxxxx.azurewebsit
您好,我正在通过 WSDL 将 Java Web 服务加载到 Delphi 7。当我从 Delphi 调用 Web 服务时,出现以下错误。我被困在这里没有任何线索。 'Unmarshalling Er
关闭。这个问题需要details or clarity .它目前不接受答案。 想改进这个问题吗? 通过 editing this post 添加细节并澄清问题. 关闭 8 年前。 Improve t
我声明一个数据 让数据 = {} 然后我用promise调用webservice getUserData().then((res)=>{ this.setState({ data :
所以我要加入 TAF(集群故障转移)处理到一些数据库代码中,最后我会得到类似的代码块,如下所示: try: ... some database code...
当尝试重新设计合并排序程序时,我在函数中实现了 match with 语句。 let rec merge (array : int[]) (chunkA : int[]) (chunkB : int[
为什么这两种情况下PuTTY中tmux的分割线显示不同(xxxxx,qqqqqq)?如果我没有设置 PuTTY 任何东西(默认“使用字体编码”), Pane 的分割线显示如下: 但是不能正确显示中文单
我想用“XXXX”替换特定的字符串值。问题是模式非常动态,它在输入数据中没有固定模式。 我的输入数据 https://internetbanking.abc.co.uk/personal/logon/
这是我的代码: 但是我得到了一个黑色的边框。当我插入“Red”而不是 #-code 时
在windows 2003下,在运行web应用程序的时候出现一下错误: 服务器无法处理请求,-->对路径“C:/temp/mytest.txt”的访问拒绝 说明: 执行当前
我有一个工作流应用程序,当我尝试使用 ExternalDataExchangeService 调用事件时会引发错误。 在状态持久性存储中找不到 ID 为“866568ab-ca1b-4404-a2f1
我在设备中运行时收到此错误,请确实需要全面的帮助来解决此问题; Couldn't register com.XXXXX.deviceapp with the bootstrap server. Err
我是一名优秀的程序员,十分优秀!