Definitions for @turbot/azure-appservice

appService

{
"allOf": [
{
"$ref": "turbot#/definitions/service"
},
{
"type": "object",
"properties": {
"name": {
"const": "App Service"
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/appServiceAka"
}
},
"title": {
"const": "App Service"
},
"custom": {
"type": "object",
"properties": {
"azure": {
"$ref": "azure#/definitions/azureMetadata"
}
}
}
}
}
},
"required": [
"turbot",
"name"
],
"additionalProperties": true,
"tests": [
{
"description": "base",
"input": {
"turbot": {
"akas": [
"azure:///subscriptions/ec7a5a3a-4225-474f-9dbe-bf477c8ea51b/providers/Microsoft.Web/appService"
],
"title": "App Service",
"custom": {
"azure": {
"subscriptionId": "ec7a5a3a-4225-474f-9dbe-bf477c8ea51b"
}
}
}
}
},
{
"description": "invalid - wrong title",
"input": {
"turbot": {
"akas": [
"azure:///subscriptions/ec7a5a3a-4225-474f-9dbe-bf477c8ea51b/providers/Microsoft.Web/appService"
],
"title": "Web App",
"custom": {
"azure": {
"subscriptionId": "ec7a5a3a-4225-474f-9dbe-bf477c8ea51b"
}
}
}
},
"expected": false
}
]
}
],
".turbot": {
"uri": "tmod:@turbot/azure-appservice#/definitions/appService",
"modUri": "tmod:@turbot/azure-appservice"
}
}

appServiceAka

