在App Service Environment中创建Linux App服务计划的脚本 [英] Script creation of Linux App service plan in App Service Environment
问题描述
我想自动创建一个我想用来托管容器App Services的Linux应用服务计划。我想在应用服务环境(ASE)中拥有此应用服务计划。但是,我在找到
支持两者的工具时遇到了一些麻烦。
I would like to automate the creation of a Linux App Service Plan I want to use to host App Services for Containers. I would like to have this App Service Plan in an App Service Environment (ASE). However, I am having a bit of trouble finding a tool that supports both of the two.
Az Powershell模块支持ASE,因此我可以创建一个App Service Plan in像这样的ASE:
The Az Powershell module supports ASEs, so I can create an App Service Plan in an ASE like this:
New-AzAppServicePlan (...) -ResourceGroupName rg1 -AseName ase1 -AseResourceGroupName ase-rg1
但是,据我所知,它没有提供指定Linux应用服务计划的参数。
but, it doesn't provide a parameter to specify a Linux App Service Plan, as far as I can see.
然后,有一个az命令行界面,它有一个--is-linux参数,但据我所知,它不支持ASE。
Then, there's the az command-line interface, which does have an --is-linux parameter, but it doesn't, as far as I can see, support ASEs.
是吗可能,使用其中任何一个或它们的组合,在ASE中自动创建Linux应用服务?
Is it possible, with any of these, or the combination of them, to automate the creation of a Linux App Service, in an ASE?
推荐答案
{
"id": "(String)",
"name": "(String)",
"kind": "(String)",
"location": "(String)",
"type": "(String)",
"tags": {},
"properties": {
"state": "(String)",
"hostNames": [
"(String)"
],
"repositorySiteName": "(String)",
"usageState": "(String)",
"enabled": "(Boolean)",
"enabledHostNames": [
"(String)"
],
"availabilityState": "(String)",
"hostNameSslStates": [
{
"name": "(String)",
"sslState": "(String)",
"virtualIP": "(String)",
"thumbprint": "(String)",
"toUpdate": "(Boolean)",
"hostType": "(String)"
}
],
"serverFarmId": "(String)",
"reserved": "(Boolean)",
"isXenon": "(Boolean)",
"lastModifiedTimeUtc": "(String)",
"siteConfig": {
"numberOfWorkers": "(Integer)",
"defaultDocuments": [
"(String)"
],
"netFrameworkVersion": "(String)",
"phpVersion": "(String)",
"pythonVersion": "(String)",
"nodeVersion": "(String)",
"linuxFxVersion": "(String)",
"windowsFxVersion": "(String)",
"requestTracingEnabled": "(Boolean)",
"requestTracingExpirationTime": "(String)",
"remoteDebuggingEnabled": "(Boolean)",
"remoteDebuggingVersion": "(String)",
"httpLoggingEnabled": "(Boolean)",
"logsDirectorySizeLimit": "(Integer)",
"detailedErrorLoggingEnabled": "(Boolean)",
"publishingUsername": "(String)",
"appSettings": [
{
"name": {},
"value": {}
}
],
"connectionStrings": [
{
"name": {},
"connectionString": {},
"type": {}
}
],
"machineKey": {
"validation": "(String)",
"validationKey": "(String)",
"decryption": "(String)",
"decryptionKey": "(String)"
},
"handlerMappings": [
{
"extension": {},
"scriptProcessor": {},
"arguments": {}
}
],
"documentRoot": "(String)",
"scmType": "(String)",
"use32BitWorkerProcess": "(Boolean)",
"webSocketsEnabled": "(Boolean)",
"alwaysOn": "(Boolean)",
"javaVersion": "(String)",
"javaContainer": "(String)",
"javaContainerVersion": "(String)",
"appCommandLine": "(String)",
"managedPipelineMode": "(String)",
"virtualApplications": [
{
"virtualPath": {},
"physicalPath": {},
"preloadEnabled": {},
"virtualDirectories": {}
}
],
"loadBalancing": "(String)",
"experiments": {
"rampUpRules": [
{}
]
},
"limits": {
"maxPercentageCpu": "(Number)",
"maxMemoryInMb": "(Integer)",
"maxDiskSizeInMb": "(Integer)"
},
"autoHealEnabled": "(Boolean)",
"autoHealRules": {
"triggers": {
"requests": {},
"privateBytesInKB": {},
"statusCodes": {},
"slowRequests": {}
},
"actions": {
"actionType": {},
"customAction": {},
"minProcessExecutionTime": {}
}
},
"tracingOptions": "(String)",
"vnetName": "(String)",
"cors": {
"allowedOrigins": [
{}
]
},
"push": {
"id": "(String)",
"name": "(String)",
"kind": "(String)",
"type": "(String)",
"properties": {
"isPushEnabled": {},
"tagWhitelistJson": {},
"tagsRequiringAuth": {},
"dynamicTagsJson": {}
}
},
"apiDefinition": {
"url": "(String)"
},
"autoSwapSlotName": "(String)",
"localMySqlEnabled": "(Boolean)",
"managedServiceIdentityId": "(Integer)",
"xManagedServiceIdentityId": "(Integer)",
"ipSecurityRestrictions": [
{
"ipAddress": {},
"subnetMask": {},
"action": {},
"tag": {},
"priority": {},
"name": {},
"description": {}
}
],
"http20Enabled": "(Boolean)",
"minTlsVersion": "(String)",
"ftpsState": "(String)",
"reservedInstanceCount": "(Integer)"
},
"trafficManagerHostNames": [
"(String)"
],
"scmSiteAlsoStopped": "(Boolean)",
"targetSwapSlot": "(String)",
"hostingEnvironmentProfile": {
"id": "(String)",
"name": "(String)",
"type": "(String)"
},
"clientAffinityEnabled": "(Boolean)",
"clientCertEnabled": "(Boolean)",
"hostNamesDisabled": "(Boolean)",
"outboundIpAddresses": "(String)",
"possibleOutboundIpAddresses": "(String)",
"containerSize": "(Integer)",
"dailyMemoryTimeQuota": "(Integer)",
"suspendedTill": "(String)",
"maxNumberOfWorkers": "(Integer)",
"cloningInfo": {
"correlationId": "(String)",
"overwrite": "(Boolean)",
"cloneCustomHostNames": "(Boolean)",
"cloneSourceControl": "(Boolean)",
"sourceWebAppId": "(String)",
"hostingEnvironment": "(String)",
"appSettingsOverrides": {},
"configureLoadBalancing": "(Boolean)",
"trafficManagerProfileId": "(String)",
"trafficManagerProfileName": "(String)"
},
"resourceGroup": "(String)",
"isDefaultContainer": "(Boolean)",
"defaultHostName": "(String)",
"slotSwapStatus": {
"timestampUtc": "(String)",
"sourceSlotName": "(String)",
"destinationSlotName": "(String)"
},
"httpsOnly": "(Boolean)"
},
"identity": {
"type": "(String)",
"tenantId": "(String)",
"principalId": "(String)",
"identityIds": [
"(String)"
]
}
}
这篇关于在App Service Environment中创建Linux App服务计划的脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!