{
"type": "string",
"pattern": "^azure:///subscriptions/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/providers/Microsoft.Web/services/appService",
"tests": [
{
"descritpion": "base case",
"input": "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/providers/Microsoft.Web/services/appService"
},
{
"description": "invalid - account ID too long",
"input": "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7jfhsjkds/search/services/appService",
"expected": false
},
{
"description": "invalid - provider name",
"input": "gcp:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7jfhsjkds/search/services/appService",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-appservice#/definitions/appServiceAka",
"modUri": "tmod:@turbot/azure-appservice"
}
}

appServicePlan

{
"allOf": [
{
"type": "object",
"properties": {
"name": {
"$ref": "#/definitions/name"
},
"status": {
"$ref": "#/definitions/planStatus"
},
"tags": {
"$ref": "azure#/definitions/tags"
},
"workerTierName": {
"type": "string"
},
"subscription": {
"type": "string"
},
"hostingEnvironmentProfile": {
"type": "string"
},
"maximumNumberOfWorkers": {
"type": "number"
},
"geoRegion": {
"type": "string"
},
"perSiteScaling": {
"type": "boolean"
},
"maximumElasticWorkerCount": {
"type": "integer"
},
"numberOfSites": {
"type": "integer"
},
"isSpot": {
"type": "boolean"
},
"spotExpirationTime": {
"type": "string"
},
"freeOfferExpirationTime": {
"type": "string"
},
"resourceGroup": {
"type": "string"
},
"reserved": {
"type": "boolean"
},
"isXenon": {
"type": "boolean"
},
"hyperV": {
"type": "boolean"
},
"targetWorkerCount": {
"type": "integer"
},
"targetWorkerSizeId": {
"type": "integer"
},
"provisioningState": {
"type": "string"
},
"kind": {
"type": "string"
},
"location": {
"type": "string"
},
"turbot": {
"type": "object",
"properties": {
"createTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/appServicePlanAka"
}
},
"title": {
"$ref": "#/definitions/name"
},
"tags": {
"$ref": "azure#/definitions/tags"
},
"custom": {
"type": "object",
"properties": {
"azure": {
"$ref": "azure#/definitions/azureMetadata"
},
"createTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "Base - All valid Properties",
"input": {
"name": "test01",
"turbot": {
"akas": [
"azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/dev/providers/Microsoft.Web/serverfarms/test01"
],
"title": "test01",
"custom": {
"azure": {
"subscriptionId": "9e3548cf-17e2-4751-b87e-b72bdd2c77f7",
"resourceGroupsName": "dev"
}
}
}
}
},
{
"description": "Invalid - Incorrect name",
"input": {
"name": "test-",
"turbot": {
"akas": [
"azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/dev/providers/Microsoft.Web/serverfarms/test01"
],
"title": "test-",
"custom": {
"azure": {
"subscriptionId": "9e3548cf-17e2-4751-b87e-b72bdd2c77f7",
"resourceGroupsName": "dev"
}
}
}
}
},
{
"description": "Invalid - name missing",
"input": {
"turbot": {
"akas": [
"azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/dev/providers/Microsoft.Web/serverfarms/test01"
],
"title": "test-02",
"custom": {
"azure": {
"subscriptionId": "9e3548cf-17e2-4751-b87e-b72bdd2c77f7",
"resourceGroupsName": "dev"
}
}
}
}
}
]
}
],
".turbot": {
"uri": "tmod:@turbot/azure-appservice#/definitions/appServicePlan",
"modUri": "tmod:@turbot/azure-appservice"
}
}

appServicePlanAka

{
"type": "string",
"pattern": "^azure:///subscriptions/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/resourceGroups/[A-Za-z0-9-_().]*[A-Za-z0-9-_()]/providers/Microsoft.Web/serverfarms/([a-z0-9]{2})[-]?([a-z0-9]){2,60}$",
"tests": [
{
"descritpion": "base case",
"input": "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/dev/providers/Microsoft.Web/serverfarms/test01"
},
{
"description": "invalid - Wrong Account id",
"input": "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2chkjfhhdshfkndjfjkdsjh77f7/resourceGroups/dev/providers/Microsoft.Web/serverfarms/test01",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-appservice#/definitions/appServicePlanAka",
"modUri": "tmod:@turbot/azure-appservice"
}
}

appServicePlanServiceNow

{
"defaultColumns": {
"apps": {
"column": "enabled",
"label": "Apps",
"type": "string",
"size": 1000
},
"hyper_v": {
"column": "enabled",
"label": "Hyper V",
"type": "boolean"
},
"id": {
"column": "enabled",
"label": "ID"
},
"is_spot": {
"column": "enabled",
"label": "IS Spot",
"type": "boolean"
},
"is_xenon": {
"column": "enabled",
"label": "IS Xenon",
"type": "boolean"
},
"kind": {
"column": "enabled",
"label": "Kind"
},
"maximum_elastic_worker_count": {
"column": "enabled"
},
"maximum_number_of_workers": {
"column": "enabled"
},
"appServiceName": {
"column": "enabled",
"label": "App Service Name"
},
"provisioning_state": {
"column": "enabled",
"label": "Provisioning State"
},
"region": {
"column": "enabled",
"label": "Region",
"path": "data.location"
},
"reserved": {
"column": "enabled",
"type": "boolean"
},
"resource_group": {
"column": "enabled",
"size": 200,
"path": "metadata.azure.resourceGroup"
},
"sku_capacity": {
"column": "enabled",
"label": "SKU Capacity",
"path": "data.sku.capacity"
},
"sku_family": {
"column": "enabled",
"label": "SKU Family",
"path": "data.sku.family"
},
"sku_name": {
"column": "enabled",
"label": "SKU Name",
"path": "data.sku.name"
},
"sku_size": {
"column": "enabled",
"label": "SKU Size",
"path": "data.sku.size"
},
"sku_tier": {
"column": "enabled",
"label": "SKU Tier",
"path": "data.sku.tier"
},
"status": {
"column": "enabled",
"label": "Status"
},
"subscription_id": {
"column": "enabled",
"label": "Subscription ID",
"size": 200,
"path": "metadata.azure.subscriptionId"
},
"tags": {
"column": "enabled",
"type": "string",
"size": 1000
},
"type": {
"column": "enabled"
}
},
".turbot": {
"uri": "tmod:@turbot/azure-appservice#/definitions/appServicePlanServiceNow",
"modUri": "tmod:@turbot/azure-appservice"
}
}

appState

{
"type": "string",
"enum": [
"Running",
"Stopped"
],
"tests": [
{
"input": "Running"
},
{
"input": "Stopped"
},
{
"description": "invalid - lowercase value",
"input": "running",
"expected": false
},
{
"description": "invalid - not listed in the options",
"input": "foo",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-appservice#/definitions/appState",
"modUri": "tmod:@turbot/azure-appservice"
}
}

functionApp

{
"type": "object",
"properties": {
"name": {
"$ref": "#/definitions/name"
},
"state": {
"$ref": "#/definitions/appState"
},
"tags": {
"$ref": "azure#/definitions/tags"
},
"id": {
"type": "string"
},
"kind": {
"type": "string"
},
"location": {
"type": "string"
},
"hostNames": {
"type": "array"
},
"repositorySiteName": {
"type": "string"
},
"usageState": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"enabledHostNames": {
"type": "array"
},
"availabilityState": {
"type": "string"
},
"hostNameSslStates": {
"type": "array"
},
"serverFarmId": {
"type": "string"
},
"reserved": {
"type": "boolean"
},
"isXenon": {
"type": "boolean"
},
"hyperV": {
"type": "boolean"
},
"lastModifiedTimeUtc": {
"type": "string"
},
"siteConfig": {
"anyOf": [
{
"type": "string"
},
{
"type": "object"
}
]
},
"trafficManagerHostNames": {
"type": "string"
},
"scmSiteAlsoStopped": {
"type": "boolean"
},
"targetSwapSlot": {
"type": "string"
},
"hostingEnvironmentProfile": {
"type": "string"
},
"clientAffinityEnabled": {
"type": "boolean"
},
"clientCertEnabled": {
"type": "boolean"
},
"hostNamesDisabled": {
"type": "boolean"
},
"outboundIpAddresses": {
"type": "string"
},
"possibleOutboundIpAddresses": {
"type": "string"
},
"containerSize": {
"type": "integer"
},
"dailyMemoryTimeQuota": {
"type": "integer"
},
"suspendedTill": {
"type": "string"
},
"maxNumberOfWorkers": {
"type": "integer"
},
"cloningInfo": {
"anyOf": [
{
"type": "string"
},
{
"type": "object"
}
]
},
"resourceGroup": {
"type": "string"
},
"defaultHostName": {
"type": "string"
},
"slotSwapStatus": {
"anyOf": [
{
"type": "string"
},
{
"type": "object"
}
]
},
"httpsOnly": {
"type": "boolean"
},
"turbot": {
"type": "object",
"properties": {
"createTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"tags": {
"$ref": "azure#/definitions/tags"
},
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/functionAppAka"
}
},
"title": {
"$ref": "#/definitions/name"
},
"custom": {
"type": "object",
"properties": {
"createTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"azure": {
"$ref": "azure#/definitions/azureMetadata"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "Base - All valid Properties",
"input": {
"name": "claratest",
"id": "/subscriptions/3510ae4d-530b-497d-8f30-53b9616fc6c1/resourceGroups/test/providers/Microsoft.Web/sites/clarademo02",
"kind": "functionapp",
"location": "Central US",
"state": "Running",
"tags": {
"test": "mjugef",
"clara": "jcgjjfgj"
},
"hostNames": [
"clarademo02.azurewebsites.net"
],
"repositorySiteName": "clarademo02",
"usageState": "Normal",
"enabled": true,
"enabledHostNames": [
"clarademo02.azurewebsites.net",
"clarademo02.scm.azurewebsites.net"
],
"availabilityState": "Normal",
"hostNameSslStates": [
{
"name": "clarademo02.azurewebsites.net",
"sslState": "Disabled",
"virtualIP": null,
"thumbprint": null,
"toUpdate": null,
"hostType": "Standard",
"ipBasedSslResult": null,
"toUpdateIpBasedSsl": null,
"ipBasedSslState": "NotConfigured"
},
{
"name": "clarademo02.scm.azurewebsites.net",
"sslState": "Disabled",
"virtualIP": null,
"thumbprint": null,
"toUpdate": null,
"hostType": "Repository",
"ipBasedSslResult": null,
"toUpdateIpBasedSsl": null,
"ipBasedSslState": "NotConfigured"
}
],
"serverFarmId": "/subscriptions/3510ae4d-530b-497d-8f30-53b9616fc6c1/resourceGroups/test/providers/Microsoft.Web/serverfarms/CentralUSPlan",
"reserved": false,
"isXenon": false,
"hyperV": false,
"lastModifiedTimeUtc": "2019-08-13T13:29:24.330Z",
"trafficManagerHostNames": null,
"scmSiteAlsoStopped": false,
"targetSwapSlot": null,
"hostingEnvironmentProfile": null,
"clientAffinityEnabled": false,
"clientCertEnabled": false,
"hostNamesDisabled": false,
"outboundIpAddresses": "40.113.236.45,104.43.246.4,104.43.241.185,104.43.251.139,40.113.223.211",
"possibleOutboundIpAddresses": "40.113.236.45,104.43.246.4,104.43.241.185,104.43.251.139,40.113.223.211,40.113.219.59,40.113.216.205,40.113.217.83",
"containerSize": 1536,
"dailyMemoryTimeQuota": 0,
"suspendedTill": null,
"maxNumberOfWorkers": null,
"resourceGroup": "test",
"defaultHostName": "clarademo02.azurewebsites.net",
"httpsOnly": false,
"turbot": {
"akas": [
"azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Web/sites/claratest"
],
"title": "claratest",
"custom": {
"azure": {
"subscriptionId": "9e3548cf-17e2-4751-b87e-b72bdd2c77f7",
"resourceGroupName": "test"
}
}
}
}
}
],
".turbot": {
"uri": "tmod:@turbot/azure-appservice#/definitions/functionApp",
"modUri": "tmod:@turbot/azure-appservice"
}
}

functionAppAka

{
"type": "string",
"pattern": "^azure:///subscriptions/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/resourceGroups/[A-Za-z0-9-_().]*[A-Za-z0-9-_()]/providers/Microsoft.Web/sites/[a-z0-9]{2,60}$",
"tests": [
{
"descritpion": "base case",
"input": "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/test/providers/Microsoft.Web/sites/claratest"
},
{
"description": "invalid - Wrong Account id",
"input": "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2chkjfhhdshfkndjfjkdsjh77f7/resourceGroups/dev/providers/Microsoft.Web/sites/test01",
"expected": false
},
{
"descritpion": "invalid - empty string passed",
"input": "",
"expected": false
},
{
"description": "invalid - Wrong service provider",
"input": "aws:///management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/test01",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-appservice#/definitions/functionAppAka",
"modUri": "tmod:@turbot/azure-appservice"
}
}

functionAppServiceNow

{
"defaultColumns": {
"client_affinity_enabled": {
"column": "enabled",
"type": "boolean"
},
"client_cert_enabled": {
"column": "enabled",
"type": "boolean"
},
"configuration": {
"column": "enabled",
"label": "Configuration",
"type": "string",
"size": 1000
},
"enabled": {
"column": "enabled",
"type": "boolean"
},
"host_name_disabled": {
"column": "enabled",
"type": "boolean"
},
"host_names": {
"column": "enabled",
"type": "string",
"size": 1000
},
"https_only": {
"column": "enabled",
"label": "HTTPS Only",
"type": "boolean"
},
"id": {
"column": "enabled",
"label": "ID"
},
"kind": {
"column": "enabled",
"label": "Kind"
},
"function_app_name": {
"column": "enabled",
"label": "Function App Name"
},
"region": {
"column": "enabled",
"label": "Region",
"path": "data.location"
},
"reserved": {
"column": "enabled",
"type": "boolean"
},
"resource_group": {
"column": "enabled",
"label": "Resource Group",
"size": 200,
"path": "metadata.azure.resourceGroup"
},
"site_config": {
"column": "enabled",
"type": "string",
"size": 1000
},
"state": {
"column": "enabled",
"label": "State"
},
"subscription_id": {
"column": "enabled",
"label": "Subscription ID",
"size": 200,
"path": "metadata.azure.subscriptionId"
},
"tags": {
"column": "enabled",
"type": "string",
"size": 1000
},
"type": {
"column": "enabled",
"label": "Type"
}
},
".turbot": {
"uri": "tmod:@turbot/azure-appservice#/definitions/functionAppServiceNow",
"modUri": "tmod:@turbot/azure-appservice"
}
}

name

{
"type": "string",
"pattern": "^[a-zA-Z0-9-]{2,60}$",
"tests": [
{
"description": "base case",
"input": "test04",
"descritpion": "base case"
},
{
"description": "invalid - cannot use any special charecters",
"input": "-!@#$%^&*(test",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-appservice#/definitions/name",
"modUri": "tmod:@turbot/azure-appservice"
}
}

planStatus

{
"type": "string",
"enum": [
"Creating",
"Pending",
"Ready"
],
"tests": [
{
"input": "Ready"
},
{
"input": "Pending"
},
{
"description": "invalid - lowercase value",
"input": "ready",
"expected": false
},
{
"description": "invalid - not listed in the options",
"input": "foo",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-appservice#/definitions/planStatus",
"modUri": "tmod:@turbot/azure-appservice"
}
}

webApp

{
"type": "object",
"properties": {
"name": {
"$ref": "#/definitions/webAppName"
},
"state": {
"$ref": "#/definitions/appState"
},
"tags": {
"$ref": "azure#/definitions/tags"
},
"id": {
"type": "string"
},
"kind": {
"type": "string"
},
"location": {
"type": "string"
},
"hostNames": {
"type": "array"
},
"repositorySiteName": {
"type": "string"
},
"usageState": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"enabledHostNames": {
"type": "array"
},
"availabilityState": {
"type": "string"
},
"hostNameSslStates": {
"type": "array"
},
"serverFarmId": {
"type": "string"
},
"reserved": {
"type": "boolean"
},
"isXenon": {
"type": "boolean"
},
"hyperV": {
"type": "boolean"
},
"lastModifiedTimeUtc": {
"type": "string"
},
"siteConfig": {
"anyOf": [
{
"type": "object"
},
{
"type": "string"
}
]
},
"trafficManagerHostNames": {
"type": "string"
},
"scmSiteAlsoStopped": {
"type": "boolean"
},
"targetSwapSlot": {
"type": "string"
},
"hostingEnvironmentProfile": {
"type": "string"
},
"clientAffinityEnabled": {
"type": "boolean"
},
"clientCertEnabled": {
"type": "boolean"
},
"hostNamesDisabled": {
"type": "boolean"
},
"outboundIpAddresses": {
"type": "string"
},
"possibleOutboundIpAddresses": {
"type": "string"
},
"containerSize": {
"type": "integer"
},
"dailyMemoryTimeQuota": {
"type": "integer"
},
"suspendedTill": {
"type": "string"
},
"maxNumberOfWorkers": {
"type": "integer"
},
"cloningInfo": {
"anyOf": [
{
"type": "object"
},
{
"type": "string"
}
]
},
"resourceGroup": {
"type": "string"
},
"defaultHostName": {
"type": "string"
},
"slotSwapStatus": {
"anyOf": [
{
"type": "object"
},
{
"type": "string"
}
]
},
"httpsOnly": {
"type": "boolean"
},
"configuration": {
"type": "object"
},
"netFrameworkVersion": {
"type": "string"
},
"phpVersion": {
"type": "string"
},
"pythonVersion": {
"type": "string"
},
"nodeVersion": {
"type": "string"
},
"linuxFxVersion": {
"type": "string"
},
"windowsFxVersion": {
"type": "string"
},
"requestTracingEnabled": {
"type": "boolean"
},
"remoteDebuggingEnabled": {
"type": "boolean"
},
"remoteDebuggingVersion": {
"type": "string"
},
"httpLoggingEnabled": {
"type": "boolean"
},
"logsDirectorySizeLimit": {
"type": "integer"
},
"detailedErrorLoggingEnabled": {
"type": "boolean"
},
"publishingUsername": {
"type": "string"
},
"appSettings": {
"type": "array"
},
"connectionStrings": {
"type": "array"
},
"machineKey": {
"type": "string"
},
"handlerMappings": {
"type": "array"
},
"documentRoot": {
"type": "string"
},
"scmType": {
"type": "string"
},
"use32BitWorkerProcess": {
"type": "boolean"
},
"webSocketsEnabled": {
"type": "boolean"
},
"alwaysOn": {
"type": "boolean"
},
"javaVersion": {
"type": "string"
},
"javaContainer": {
"type": "string"
},
"javaContainerVersion": {
"type": "string"
},
"appCommandLine": {
"type": "string"
},
"managedPipelineMode": {
"type": "string"
},
"virtualApplications": {
"type": "array"
},
"loadBalancing": {
"type": "string"
},
"experiments": {
"type": "object"
},
"limits": {
"type": "object"
},
"autoHealEnabled": {
"type": "boolean"
},
"autoHealRules": {
"type": "object"
},
"tracingOptions": {
"type": "string"
},
"vnetName": {
"type": "string"
},
"cors": {
"type": "object"
},
"push": {
"type": "object"
},
"apiDefinition": {
"type": "string"
},
"autoSwapSlotName": {
"type": "string"
},
"localMySqlEnabled": {
"type": "boolean"
},
"managedServiceIdentityId": {
"type": "integer"
},
"xManagedServiceIdentityId": {
"type": "integer"
},
"ipSecurityRestrictions": {
"type": "array"
},
"http20Enabled": {
"type": "boolean"
},
"minTlsVersion": {
"type": "string"
},
"ftpsState": {
"type": "string"
},
"reservedInstanceCount": {
"type": "integer"
},
"authSettings": {
"type": "object"
},
"turbot": {
"type": "object",
"properties": {
"createTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"tags": {
"$ref": "azure#/definitions/tags"
},
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/webAppAka"
}
},
"title": {
"$ref": "#/definitions/webAppName"
},
"custom": {
"type": "object",
"properties": {
"createTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"azure": {
"$ref": "azure#/definitions/azureMetadata"
}
}
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "Base - All valid Properties",
"input": {
"name": "anisa-01",
"id": "/subscriptions/3510ae4d-530b-497d-8f30-53b9616fc6c1/resourceGroups/test/providers/Microsoft.Web/sites/testauth-cis",
"turbot": {
"akas": [
"azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/dev/providers/Microsoft.Web/sites/anisa-01"
],
"title": "anisa-01",
"custom": {
"azure": {
"subscriptionId": "9e3548cf-17e2-4751-b87e-b72bdd2c77f7",
"resourceGroupName": "dev"
}
}
}
}
}
],
".turbot": {
"uri": "tmod:@turbot/azure-appservice#/definitions/webApp",
"modUri": "tmod:@turbot/azure-appservice"
}
}

webAppAka

{
"type": "string",
"pattern": "^azure:///subscriptions/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/resourceGroups/[A-Za-z0-9-_().]*[A-Za-z0-9-_()]/providers/Microsoft.Web/sites/[A-Za-z0-9-?]{2,60}$",
"tests": [
{
"descritpion": "base case",
"input": "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/dev/providers/Microsoft.Web/sites/test01"
},
{
"description": "invalid - Wrong Account id",
"input": "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2chkjfhhdshfkndjfjkdsjh77f7/resourceGroups/dev/providers/Microsoft.Web/sites/test01",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-appservice#/definitions/webAppAka",
"modUri": "tmod:@turbot/azure-appservice"
}
}

webAppName

{
"type": "string",
"pattern": "^[A-Za-z0-9-?-]{2,60}$",
"tests": [
{
"descritpion": "base case",
"input": "anisa-01"
},
{
"description": "invalid case",
"input": "test.01",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-appservice#/definitions/webAppName",
"modUri": "tmod:@turbot/azure-appservice"
}
}

webAppServiceNow

{
"defaultColumns": {
"configuration": {
"column": "enabled",
"type": "string",
"size": 1000
},
"default_host_name": {
"column": "enabled"
},
"enabled": {
"column": "enabled",
"label": "Enabled",
"type": "boolean"
},
"host_name_disabled": {
"column": "enabled",
"label": "Host Name Disabled",
"type": "boolean"
},
"host_names": {
"column": "enabled",
"label": "Host Names",
"type": "string",
"size": 1000
},
"https_only": {
"column": "enabled",
"label": "HTTPS Only",
"type": "boolean"
},
"id": {
"column": "enabled",
"label": "ID"
},
"kind": {
"column": "enabled",
"label": "Kind"
},
"web_app_name": {
"column": "enabled",
"label": "Web App Name"
},
"region": {
"column": "enabled",
"label": "Region",
"path": "data.location"
},
"reserved": {
"column": "enabled",
"label": "Reserved",
"type": "boolean"
},
"resource_group": {
"column": "enabled",
"label": "Resource Group",
"size": 200,
"path": "metadata.azure.resourceGroup"
},
"site_config": {
"column": "enabled",
"type": "string",
"size": 1000
},
"state": {
"column": "enabled",
"label": "State"
},
"subscription_id": {
"column": "enabled",
"label": "Subscription ID",
"size": 200,
"path": "metadata.azure.subscriptionId"
},
"tags": {
"column": "enabled",
"label": "Tags",
"type": "string",
"size": 1000
},
"type": {
"column": "enabled",
"label": "Type"
}
},
".turbot": {
"uri": "tmod:@turbot/azure-appservice#/definitions/webAppServiceNow",
"modUri": "tmod:@turbot/azure-appservice"
}
}