你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

Microsoft.网站/slots/config 2020-10-01

Bicep 资源定义

可以使用目标作部署站点/槽/配置资源类型:

有关每个 API 版本中已更改属性的列表,请参阅 更改日志。

用法示例

Bicep 示例

部署应用服务的插槽虚拟网络关联的基本示例。

param resourceName string = 'acctest0001'
param location string = 'westeurope'

resource serverfarm 'Microsoft.Web/serverfarms@2022-09-01' = {
  name: resourceName
  location: location
  sku: {
    name: 'S1'
  }
  properties: {
    hyperV: false
    perSiteScaling: false
    reserved: false
    zoneRedundant: false
  }
}

resource site 'Microsoft.Web/sites@2022-09-01' = {
  name: resourceName
  location: location
  properties: {
    clientAffinityEnabled: false
    clientCertEnabled: false
    clientCertMode: 'Required'
    enabled: true
    httpsOnly: false
    publicNetworkAccess: 'Enabled'
    serverFarmId: serverfarm.id
    siteConfig: {
      acrUseManagedIdentityCreds: false
      alwaysOn: true
      autoHealEnabled: false
      ftpsState: 'Disabled'
      http20Enabled: false
      loadBalancing: 'LeastRequests'
      localMySqlEnabled: false
      managedPipelineMode: 'Integrated'
      minTlsVersion: '1.2'
      publicNetworkAccess: 'Enabled'
      remoteDebuggingEnabled: false
      scmIpSecurityRestrictionsUseMain: false
      scmMinTlsVersion: '1.2'
      use32BitWorkerProcess: true
      vnetRouteAllEnabled: false
      webSocketsEnabled: false
      windowsFxVersion: ''
    }
    vnetRouteAllEnabled: false
  }
}

resource slot 'Microsoft.Web/sites/slots@2022-09-01' = {
  name: resourceName
  location: location
  parent: site
  properties: {
    clientAffinityEnabled: false
    clientCertEnabled: false
    clientCertExclusionPaths: ''
    clientCertMode: 'Required'
    enabled: true
    httpsOnly: false
    publicNetworkAccess: 'Enabled'
    serverFarmId: serverfarm.id
    siteConfig: {
      acrUseManagedIdentityCreds: false
      alwaysOn: true
      autoHealEnabled: false
      ftpsState: 'Disabled'
      http20Enabled: false
      loadBalancing: 'LeastRequests'
      localMySqlEnabled: false
      managedPipelineMode: 'Integrated'
      minTlsVersion: '1.2'
      publicNetworkAccess: 'Enabled'
      remoteDebuggingEnabled: false
      scmIpSecurityRestrictionsUseMain: false
      scmMinTlsVersion: '1.2'
      use32BitWorkerProcess: false
      vnetRouteAllEnabled: false
      webSocketsEnabled: false
      windowsFxVersion: ''
    }
    vnetRouteAllEnabled: false
  }
}

resource config 'Microsoft.Web/sites/slots/config@2022-09-01' = {
  name: 'azurestorageaccounts'
  parent: slot
  properties: {}
}

Azure 验证模块

以下 Azure 验证模块 可用于部署此资源类型。

模块 描述
网页/功能应用 - 插槽 - 配置 AVM 网页/功能应用子模块 - 槽位 - 配置

资源格式

若要创建 Microsoft.Web/sites/slots/config 资源,请将以下 Bicep 添加到模板。

resource symbolicname 'Microsoft.Web/sites/slots/config@2020-10-01' = {
  name: 'string'
  // For remaining properties, see microsoft.web/sites/slots/config objects
}

microsoft.web/sites/slots/config 对象

设置 名称 属性以指定对象的类型。

对于 appsettings,请使用:

{
  kind: 'string'
  name: 'appsettings'
  properties: {
    {customized property}: 'string'
  }
}

对于 身份验证,请使用:

{
  kind: 'string'
  name: 'authsettings'
  properties: {
    aadClaimsAuthorization: 'string'
    additionalLoginParams: [
      'string'
    ]
    allowedAudiences: [
      'string'
    ]
    allowedExternalRedirectUrls: [
      'string'
    ]
    authFilePath: 'string'
    clientId: 'string'
    clientSecret: 'string'
    clientSecretCertificateThumbprint: 'string'
    clientSecretSettingName: 'string'
    defaultProvider: 'string'
    enabled: bool
    facebookAppId: 'string'
    facebookAppSecret: 'string'
    facebookAppSecretSettingName: 'string'
    facebookOAuthScopes: [
      'string'
    ]
    gitHubClientId: 'string'
    gitHubClientSecret: 'string'
    gitHubClientSecretSettingName: 'string'
    gitHubOAuthScopes: [
      'string'
    ]
    googleClientId: 'string'
    googleClientSecret: 'string'
    googleClientSecretSettingName: 'string'
    googleOAuthScopes: [
      'string'
    ]
    isAuthFromFile: 'string'
    issuer: 'string'
    microsoftAccountClientId: 'string'
    microsoftAccountClientSecret: 'string'
    microsoftAccountClientSecretSettingName: 'string'
    microsoftAccountOAuthScopes: [
      'string'
    ]
    runtimeVersion: 'string'
    tokenRefreshExtensionHours: int
    tokenStoreEnabled: bool
    twitterConsumerKey: 'string'
    twitterConsumerSecret: 'string'
    twitterConsumerSecretSettingName: 'string'
    unauthenticatedClientAction: 'string'
    validateIssuer: bool
  }
}

对于 authsettingsV2,请使用:

{
  kind: 'string'
  name: 'authsettingsV2'
  properties: {
    globalValidation: {
      kind: 'string'
      properties: {
        excludedPaths: [
          'string'
        ]
        redirectToProvider: 'string'
        requireAuthentication: bool
        unauthenticatedClientAction: 'string'
      }
    }
    httpSettings: {
      kind: 'string'
      properties: {
        forwardProxy: {
          kind: 'string'
          properties: {
            convention: 'string'
            customHostHeaderName: 'string'
            customProtoHeaderName: 'string'
          }
        }
        requireHttps: bool
        routes: {
          kind: 'string'
          properties: {
            apiPrefix: 'string'
          }
        }
      }
    }
    identityProviders: {
      kind: 'string'
      properties: {
        azureActiveDirectory: {
          kind: 'string'
          properties: {
            enabled: bool
            isAutoProvisioned: bool
            login: {
              kind: 'string'
              properties: {
                disableWWWAuthenticate: bool
                loginParameters: [
                  'string'
                ]
              }
            }
            registration: {
              kind: 'string'
              properties: {
                clientId: 'string'
                clientSecretCertificateThumbprint: 'string'
                clientSecretSettingName: 'string'
                openIdIssuer: 'string'
              }
            }
            validation: {
              kind: 'string'
              properties: {
                allowedAudiences: [
                  'string'
                ]
                jwtClaimChecks: {
                  kind: 'string'
                  properties: {
                    allowedClientApplications: [
                      'string'
                    ]
                    allowedGroups: [
                      'string'
                    ]
                  }
                }
              }
            }
          }
        }
        customOpenIdConnectProviders: {
          {customized property}: {
            kind: 'string'
            properties: {
              enabled: bool
              login: {
                kind: 'string'
                properties: {
                  nameClaimType: 'string'
                  scopes: [
                    'string'
                  ]
                }
              }
              registration: {
                kind: 'string'
                properties: {
                  clientCredential: {
                    kind: 'string'
                    properties: {
                      clientSecretSettingName: 'string'
                      method: 'ClientSecretPost'
                    }
                  }
                  clientId: 'string'
                  openIdConnectConfiguration: {
                    kind: 'string'
                    properties: {
                      authorizationEndpoint: 'string'
                      certificationUri: 'string'
                      issuer: 'string'
                      tokenEndpoint: 'string'
                      wellKnownOpenIdConfiguration: 'string'
                    }
                  }
                }
              }
            }
          }
        }
        facebook: {
          kind: 'string'
          properties: {
            enabled: bool
            graphApiVersion: 'string'
            login: {
              kind: 'string'
              properties: {
                scopes: [
                  'string'
                ]
              }
            }
            registration: {
              kind: 'string'
              properties: {
                appId: 'string'
                appSecretSettingName: 'string'
              }
            }
          }
        }
        gitHub: {
          kind: 'string'
          properties: {
            enabled: bool
            login: {
              kind: 'string'
              properties: {
                scopes: [
                  'string'
                ]
              }
            }
            registration: {
              kind: 'string'
              properties: {
                clientId: 'string'
                clientSecretSettingName: 'string'
              }
            }
          }
        }
        google: {
          kind: 'string'
          properties: {
            enabled: bool
            login: {
              kind: 'string'
              properties: {
                scopes: [
                  'string'
                ]
              }
            }
            registration: {
              kind: 'string'
              properties: {
                clientId: 'string'
                clientSecretSettingName: 'string'
              }
            }
            validation: {
              kind: 'string'
              properties: {
                allowedAudiences: [
                  'string'
                ]
              }
            }
          }
        }
        twitter: {
          kind: 'string'
          properties: {
            enabled: bool
            registration: {
              kind: 'string'
              properties: {
                consumerKey: 'string'
                consumerSecretSettingName: 'string'
              }
            }
          }
        }
      }
    }
    login: {
      kind: 'string'
      properties: {
        allowedExternalRedirectUrls: [
          'string'
        ]
        cookieExpiration: {
          kind: 'string'
          properties: {
            convention: 'string'
            timeToExpiration: 'string'
          }
        }
        nonce: {
          kind: 'string'
          properties: {
            nonceExpirationInterval: 'string'
            validateNonce: bool
          }
        }
        preserveUrlFragmentsForLogins: bool
        routes: {
          kind: 'string'
          properties: {
            logoutEndpoint: 'string'
          }
        }
        tokenStore: {
          kind: 'string'
          properties: {
            azureBlobStorage: {
              kind: 'string'
              properties: {
                sasUrlSettingName: 'string'
              }
            }
            enabled: bool
            fileSystem: {
              kind: 'string'
              properties: {
                directory: 'string'
              }
            }
            tokenRefreshExtensionHours: int
          }
        }
      }
    }
    platform: {
      kind: 'string'
      properties: {
        configFilePath: 'string'
        enabled: bool
        runtimeVersion: 'string'
      }
    }
  }
}

若要 azurestorageaccounts,请使用:

{
  kind: 'string'
  name: 'azurestorageaccounts'
  properties: {
    {customized property}: {
      accessKey: 'string'
      accountName: 'string'
      mountPath: 'string'
      shareName: 'string'
      type: 'string'
    }
  }
}

对于 备份,请使用:

{
  kind: 'string'
  name: 'backup'
  properties: {
    backupName: 'string'
    backupSchedule: {
      frequencyInterval: int
      frequencyUnit: 'string'
      keepAtLeastOneBackup: bool
      retentionPeriodInDays: int
      startTime: 'string'
    }
    databases: [
      {
        connectionString: 'string'
        connectionStringName: 'string'
        databaseType: 'string'
        name: 'string'
      }
    ]
    enabled: bool
    storageAccountUrl: 'string'
  }
}

对于 连接字符串,请使用:

{
  kind: 'string'
  name: 'connectionstrings'
  properties: {
    {customized property}: {
      type: 'string'
      value: 'string'
    }
  }
}

对于 日志,请使用:

{
  kind: 'string'
  name: 'logs'
  properties: {
    applicationLogs: {
      azureBlobStorage: {
        level: 'string'
        retentionInDays: int
        sasUrl: 'string'
      }
      azureTableStorage: {
        level: 'string'
        sasUrl: 'string'
      }
      fileSystem: {
        level: 'string'
      }
    }
    detailedErrorMessages: {
      enabled: bool
    }
    failedRequestsTracing: {
      enabled: bool
    }
    httpLogs: {
      azureBlobStorage: {
        enabled: bool
        retentionInDays: int
        sasUrl: 'string'
      }
      fileSystem: {
        enabled: bool
        retentionInDays: int
        retentionInMb: int
      }
    }
  }
}

对于 元数据,请使用:

{
  kind: 'string'
  name: 'metadata'
  properties: {
    {customized property}: 'string'
  }
}

对于 推送设置,请使用:

{
  kind: 'string'
  name: 'pushsettings'
  properties: {
    dynamicTagsJson: 'string'
    isPushEnabled: bool
    tagsRequiringAuth: 'string'
    tagWhitelistJson: 'string'
  }
}

对于 Web,请使用:

{
  kind: 'string'
  name: 'web'
  properties: {
    acrUseManagedIdentityCreds: bool
    acrUserManagedIdentityID: 'string'
    alwaysOn: bool
    apiDefinition: {
      url: 'string'
    }
    apiManagementConfig: {
      id: 'string'
    }
    appCommandLine: 'string'
    appSettings: [
      {
        name: 'string'
        value: 'string'
      }
    ]
    autoHealEnabled: bool
    autoHealRules: {
      actions: {
        actionType: 'string'
        customAction: {
          exe: 'string'
          parameters: 'string'
        }
        minProcessExecutionTime: 'string'
      }
      triggers: {
        privateBytesInKB: int
        requests: {
          count: int
          timeInterval: 'string'
        }
        slowRequests: {
          count: int
          timeInterval: 'string'
          timeTaken: 'string'
        }
        statusCodes: [
          {
            count: int
            status: int
            subStatus: int
            timeInterval: 'string'
            win32Status: int
          }
        ]
      }
    }
    autoSwapSlotName: 'string'
    connectionStrings: [
      {
        connectionString: 'string'
        name: 'string'
        type: 'string'
      }
    ]
    cors: {
      allowedOrigins: [
        'string'
      ]
      supportCredentials: bool
    }
    defaultDocuments: [
      'string'
    ]
    detailedErrorLoggingEnabled: bool
    documentRoot: 'string'
    experiments: {
      rampUpRules: [
        {
          actionHostName: 'string'
          changeDecisionCallbackUrl: 'string'
          changeIntervalInMinutes: int
          changeStep: int
          maxReroutePercentage: int
          minReroutePercentage: int
          name: 'string'
          reroutePercentage: int
        }
      ]
    }
    ftpsState: 'string'
    handlerMappings: [
      {
        arguments: 'string'
        extension: 'string'
        scriptProcessor: 'string'
      }
    ]
    healthCheckPath: 'string'
    http20Enabled: bool
    httpLoggingEnabled: bool
    ipSecurityRestrictions: [
      {
        action: 'string'
        description: 'string'
        headers: {
          {customized property}: [
            'string'
          ]
        }
        ipAddress: 'string'
        name: 'string'
        priority: int
        subnetMask: 'string'
        subnetTrafficTag: int
        tag: 'string'
        vnetSubnetResourceId: 'string'
        vnetTrafficTag: int
      }
    ]
    javaContainer: 'string'
    javaContainerVersion: 'string'
    javaVersion: 'string'
    limits: {
      maxDiskSizeInMb: int
      maxMemoryInMb: int
      maxPercentageCpu: int
    }
    linuxFxVersion: 'string'
    loadBalancing: 'string'
    localMySqlEnabled: bool
    logsDirectorySizeLimit: int
    managedPipelineMode: 'string'
    managedServiceIdentityId: int
    minTlsVersion: 'string'
    netFrameworkVersion: 'string'
    nodeVersion: 'string'
    numberOfWorkers: int
    phpVersion: 'string'
    powerShellVersion: 'string'
    preWarmedInstanceCount: int
    publishingUsername: 'string'
    push: {
      kind: 'string'
      properties: {
        dynamicTagsJson: 'string'
        isPushEnabled: bool
        tagsRequiringAuth: 'string'
        tagWhitelistJson: 'string'
      }
    }
    pythonVersion: 'string'
    remoteDebuggingEnabled: bool
    remoteDebuggingVersion: 'string'
    requestTracingEnabled: bool
    requestTracingExpirationTime: 'string'
    scmIpSecurityRestrictions: [
      {
        action: 'string'
        description: 'string'
        headers: {
          {customized property}: [
            'string'
          ]
        }
        ipAddress: 'string'
        name: 'string'
        priority: int
        subnetMask: 'string'
        subnetTrafficTag: int
        tag: 'string'
        vnetSubnetResourceId: 'string'
        vnetTrafficTag: int
      }
    ]
    scmIpSecurityRestrictionsUseMain: bool
    scmMinTlsVersion: 'string'
    scmType: 'string'
    tracingOptions: 'string'
    use32BitWorkerProcess: bool
    virtualApplications: [
      {
        physicalPath: 'string'
        preloadEnabled: bool
        virtualDirectories: [
          {
            physicalPath: 'string'
            virtualPath: 'string'
          }
        ]
        virtualPath: 'string'
      }
    ]
    vnetName: 'string'
    vnetPrivatePortsCount: int
    vnetRouteAllEnabled: bool
    webSocketsEnabled: bool
    windowsFxVersion: 'string'
    xManagedServiceIdentityId: int
  }
}

属性值

Microsoft.Web/sites/slots/config

名字 描述 价值
类 资源类型。 字符串
名字 资源名称 “appsettings”(必需)
父级 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。

有关详细信息,请参阅 父资源外部的子资源。
类型资源的符号名称:站点/槽
性能 设置。 StringDictionaryProperties

Microsoft.Web/sites/slots/config

名字 描述 价值
类 资源类型。 字符串
名字 资源名称 “authsettings”(必需)
父级 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。

有关详细信息,请参阅 父资源外部的子资源。
类型资源的符号名称:站点/槽
性能 SiteAuthSettings 资源特定属性 SiteAuthSettingsProperties

Microsoft.Web/sites/slots/config

名字 描述 价值
类 资源类型。 字符串
名字 资源名称 “authsettingsV2”(必需)
父级 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。

有关详细信息,请参阅 父资源外部的子资源。
类型资源的符号名称:站点/槽
性能 SiteAuthSettingsV2 资源特定属性 SiteAuthSettingsV2属性

Microsoft.Web/sites/slots/config

名字 描述 价值
类 资源类型。 字符串
名字 资源名称 “azurestorageaccounts”(必需)
父级 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。

有关详细信息,请参阅 父资源外部的子资源。
类型资源的符号名称:站点/槽
性能 Azure 存储帐户。 AzureStoragePropertyDictionaryResourceProperties

Microsoft.Web/sites/slots/config

名字 描述 价值
类 资源类型。 字符串
名字 资源名称 “backup”(必需)
父级 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。

有关详细信息,请参阅 父资源外部的子资源。
类型资源的符号名称:站点/槽
性能 BackupRequest 资源特定属性 BackupRequestProperties

Microsoft.Web/sites/slots/config

名字 描述 价值
类 资源类型。 字符串
名字 资源名称 “connectionstrings”(必需)
父级 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。

有关详细信息,请参阅 父资源外部的子资源。
类型资源的符号名称:站点/槽
性能 连接字符串。 ConnectionStringDictionary属性

Microsoft.Web/sites/slots/config

名字 描述 价值
类 资源类型。 字符串
名字 资源名称 “logs”(必需)
父级 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。

有关详细信息,请参阅 父资源外部的子资源。
类型资源的符号名称:站点/槽
性能 SiteLogsConfig 资源特定属性 SiteLogsConfigProperties

Microsoft.Web/sites/slots/config

名字 描述 价值
类 资源类型。 字符串
名字 资源名称 “metadata”(必需)
父级 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。

有关详细信息,请参阅 父资源外部的子资源。
类型资源的符号名称:站点/槽
性能 设置。 StringDictionaryProperties

Microsoft.Web/sites/slots/config

名字 描述 价值
类 资源类型。 字符串
名字 资源名称 “pushsettings”(必需)
父级 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。

有关详细信息,请参阅 父资源外部的子资源。
类型资源的符号名称:站点/槽
性能 PushSettings 资源特定属性 PushSettingsProperties

Microsoft.Web/sites/slots/config

名字 描述 价值
类 资源类型。 字符串
名字 资源名称 “web”(必需)
父级 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。

有关详细信息,请参阅 父资源外部的子资源。
类型资源的符号名称:站点/槽
性能 核心资源属性 站点配置

AllowedAudiences验证

名字 描述 价值
类 资源类型。 字符串
性能 AllowedAudiencesValidation 资源特定属性 AllowedAudiencesValidationProperties

AllowedAudiencesValidationProperties

名字 描述 价值
allowedAudiences 字符串[]

ApiDefinitionInfo

名字 描述 价值
网址 API 定义的 URL。 字符串

ApiManagementConfig 接口

名字 描述 价值
身份证 APIM-Api 标识符。 字符串

应用程序日志配置

名字 描述 价值
azureBlobStorage 将应用程序日志记录到 Blob 存储配置。 AzureBlobStorageApplicationLogsConfig
azureTableStorage 将应用程序日志记录到 Azure 表存储配置。 AzureTableStorageApplicationLogsConfig
文件系统 应用程序日志到文件系统配置。 FileSystemApplicationLogsConfig

应用注册

名字 描述 价值
类 资源类型。 字符串
性能 特定于 AppRegistration 资源的属性 AppRegistrationProperties

AppRegistrationProperties

名字 描述 价值
应用程序ID 字符串
appSecretSettingName 字符串

AuthPlatform 认证

名字 描述 价值
类 资源类型。 字符串
性能 特定于 AuthPlatform 资源的属性 AuthPlatform属性

AuthPlatform属性

名字 描述 价值
configFilePath 文件 字符串
启用 布尔
runtimeVersion (运行时版本) 字符串

AutoHealActions 自动修复作

名字 描述 价值
动作类型 要执行的预定义作。 “CustomAction”
“LogEvent”
“回收”
自定义作 要执行的自定义作。 AutohealCustomAction 自动修复
minProcessExecutionTime (最小进程执行时间) 必须执行进程的最短时间
执行作之前
字符串

AutohealCustomAction 自动修复

名字 描述 价值
exe 要运行的可执行文件。 字符串
参数 可执行文件的参数。 字符串

AutoHealRules 自动修复规则

名字 描述 价值
行动 触发规则时要执行的作。 AutoHealActions 自动修复作
触发器 描述何时执行自动修复作的条件。 AutoHealTriggers 自动修复触发器

AutoHealTriggers 自动修复触发器

名字 描述 价值
privateBytesInKB 基于专用字节的规则。 整数 (int)
请求 基于请求总数的规则。 RequestsBasedTrigger 触发器
slowRequests 请求 基于请求执行时间的规则。 SlowRequestsBasedTrigger 触发器
statusCodes 基于状态代码的规则。 StatusCodesBasedTrigger[]

AzureActiveDirectory

名字 描述 价值
类 资源类型。 字符串
性能 特定于 AzureActiveDirectory 资源的属性 AzureActiveDirectory属性

AzureActiveDirectory登录

名字 描述 价值
类 资源类型。 字符串
性能 AzureActiveDirectoryLogin 资源特定属性 AzureActiveDirectoryLoginProperties

AzureActiveDirectoryLoginProperties

名字 描述 价值
disableWWWAuthenticate 布尔
loginParameters (登录参数) 字符串[]

AzureActiveDirectory属性

名字 描述 价值
启用 布尔
isAutoProvisioned 布尔
登录 AzureActiveDirectory登录
注册 AzureActiveDirectory注册
验证 AzureActiveDirectory验证

AzureActiveDirectory注册

名字 描述 价值
类 资源类型。 字符串
性能 AzureActiveDirectoryRegistration 资源特定属性 AzureActiveDirectoryRegistrationProperties

AzureActiveDirectoryRegistrationProperties

名字 描述 价值
客户端 ID 字符串
clientSecretCertificate指纹 字符串
clientSecretSettingName (客户端 Secret设置名称) 字符串
openIdIssuer 的 字符串

AzureActiveDirectory验证

名字 描述 价值
类 资源类型。 字符串
性能 AzureActiveDirectoryValidation 资源特定属性 AzureActiveDirectoryValidationProperties

AzureActiveDirectoryValidationProperties

名字 描述 价值
allowedAudiences 字符串[]
jwtClaimChecks JwtClaimChecks

AzureBlobStorageApplicationLogsConfig

名字 描述 价值
水平仪 日志级别。 “Error”
“信息”
“关闭”
“Verbose”
“Warning”
保留天数 保留天数。
删除早于 X 天的 Blob。
0 或更低意味着没有保留。
整数 (int)
sasUrl 的 具有读取/写入/列出/删除权限的 Azure Blob 容器的 SAS URL。 字符串

AzureBlobStorageHttpLogsConfig

名字 描述 价值
启用 如果启用了配置,则为 true;如果禁用,则为 false;如果未设置配置,则为 null。 布尔
保留天数 保留天数。
删除早于 X 天的 Blob。
0 或更低意味着没有保留。
整数 (int)
sasUrl 的 具有读取/写入/列出/删除权限的 Azure Blob 容器的 SAS URL。 字符串

AzureStorageInfoValue

名字 描述 价值
访问密钥 存储帐户的访问密钥。 字符串
账户名称 存储帐户的名称。 字符串
mountPath 在站点的运行时环境中装载存储的路径。 字符串
shareName (共享名称) 文件共享的名称(容器名称,Blob 存储)。 字符串
类型 存储的类型。 “AzureBlob”
“AzureFiles”

AzureStoragePropertyDictionaryResourceProperties

名字 描述 价值

AzureTableStorageApplicationLogsConfig

名字 描述 价值
水平仪 日志级别。 “Error”
“信息”
“关闭”
“Verbose”
“Warning”
sasUrl 的 包含添加/查询/删除权限的 Azure 表的 SAS URL。 string (必需)

BackupRequestProperties

名字 描述 价值
backupName (备份名称) 备份的名称。 字符串
backupSchedule 定期执行备份时计划备份。 备份计划
数据库 备份中包含的数据库。 DatabaseBackupSetting[]
启用 如果启用备份计划(在这种情况下必须包含),则为 true;如果应禁用备份计划,则为 false。 布尔
storageAccountUrl 的 容器的 SAS URL。 string (必需)

备份计划

名字 描述 价值
频率间隔 应执行备份的频率(例如,对于每周备份,应将其设置为 7,FrequencyUnit 应设置为 Day) int (必需)
频率单位 执行备份的频率的时间单位(例如,对于每周备份,应将其设置为 Day,FrequencyInterval 应设置为 7) “Day”
“Hour”(必需)
keepAtLeastOneBackup 如此 如果保留策略应始终在存储帐户中保留至少一个备份,而不考虑备份的年龄:否则为 false。 bool (必需)
retentionPeriodInDays (保留期以天为单位) 删除多少天备份后。 int (必需)
开始时间 计划何时应开始工作。 字符串

BlobStorageTokenStore

名字 描述 价值
类 资源类型。 字符串
性能 BlobStorageTokenStore 资源特定属性 BlobStorageTokenStore属性

BlobStorageTokenStore属性

名字 描述 价值
sasUrlSettingName 字符串

客户注册

名字 描述 价值
类 资源类型。 字符串
性能 ClientRegistration 资源特定属性 ClientRegistrationProperties

ClientRegistrationProperties

名字 描述 价值
客户端 ID 字符串
clientSecretSettingName (客户端 Secret设置名称) 字符串

ConnectionStringDictionary属性

名字 描述 价值

ConnStringInfo

名字 描述 价值
connectionString 连接字符串 连接字符串值。 字符串
名字 连接字符串的名称。 字符串
类型 数据库的类型。 “ApiHub”
“Custom”
“DocDb”
“EventHub”
“MySql”
“NotificationHub”
“PostgreSQL”
“RedisCache”
“ServiceBus”
“SQLAzure”
“SQLServer”

ConnStringValueTypePair

名字 描述 价值
类型 数据库的类型。 “ApiHub”
“Custom”
“DocDb”
“EventHub”
“MySql”
“NotificationHub”
“PostgreSQL”
“RedisCache”
“ServiceBus”
“SQLAzure”
“SQLServer”(必需)
价值 对的值。 string (必需)

Cookie过期

名字 描述 价值
类 资源类型。 字符串
性能 CookieExpiration 资源特定属性 CookieExpirationProperties

CookieExpirationProperties

名字 描述 价值
约定 “FixedTime”
“IdentityProviderDerived”
timeToExpiration 时间 字符串

CorsSettings

名字 描述 价值
allowedOrigins 的 获取或设置应允许进行跨源的源列表
调用(例如:http://example.com:12345)。 使用“*”允许所有。
字符串[]
支持凭证 获取或设置是否允许使用凭据的 CORS 请求。 看
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials
有关详细信息。
布尔

CustomOpenIdConnectProvider

名字 描述 价值
类 资源类型。 字符串
性能 CustomOpenIdConnectProvider 资源特定属性 CustomOpenIdConnectProvider属性

CustomOpenIdConnectProvider属性

名字 描述 价值
启用 布尔
登录 OpenIdConnect登录
注册 OpenIdConnect注册

DatabaseBackupSetting 数据库备份设置

名字 描述 价值
connectionString 连接字符串 包含要备份或还原的数据库的连接字符串。 如果还原应发生在新数据库,则内部的数据库名称为新数据库。 字符串
connectionStringName 包含链接到 SiteConfig.ConnectionStrings 的连接字符串名称。
这在还原期间与覆盖连接字符串选项一起使用。
字符串
数据库类型 数据库类型(例如 SqlAzure/MySql)。 “LocalMySql”
“MySql”
“PostgreSql”
“SqlAzure”(必需)
名字 字符串

启用配置

名字 描述 价值
启用 如果启用了配置,则为 true;如果禁用,则为 false;如果未设置配置,则为 null。 布尔

实验

名字 描述 价值
rampUp规则 提升规则的列表。 RampUpRule[]

脸书

名字 描述 价值
类 资源类型。 字符串
性能 Facebook 资源特定属性 Facebook属性

Facebook属性

名字 描述 价值
启用 布尔
graphApiVersion 字符串
登录 登录范围
注册 应用注册

FileSystemApplicationLogsConfig

名字 描述 价值
水平仪 日志级别。 “Error”
“信息”
“关闭”
“Verbose”
“Warning”

FileSystemHttpLogsConfig 文件

名字 描述 价值
启用 如果启用了配置,则为 true;如果禁用,则为 false;如果未设置配置,则为 null。 布尔
保留天数 保留天数。
删除早于 X 天的文件。
0 或更低意味着没有保留。
整数 (int)
保留(以 Mb 为单位) http 日志文件可以使用的最大大小(以兆字节为单位)。
到达旧日志文件后,将被删除以为新日志文件提供空间。
值可以介于 25 和 100 之间。
int

约束:
最小值 = 25
最大值 = 100

FileSystemTokenStore 文件

名字 描述 价值
类 资源类型。 字符串
性能 FileSystemTokenStore 资源特定属性 FileSystemTokenStoreProperties

FileSystemTokenStoreProperties

名字 描述 价值
目录 字符串

转发代理

名字 描述 价值
类 资源类型。 字符串
性能 ForwardProxy 资源特定属性 ForwardProxyProperties

ForwardProxyProperties

名字 描述 价值
约定 “Custom”
“NoProxy”
“Standard”
customHostHeaderName (自定义主机标头名称) 字符串
customProtoHeaderName 字符串

GitHub

名字 描述 价值
类 资源类型。 字符串
性能 GitHub 资源特定的属性 GitHubProperties

GitHubProperties

名字 描述 价值
启用 布尔
登录 登录范围
注册 客户注册

全局验证

名字 描述 价值
类 资源类型。 字符串
性能 GlobalValidation 资源特定属性 GlobalValidationProperties

GlobalValidationProperties

名字 描述 价值
excludedPaths 字符串[]
redirectToProvider 字符串
requireAuthentication 认证 布尔
unauthenticatedClientAction “AllowAnonymous”
“RedirectToLoginPage”
“Return401”
“Return403”

谷歌

名字 描述 价值
类 资源类型。 字符串
性能 Google 资源特定属性 GoogleProperties

GoogleProperties

名字 描述 价值
启用 布尔
登录 登录范围
注册 客户注册
验证 AllowedAudiences验证

HandlerMapping

名字 描述 价值
参数 要传递给脚本处理器的命令行参数。 字符串
扩展 使用此扩展的请求将使用指定的 FastCGI 应用程序进行处理。 字符串
scriptProcessor FastCGI 应用程序的绝对路径。 字符串

HttpLogsConfig

名字 描述 价值
azureBlobStorage 将 Http 日志记录到 Azure Blob 存储配置。 AzureBlobStorageHttpLogsConfig
文件系统 将 Http 日志记录到文件系统配置。 FileSystemHttpLogsConfig 文件

HttpSettings

名字 描述 价值
类 资源类型。 字符串
性能 HttpSettings 资源特定属性 HttpSettingsProperties

HttpSettingsProperties

名字 描述 价值
转发代理 转发代理
requireHttps 的 布尔
路线 HttpSettingsRoutes

HttpSettingsRoutes

名字 描述 价值
类 资源类型。 字符串
性能 HttpSettingsRoutes 资源特定属性 HttpSettingsRoutesProperties

HttpSettingsRoutesProperties

名字 描述 价值
apiPrefix 的 字符串

身份提供程序

名字 描述 价值
类 资源类型。 字符串
性能 IdentityProviders 资源特定属性 IdentityProviders属性

IdentityProviders属性

名字 描述 价值
azureActiveDirectory AzureActiveDirectory
自定义OpenIdConnectProviders customOpenIdConnectProvider<>字典 IdentityProvidersPropertiesCustomOpenIdConnectProviders
脸书 脸书
极狐 GitHub GitHub的
谷歌 谷歌
唽 唽

IdentityProvidersPropertiesCustomOpenIdConnectProviders

名字 描述 价值

IpSecurityRestriction

名字 描述 价值
操作 允许或拒绝对此 IP 范围的访问。 字符串
描述 IP 限制规则说明。 字符串
头 IP 限制规则标头。
X-Forwarded-Host(https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples)。
匹配的逻辑为 .。
- 如果属性为 null 或空(默认值),则允许所有主机(或缺少主机)。
- 使用序号-ignore-case(不包括端口号)比较值。
- 允许子域通配符,但与根域不匹配。 例如,*.contoso.com 匹配子域 foo.contoso.com
但不是根域 contoso.com 或多级 foo.bar.contoso.com
- 允许 Unicode 主机名,但会转换为 Punycode 进行匹配。

X-Forwarded-For(https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples)。
匹配的逻辑为 .。
- 如果属性为 null 或空(默认值),则允许任何转发链(或缺少) 。
- 如果链(逗号分隔)中的任何地址(不包括端口号)与属性定义的 CIDR 匹配。

X-Azure-FDID 和 X-FD-HealthProbe。
匹配逻辑完全匹配。
IpSecurityRestrictionHeaders
IP地址 安全限制有效的 IP 地址。
它可以采用纯 ipv4 地址(所需的 SubnetMask 属性)或
CIDR 表示法,如 ipv4/mask(前导位匹配)。 对于 CIDR,
不得指定 SubnetMask 属性。
字符串
名字 IP 限制规则名称。 字符串
优先权 IP 限制规则的优先级。 整数 (int)
子网掩码 限制有效的 IP 地址范围的子网掩码。 字符串
subnetTrafficTag (内部)子网流量标记 整数 (int)
标签 定义此 IP 筛选器将用于什么。 这是为了支持对代理进行 IP 筛选。 “Default”
“ServiceTag”
“XffProxy”
vnetSubnetResourceId 虚拟网络资源 ID 字符串
vnetTrafficTag (内部)Vnet 流量标记 整数 (int)

IpSecurityRestrictionHeaders

名字 描述 价值

JwtClaimChecks

名字 描述 价值
类 资源类型。 字符串
性能 JwtClaimChecks 资源特定属性 JwtClaimChecks属性

JwtClaimChecks属性

名字 描述 价值
allowedClient应用程序 字符串[]
allowed组 字符串[]

登录

名字 描述 价值
类 资源类型。 字符串
性能 登录资源特定的属性 LoginProperties

LoginProperties

名字 描述 价值
allowedExternalRedirectUrls 字符串[]
cookie过期 Cookie过期
nonce 随机数
preserveUrlFragmentsForLogins 布尔
路线 LoginRoutes (登录路由)
tokenStore TokenStore 仓库

LoginRoutes (登录路由)

名字 描述 价值
类 资源类型。 字符串
性能 LoginRoutes 资源特定属性 LoginRoutesProperties

LoginRoutesProperties

名字 描述 价值
logout端点 字符串

登录范围

名字 描述 价值
类 资源类型。 字符串
性能 LoginScopes 资源特定属性 LoginScopesProperties

LoginScopesProperties

名字 描述 价值
范围 字符串[]

microsoft.web/sites/slots/config

名字 描述 价值
名字 对于类型 Microsoft.Web/sites/slots/config,设置为“appsettings”。对于类型 Microsoft.Web/sites/slots/config,设置为“authsettings”。对于类型 Microsoft.Web/sites/slots/config,设置为“authsettingsV2”。对于类型 Microsoft.Web/sites/slots/config,设置为“azurestorageaccounts”。对于类型 Microsoft.Web/sites/slots/config,设置为“backup”。对于类型 Microsoft.Web/sites/slots/config,设置为“connectionstrings”。对于类型 Microsoft.Web/sites/slots/config,设置为“logs”。对于类型 Microsoft.Web/sites/slots/config,设置为“metadata”。对于类型 Microsoft.Web/sites/slots/config,设置为“pushsettings”。对于类型 Microsoft.Web/sites/slots/config,设置为“web”。 “appsettings”
“authsettings”
“authsettingsV2”
“azurestorageaccounts”
“backup”
“connectionstrings”
“logs”
“metadata”
“pushsettings”
“web”(必需)

NameValuePair

名字 描述 价值
名字 配对名称。 字符串
价值 对值。 字符串

随机数

名字 描述 价值
类 资源类型。 字符串
性能 Nonce 资源特定属性 Nonce属性

Nonce属性

名字 描述 价值
nonceExpirationInterval 字符串
验证随机数 布尔

OpenIdConnectClientCredential

名字 描述 价值
类 资源类型。 字符串
性能 OpenIdConnectClientCredential 资源特定属性 OpenIdConnectClientCredentialProperties

OpenIdConnectClientCredentialProperties

名字 描述 价值
clientSecretSettingName (客户端 Secret设置名称) 字符串
方法 “ClientSecretPost”

OpenIdConnectConfig

名字 描述 价值
类 资源类型。 字符串
性能 OpenIdConnectConfig 资源特定属性 OpenIdConnectConfigProperties

OpenIdConnectConfigProperties

名字 描述 价值
authorizationEndpoint 字符串
certificationUri 认证 字符串
发行 字符串
tokenEndpoint 字符串
wellKnownOpenIdConfiguration 字符串

OpenIdConnect登录

名字 描述 价值
类 资源类型。 字符串
性能 OpenIdConnectLogin 资源特定属性 OpenIdConnectLoginProperties

OpenIdConnectLoginProperties

名字 描述 价值
nameClaimType 字符串
范围 字符串[]

OpenIdConnect注册

名字 描述 价值
类 资源类型。 字符串
性能 OpenIdConnectRegistration 资源特定属性 OpenIdConnectRegistrationProperties

OpenIdConnectRegistrationProperties

名字 描述 价值
clientCredential 的 OpenIdConnectClientCredential
客户端 ID 字符串
openIdConnect配置 OpenIdConnectConfig

PushSettings 设置

名字 描述 价值
类 资源类型。 字符串
性能 PushSettings 资源特定属性 PushSettingsProperties

PushSettingsProperties

名字 描述 价值
动态标签Json 获取或设置一个 JSON 字符串,其中包含将从推送注册终结点中的用户声明评估的动态标记列表。 字符串
isPush已启用 获取或设置一个标志,该值指示是否启用推送终结点。 bool (必需)
tagsRequiringAuth 获取或设置一个 JSON 字符串,其中包含要求在推送注册终结点中使用用户身份验证的标记列表。
标记可以包含字母数字字符和以下内容:
'_', '@', '#', '.', ':', '-'.
应在 PushRequestHandler 中执行验证。
字符串
tagWhitelistJson 获取或设置一个 JSON 字符串,其中包含允许列表中可供推送注册终结点使用的标记列表。 字符串

RampUpRule

名字 描述 价值
actionHostName (作主机名称) 如果决定将流量重定向到的槽的主机名。 例如 myapp-stage.azurewebsites.net。 字符串
更改决定回调网址 可以在 TiPCallback 站点扩展中提供自定义决策算法,可以指定 URL。 字符串
更改间隔以分钟为单位 指定重新评估 ReroutePercentage 的间隔(以分钟为单位)。 整数 (int)
changeStep 在自动增加方案中,这是从 <代码>ReroutePercentage</code> 中添加/删除的步骤,直到它到达 \n<代码>MinReroutePercentage</code> 或
<代码>MaxReroutePercentage</code>。 站点指标每 N 分钟检查一次,<代码>ChangeIntervalInMinutes</code>。\n自定义决策算法
可以在 TiPCallback 站点扩展中提供,可以在 <代码>ChangeDecisionCallbackUrl</code>中指定 URL。
整数 (int)
maxReroutePercentage 指定 ReroutePercentage 将保留的上限。 整数 (int)
minReroutePercentage 指定重新路由Percentage 将保留的下边界。 整数 (int)
名字 路由规则的名称。 建议的名称是指向将接收试验中的流量的槽。 字符串
reroutePercentage 将重定向到 <代码>ActionHostName</code>的流量的百分比。 整数 (int)

RequestsBasedTrigger 触发器

名字 描述 价值
计数 请求计数。 整数 (int)
timeInterval 时间 时间间隔。 字符串

SiteAuthSettingsProperties

名字 描述 价值
aadClaimsAuthorization 获取包含 Azure AD Acl 设置的 JSON 字符串。 字符串
additionalLoginParams 在以下情况下发送到 OpenID Connect 授权终结点的登录参数
用户登录。 每个参数必须采用“key=value”格式。
字符串[]
allowedAudiences 允许的受众值在验证颁发给的 JWT 时考虑
Azure Active Directory。 请注意,<代码>ClientID</code> 值始终被视为
允许访问群体,而不考虑此设置。
字符串[]
allowedExternalRedirectUrls 作为登录或注销应用的一部分,可重定向到的外部 URL。 请注意,将忽略 URL 的查询字符串部分。
这是 Windows 应用商店应用程序后端通常需要的高级设置。
请注意,始终允许当前域中的 URL。
字符串[]
authFilePath 文件路径 包含身份验证设置的配置文件的路径。
如果路径是相对路径,则站点的根目录将为基目录。
字符串
客户端 ID 此信赖方应用程序的客户端 ID,称为client_id。
若要使用 Azure Active Directory 启用 OpenID 连接身份验证或
其他第三方 OpenID Connect 提供程序。
有关 OpenID Connect 的详细信息:http://openid.net/specs/openid-connect-core-1_0.html
字符串
客户密钥 此信赖方应用程序的客户端密码(在 Azure Active Directory 中,也称为密钥)。
此设置是可选的。 如果未配置客户端密码,则 OpenID Connect 隐式身份验证流用于对最终用户进行身份验证。
否则,OpenID Connect 授权代码流用于对最终用户进行身份验证。
有关 OpenID Connect 的详细信息:http://openid.net/specs/openid-connect-core-1_0.html
字符串
clientSecretCertificate指纹 客户端机密的替代方法,即用于签名的证书的指纹。 此属性充当
客户端密码的替代项。 它也是可选的。
字符串
clientSecretSettingName (客户端 Secret设置名称) 包含信赖方应用程序的客户端密码的应用设置名称。 字符串
defaultProvider 配置多个提供程序时要使用的默认身份验证提供程序。
仅当配置了多个提供程序和未经身份验证的客户端时,才需要此设置
作设置为“RedirectToLoginPage”。
“AzureActiveDirectory”
“Facebook”
“Github”
“Google”
“MicrosoftAccount”
“Twitter”
启用 如果为当前应用启用了身份验证/授权功能,<代码>true</code>;否则,<代码>false</code>。 布尔
facebookAppId 用于登录的 Facebook 应用的应用 ID。
启用 Facebook 登录需要此设置。
Facebook 登录文档:https://developers.facebook.com/docs/facebook-login
字符串
facebookAppSecret 用于 Facebook 登录的 Facebook 应用的应用机密。
启用 Facebook 登录需要此设置。
Facebook 登录文档:https://developers.facebook.com/docs/facebook-login
字符串
facebookAppSecretSettingName 包含用于 Facebook 登录的应用机密的应用设置名称。 字符串
facebookOAuth范围 将作为 Facebook 登录身份验证的一部分请求的 OAuth 2.0 范围。
此设置是可选的。
Facebook 登录文档:https://developers.facebook.com/docs/facebook-login
字符串[]
gitHubClientId 用于登录的 GitHub 应用的客户端 ID。
启用 Github 登录需要此设置
字符串
gitHubClientSecret 用于 Github 登录的 GitHub 应用的客户端密码。
启用 Github 登录需要此设置。
字符串
gitHubClientSecretSettingName 包含 Github 客户端机密的应用设置名称
用于 GitHub 登录的应用。
字符串
gitHubOAuth范围 将作为 GitHub 登录身份验证的一部分请求的 OAuth 2.0 范围。
此设置是可选的
字符串[]
googleClientId Google Web 应用程序的 OpenID Connect 客户端 ID。
启用 Google 登录需要此设置。
Google Sign-In 文档:https://developers.google.com/identity/sign-in/web/
字符串
googleClientSecret 与 Google Web 应用程序关联的客户端密码。
启用 Google 登录需要此设置。
Google Sign-In 文档:https://developers.google.com/identity/sign-in/web/
字符串
googleClientSecretSettingName 包含与 关联的客户端密码的应用设置名称
Google Web 应用程序。
字符串
googleOAuth范围 将在 Google Sign-In 身份验证过程中请求的 OAuth 2.0 范围。
此设置是可选的。 如果未指定,则使用“openid”、“profile”和“email”作为默认范围。
Google Sign-In 文档:https://developers.google.com/identity/sign-in/web/
字符串[]
isAuthFrom文件 如果应从文件读取身份验证配置设置,则为“true”
否则为“false”
字符串
发行 OpenID Connect 颁发者 URI,表示颁发此应用程序的访问令牌的实体。
使用 Azure Active Directory 时,此值是目录租户的 URI,例如 https://sts.windows.net/{tenant-guid}/。
此 URI 是令牌颁发者的区分大小写的标识符。
有关 OpenID Connect 发现的详细信息:http://openid.net/specs/openid-connect-discovery-1_0.html
字符串
microsoftAccountClientId 为用于身份验证的应用创建的 OAuth 2.0 客户端 ID。
启用Microsoft帐户身份验证需要此设置。
Microsoft帐户 OAuth 文档:https://dev.onedrive.com/auth/msa_oauth.htm
字符串
microsoftAccountClientSecret 为用于身份验证的应用创建的 OAuth 2.0 客户端密码。
启用Microsoft帐户身份验证需要此设置。
Microsoft帐户 OAuth 文档:https://dev.onedrive.com/auth/msa_oauth.htm
字符串
microsoftAccountClientSecretSettingName 包含为 创建的 OAuth 2.0 客户端密码的应用设置名称
用于身份验证的应用。
字符串
microsoftAccountOAuth范围 将在Microsoft帐户身份验证过程中请求的 OAuth 2.0 范围。
此设置是可选的。 如果未指定,则使用“wl.basic”作为默认范围。
Microsoft帐户范围和权限文档:https://msdn.microsoft.com/en-us/library/dn631845.aspx
字符串[]
runtimeVersion (运行时版本) 用于当前应用的身份验证/授权功能的 RuntimeVersion。
此值中的设置可以控制身份验证/授权模块中某些功能的行为。
字符串
tokenRefreshExtension小时 会话令牌过期后的小时数,会话令牌可用于
调用令牌刷新 API。 默认值为 72 小时。
整数 (int)
tokenStore已启用 <代码>true</code> 持久存储登录流期间获取的平台特定的安全令牌;否则,<代码>false</code>。
默认值为 <代码>false</code>。
布尔
twitterConsumerKey 用于登录的 Twitter 应用程序的 OAuth 1.0a 使用者密钥。
启用 Twitter 登录需要此设置。
Twitter Sign-In 文档:https://dev.twitter.com/web/sign-in
字符串
推特消费者秘密 用于登录的 Twitter 应用程序的 OAuth 1.0a 使用者机密。
启用 Twitter 登录需要此设置。
Twitter Sign-In 文档:https://dev.twitter.com/web/sign-in
字符串
twitterConsumerSecretSettingName 包含 Twitter 的 OAuth 1.0a 使用者机密的应用设置名称
用于登录的应用程序。
字符串
unauthenticatedClientAction 未经身份验证的客户端尝试访问应用时要执行的作。 “AllowAnonymous”
“RedirectToLoginPage”
validateIssuer 的 获取一个值,该值指示颁发者是否应为有效的 HTTPS URL,并按如下所示进行验证。 布尔

SiteAuthSettingsV2属性

名字 描述 价值
globalValidation (全局验证) 全局验证
http设置 HttpSettings
identityProviders 身份提供程序
登录 登录
平台 AuthPlatform 认证

站点配置

名字 描述 价值
acrUseManagedIdentityCreds 将托管标识 Creds 用于 ACR 拉取的标志 布尔
acrUserManagedIdentityID 如果使用用户托管标识,则用户托管标识 ClientId 字符串
永远在线 如果启用了 Always On,<代码>true</code>;否则,<代码>false</code>。 布尔
api定义 有关应用的正式 API 定义的信息。 ApiDefinitionInfo
apiManagementConfig 链接到应用的 Azure API 管理设置。 ApiManagementConfig 接口
app命令行 要启动的应用命令行。 字符串
应用设置 应用程序设置。 NameValuePair[]
autoHealEnabled 已启用 如果启用了自动愈合,则 <代码>true</code>;否则,<代码>false</code>。 布尔
autoHealRules 自动修复规则 自动治愈规则。 AutoHealRules 自动修复规则
autoSwapSlotName (自动交换槽名称) 自动交换槽名称。 字符串
connectionStrings 连接字符串 连接字符串。 ConnStringInfo[]
CORS(跨域资源共享) 跨域资源共享 (CORS) 设置。 CorsSettings
defaultDocuments 文档 默认文档。 字符串[]
detailedErrorLogging已启用 如果启用了详细的错误日志记录,<代码>true</code>;否则,<代码>false</code>。 布尔
documentRoot 文档根目录。 字符串
实验 这适用于多态类型。 试验
ftps状态 FTP/FTPS 服务的状态 “AllAllowed”
“Disabled”
“FtpsOnly”
handlerMappings 处理程序映射。 HandlerMapping[]
healthCheckPath (健康检查路径) 运行状况检查路径 字符串
http20已启用 Http20Enabled:配置网站以允许客户端通过 http2.0 进行连接 布尔
httpLogging已启用 如果启用 HTTP 日志记录,则 <代码>true</code>;否则,<代码>false</code>。 布尔
ipSecurity限制 主要 IP 安全限制。 IpSecurityRestriction[]
java容器 Java 容器。 字符串
javaContainerVersion Java 容器版本。 字符串
java版本 Java 版本。 字符串
限制 网站限制。 站点限制
linuxFx版本 Linux 应用框架和版本 字符串
负载均衡 站点负载均衡。 “LeastRequests”
“LeastResponseTime”
“RequestHash”
“WeightedRoundRobin”
“WeightedTotalTraffic”
localMySql已启用 <代码>true</code> 启用本地 MySQL;否则,<代码>false</code>。 布尔
logsDirectorySizeLimit HTTP 日志目录大小限制。 整数 (int)
managedPipelineMode 托管管道模式。 “经典”
“Integrated”
managedServiceIdentityId 托管服务标识 ID 整数 (int)
minTlsVersion (最小版本 MinTlsVersion:配置 SSL 请求所需的最低 TLS 版本 '1.0'
'1.1'
'1.2'
netFrameworkVersion .NET Framework 版本。 字符串
nodeVersion Node.js的版本。 字符串
工人数 辅助角色数。 整数 (int)
php版本 PHP 的版本。 字符串
powerShellVersion PowerShell 的版本。 字符串
preWarmedInstanceCount 预瓦数实例数。
此设置仅适用于消耗计划和弹性计划
int

约束:
最小值 = 0
最大值 = 10
publishing用户名 发布用户名。 字符串
推送 推送终结点设置。 PushSettings 设置
python版本 Python 版本。 字符串
remoteDebugging已启用 如果启用了远程调试,<代码>true</code>;否则,<代码>false</code>。 布尔
remoteDebuggingVersion (远程调试版本) 远程调试版本。 字符串
requestTracing已启用 如果启用了请求跟踪,<代码>true</code>;否则,<代码>false</code>。 布尔
请求TracingExpirationTime 请求跟踪过期时间。 字符串
scmIpSecurity限制 scm 的 IP 安全限制。 IpSecurityRestriction[]
scmIpSecurityRestrictionsUseMain scm 使用 main 的 IP 安全限制。 布尔
scmMinTlsVersion ScmMinTlsVersion:配置 SCM 站点 SSL 请求所需的最低 TLS 版本 '1.0'
'1.1'
'1.2'
scm类型 SCM 类型。 “BitbucketGit”
“BitbucketHg”
“CodePlexGit”
“CodePlexHg”
“Dropbox”
“ExternalGit”
“ExternalHg”
“GitHub”
“LocalGit”
“None”
“OneDrive”
“Tfs”
“VSO”
“VSTSRM”
tracing选项 跟踪选项。 字符串
use32BitWorker进程 <代码>true</code> 使用 32 位工作进程;否则,<代码>false</code>。 布尔
虚拟应用程序 虚拟应用程序。 VirtualApplication[]
vnet名称 虚拟网络名称。 字符串
vnetPrivatePortsCount 分配给此应用的专用端口数。 这些将在运行时动态分配。 整数 (int)
vnetRouteAllEnabled 已启用“全部虚拟网络路由”。 这会导致所有出站流量都应用了虚拟网络安全组和用户定义的路由。 布尔
webSockets已启用 如果启用了 WebSocket,则 <代码>true</code>;否则,<代码>false</code>。 布尔
windowsFx版本 Xenon App Framework 和版本 字符串
xManagedServiceIdentityId 显式托管服务标识 ID 整数 (int)

站点限制

名字 描述 价值
最大磁盘大小(以 Mb 为单位) 允许的最大磁盘大小使用量(以 MB 为单位)。 整数 (int)
最大内存 允许的最大内存使用量(以 MB 为单位)。 整数 (int)
maxPercentageCpu 允许的最大 CPU 使用率百分比。 整数 (int)

SiteLogsConfigProperties

名字 描述 价值
应用程序日志 应用程序日志配置。 应用程序日志配置
detailedErrorMessages 详细的错误消息配置。 启用配置
failedRequestsTracing 请求 失败的请求跟踪配置。 启用配置
http日志 HTTP 日志配置。 HttpLogsConfig

SlowRequestsBasedTrigger 触发器

名字 描述 价值
计数 请求计数。 整数 (int)
timeInterval 时间 时间间隔。 字符串
时间 花费的时间。 字符串

StatusCodesBased触发器

名字 描述 价值
计数 请求计数。 整数 (int)
状态 HTTP 状态代码。 整数 (int)
子状态 请求子状态。 整数 (int)
timeInterval 时间 时间间隔。 字符串
win32状态 Win32 错误代码。 整数 (int)

StringDictionaryProperties

名字 描述 价值

StringDictionaryProperties

名字 描述 价值

TokenStore 仓库

名字 描述 价值
类 资源类型。 字符串
性能 TokenStore 资源特定属性 TokenStore属性

TokenStore属性

名字 描述 价值
azureBlobStorage BlobStorageTokenStore
启用 布尔
文件系统 FileSystemTokenStore 文件
tokenRefreshExtension小时 整数 (int)

唽

名字 描述 价值
类 资源类型。 字符串
性能 Twitter 资源特定的属性 Twitter属性

Twitter属性

名字 描述 价值
启用 布尔
注册 推特注册

推特注册

名字 描述 价值
类 资源类型。 字符串
性能 TwitterRegistration 资源特定属性 TwitterRegistrationProperties

TwitterRegistrationProperties

名字 描述 价值
consumerKey 字符串
consumerSecretSettingName 字符串

虚拟应用程序

名字 描述 价值
物理路径 物理路径。 字符串
preload已启用 如果启用了预加载,<代码>true</code>;否则,<代码>false</code>。 布尔
虚拟目录 虚拟应用程序的虚拟目录。 VirtualDirectory []
虚拟路径 虚拟路径。 字符串

虚拟目录

名字 描述 价值
物理路径 物理路径。 字符串
虚拟路径 虚拟应用程序的路径。 字符串

ARM 模板资源定义

可以使用目标作部署站点/槽/配置资源类型:

用法示例

资源格式

若要创建 Microsoft.Web/sites/slots/config 资源,请将以下 JSON 添加到模板。

{
  "name": "string"
  // For remaining properties, see microsoft.web/sites/slots/config objects
}

microsoft.web/sites/slots/config 对象

设置 名称 属性以指定对象的类型。

对于 appsettings,请使用:

{
  "kind": "string",
  "name": "appsettings",
  "properties": {
    "{customized property}": "string"
  }
}

对于 身份验证,请使用:

{
  "kind": "string",
  "name": "authsettings",
  "properties": {
    "aadClaimsAuthorization": "string",
    "additionalLoginParams": [ "string" ],
    "allowedAudiences": [ "string" ],
    "allowedExternalRedirectUrls": [ "string" ],
    "authFilePath": "string",
    "clientId": "string",
    "clientSecret": "string",
    "clientSecretCertificateThumbprint": "string",
    "clientSecretSettingName": "string",
    "defaultProvider": "string",
    "enabled": "bool",
    "facebookAppId": "string",
    "facebookAppSecret": "string",
    "facebookAppSecretSettingName": "string",
    "facebookOAuthScopes": [ "string" ],
    "gitHubClientId": "string",
    "gitHubClientSecret": "string",
    "gitHubClientSecretSettingName": "string",
    "gitHubOAuthScopes": [ "string" ],
    "googleClientId": "string",
    "googleClientSecret": "string",
    "googleClientSecretSettingName": "string",
    "googleOAuthScopes": [ "string" ],
    "isAuthFromFile": "string",
    "issuer": "string",
    "microsoftAccountClientId": "string",
    "microsoftAccountClientSecret": "string",
    "microsoftAccountClientSecretSettingName": "string",
    "microsoftAccountOAuthScopes": [ "string" ],
    "runtimeVersion": "string",
    "tokenRefreshExtensionHours": "int",
    "tokenStoreEnabled": "bool",
    "twitterConsumerKey": "string",
    "twitterConsumerSecret": "string",
    "twitterConsumerSecretSettingName": "string",
    "unauthenticatedClientAction": "string",
    "validateIssuer": "bool"
  }
}

对于 authsettingsV2,请使用:

{
  "kind": "string",
  "name": "authsettingsV2",
  "properties": {
    "globalValidation": {
      "kind": "string",
      "properties": {
        "excludedPaths": [ "string" ],
        "redirectToProvider": "string",
        "requireAuthentication": "bool",
        "unauthenticatedClientAction": "string"
      }
    },
    "httpSettings": {
      "kind": "string",
      "properties": {
        "forwardProxy": {
          "kind": "string",
          "properties": {
            "convention": "string",
            "customHostHeaderName": "string",
            "customProtoHeaderName": "string"
          }
        },
        "requireHttps": "bool",
        "routes": {
          "kind": "string",
          "properties": {
            "apiPrefix": "string"
          }
        }
      }
    },
    "identityProviders": {
      "kind": "string",
      "properties": {
        "azureActiveDirectory": {
          "kind": "string",
          "properties": {
            "enabled": "bool",
            "isAutoProvisioned": "bool",
            "login": {
              "kind": "string",
              "properties": {
                "disableWWWAuthenticate": "bool",
                "loginParameters": [ "string" ]
              }
            },
            "registration": {
              "kind": "string",
              "properties": {
                "clientId": "string",
                "clientSecretCertificateThumbprint": "string",
                "clientSecretSettingName": "string",
                "openIdIssuer": "string"
              }
            },
            "validation": {
              "kind": "string",
              "properties": {
                "allowedAudiences": [ "string" ],
                "jwtClaimChecks": {
                  "kind": "string",
                  "properties": {
                    "allowedClientApplications": [ "string" ],
                    "allowedGroups": [ "string" ]
                  }
                }
              }
            }
          }
        },
        "customOpenIdConnectProviders": {
          "{customized property}": {
            "kind": "string",
            "properties": {
              "enabled": "bool",
              "login": {
                "kind": "string",
                "properties": {
                  "nameClaimType": "string",
                  "scopes": [ "string" ]
                }
              },
              "registration": {
                "kind": "string",
                "properties": {
                  "clientCredential": {
                    "kind": "string",
                    "properties": {
                      "clientSecretSettingName": "string",
                      "method": "ClientSecretPost"
                    }
                  },
                  "clientId": "string",
                  "openIdConnectConfiguration": {
                    "kind": "string",
                    "properties": {
                      "authorizationEndpoint": "string",
                      "certificationUri": "string",
                      "issuer": "string",
                      "tokenEndpoint": "string",
                      "wellKnownOpenIdConfiguration": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "facebook": {
          "kind": "string",
          "properties": {
            "enabled": "bool",
            "graphApiVersion": "string",
            "login": {
              "kind": "string",
              "properties": {
                "scopes": [ "string" ]
              }
            },
            "registration": {
              "kind": "string",
              "properties": {
                "appId": "string",
                "appSecretSettingName": "string"
              }
            }
          }
        },
        "gitHub": {
          "kind": "string",
          "properties": {
            "enabled": "bool",
            "login": {
              "kind": "string",
              "properties": {
                "scopes": [ "string" ]
              }
            },
            "registration": {
              "kind": "string",
              "properties": {
                "clientId": "string",
                "clientSecretSettingName": "string"
              }
            }
          }
        },
        "google": {
          "kind": "string",
          "properties": {
            "enabled": "bool",
            "login": {
              "kind": "string",
              "properties": {
                "scopes": [ "string" ]
              }
            },
            "registration": {
              "kind": "string",
              "properties": {
                "clientId": "string",
                "clientSecretSettingName": "string"
              }
            },
            "validation": {
              "kind": "string",
              "properties": {
                "allowedAudiences": [ "string" ]
              }
            }
          }
        },
        "twitter": {
          "kind": "string",
          "properties": {
            "enabled": "bool",
            "registration": {
              "kind": "string",
              "properties": {
                "consumerKey": "string",
                "consumerSecretSettingName": "string"
              }
            }
          }
        }
      }
    },
    "login": {
      "kind": "string",
      "properties": {
        "allowedExternalRedirectUrls": [ "string" ],
        "cookieExpiration": {
          "kind": "string",
          "properties": {
            "convention": "string",
            "timeToExpiration": "string"
          }
        },
        "nonce": {
          "kind": "string",
          "properties": {
            "nonceExpirationInterval": "string",
            "validateNonce": "bool"
          }
        },
        "preserveUrlFragmentsForLogins": "bool",
        "routes": {
          "kind": "string",
          "properties": {
            "logoutEndpoint": "string"
          }
        },
        "tokenStore": {
          "kind": "string",
          "properties": {
            "azureBlobStorage": {
              "kind": "string",
              "properties": {
                "sasUrlSettingName": "string"
              }
            },
            "enabled": "bool",
            "fileSystem": {
              "kind": "string",
              "properties": {
                "directory": "string"
              }
            },
            "tokenRefreshExtensionHours": "int"
          }
        }
      }
    },
    "platform": {
      "kind": "string",
      "properties": {
        "configFilePath": "string",
        "enabled": "bool",
        "runtimeVersion": "string"
      }
    }
  }
}

若要 azurestorageaccounts,请使用:

{
  "kind": "string",
  "name": "azurestorageaccounts",
  "properties": {
    "{customized property}": {
      "accessKey": "string",
      "accountName": "string",
      "mountPath": "string",
      "shareName": "string",
      "type": "string"
    }
  }
}

对于 备份,请使用:

{
  "kind": "string",
  "name": "backup",
  "properties": {
    "backupName": "string",
    "backupSchedule": {
      "frequencyInterval": "int",
      "frequencyUnit": "string",
      "keepAtLeastOneBackup": "bool",
      "retentionPeriodInDays": "int",
      "startTime": "string"
    },
    "databases": [
      {
        "connectionString": "string",
        "connectionStringName": "string",
        "databaseType": "string",
        "name": "string"
      }
    ],
    "enabled": "bool",
    "storageAccountUrl": "string"
  }
}

对于 连接字符串,请使用:

{
  "kind": "string",
  "name": "connectionstrings",
  "properties": {
    "{customized property}": {
      "type": "string",
      "value": "string"
    }
  }
}

对于 日志,请使用:

{
  "kind": "string",
  "name": "logs",
  "properties": {
    "applicationLogs": {
      "azureBlobStorage": {
        "level": "string",
        "retentionInDays": "int",
        "sasUrl": "string"
      },
      "azureTableStorage": {
        "level": "string",
        "sasUrl": "string"
      },
      "fileSystem": {
        "level": "string"
      }
    },
    "detailedErrorMessages": {
      "enabled": "bool"
    },
    "failedRequestsTracing": {
      "enabled": "bool"
    },
    "httpLogs": {
      "azureBlobStorage": {
        "enabled": "bool",
        "retentionInDays": "int",
        "sasUrl": "string"
      },
      "fileSystem": {
        "enabled": "bool",
        "retentionInDays": "int",
        "retentionInMb": "int"
      }
    }
  }
}

对于 元数据,请使用:

{
  "kind": "string",
  "name": "metadata",
  "properties": {
    "{customized property}": "string"
  }
}

对于 推送设置,请使用:

{
  "kind": "string",
  "name": "pushsettings",
  "properties": {
    "dynamicTagsJson": "string",
    "isPushEnabled": "bool",
    "tagsRequiringAuth": "string",
    "tagWhitelistJson": "string"
  }
}

对于 Web,请使用:

{
  "kind": "string",
  "name": "web",
  "properties": {
    "acrUseManagedIdentityCreds": "bool",
    "acrUserManagedIdentityID": "string",
    "alwaysOn": "bool",
    "apiDefinition": {
      "url": "string"
    },
    "apiManagementConfig": {
      "id": "string"
    },
    "appCommandLine": "string",
    "appSettings": [
      {
        "name": "string",
        "value": "string"
      }
    ],
    "autoHealEnabled": "bool",
    "autoHealRules": {
      "actions": {
        "actionType": "string",
        "customAction": {
          "exe": "string",
          "parameters": "string"
        },
        "minProcessExecutionTime": "string"
      },
      "triggers": {
        "privateBytesInKB": "int",
        "requests": {
          "count": "int",
          "timeInterval": "string"
        },
        "slowRequests": {
          "count": "int",
          "timeInterval": "string",
          "timeTaken": "string"
        },
        "statusCodes": [
          {
            "count": "int",
            "status": "int",
            "subStatus": "int",
            "timeInterval": "string",
            "win32Status": "int"
          }
        ]
      }
    },
    "autoSwapSlotName": "string",
    "connectionStrings": [
      {
        "connectionString": "string",
        "name": "string",
        "type": "string"
      }
    ],
    "cors": {
      "allowedOrigins": [ "string" ],
      "supportCredentials": "bool"
    },
    "defaultDocuments": [ "string" ],
    "detailedErrorLoggingEnabled": "bool",
    "documentRoot": "string",
    "experiments": {
      "rampUpRules": [
        {
          "actionHostName": "string",
          "changeDecisionCallbackUrl": "string",
          "changeIntervalInMinutes": "int",
          "changeStep": "int",
          "maxReroutePercentage": "int",
          "minReroutePercentage": "int",
          "name": "string",
          "reroutePercentage": "int"
        }
      ]
    },
    "ftpsState": "string",
    "handlerMappings": [
      {
        "arguments": "string",
        "extension": "string",
        "scriptProcessor": "string"
      }
    ],
    "healthCheckPath": "string",
    "http20Enabled": "bool",
    "httpLoggingEnabled": "bool",
    "ipSecurityRestrictions": [
      {
        "action": "string",
        "description": "string",
        "headers": {
          "{customized property}": [ "string" ]
        },
        "ipAddress": "string",
        "name": "string",
        "priority": "int",
        "subnetMask": "string",
        "subnetTrafficTag": "int",
        "tag": "string",
        "vnetSubnetResourceId": "string",
        "vnetTrafficTag": "int"
      }
    ],
    "javaContainer": "string",
    "javaContainerVersion": "string",
    "javaVersion": "string",
    "limits": {
      "maxDiskSizeInMb": "int",
      "maxMemoryInMb": "int",
      "maxPercentageCpu": "int"
    },
    "linuxFxVersion": "string",
    "loadBalancing": "string",
    "localMySqlEnabled": "bool",
    "logsDirectorySizeLimit": "int",
    "managedPipelineMode": "string",
    "managedServiceIdentityId": "int",
    "minTlsVersion": "string",
    "netFrameworkVersion": "string",
    "nodeVersion": "string",
    "numberOfWorkers": "int",
    "phpVersion": "string",
    "powerShellVersion": "string",
    "preWarmedInstanceCount": "int",
    "publishingUsername": "string",
    "push": {
      "kind": "string",
      "properties": {
        "dynamicTagsJson": "string",
        "isPushEnabled": "bool",
        "tagsRequiringAuth": "string",
        "tagWhitelistJson": "string"
      }
    },
    "pythonVersion": "string",
    "remoteDebuggingEnabled": "bool",
    "remoteDebuggingVersion": "string",
    "requestTracingEnabled": "bool",
    "requestTracingExpirationTime": "string",
    "scmIpSecurityRestrictions": [
      {
        "action": "string",
        "description": "string",
        "headers": {
          "{customized property}": [ "string" ]
        },
        "ipAddress": "string",
        "name": "string",
        "priority": "int",
        "subnetMask": "string",
        "subnetTrafficTag": "int",
        "tag": "string",
        "vnetSubnetResourceId": "string",
        "vnetTrafficTag": "int"
      }
    ],
    "scmIpSecurityRestrictionsUseMain": "bool",
    "scmMinTlsVersion": "string",
    "scmType": "string",
    "tracingOptions": "string",
    "use32BitWorkerProcess": "bool",
    "virtualApplications": [
      {
        "physicalPath": "string",
        "preloadEnabled": "bool",
        "virtualDirectories": [
          {
            "physicalPath": "string",
            "virtualPath": "string"
          }
        ],
        "virtualPath": "string"
      }
    ],
    "vnetName": "string",
    "vnetPrivatePortsCount": "int",
    "vnetRouteAllEnabled": "bool",
    "webSocketsEnabled": "bool",
    "windowsFxVersion": "string",
    "xManagedServiceIdentityId": "int"
  }
}

属性值

Microsoft.Web/sites/slots/config

名字 描述 价值
apiVersion API 版本 '2020-10-01'
类 资源类型。 字符串
名字 资源名称 “appsettings”(必需)
性能 设置。 StringDictionaryProperties
类型 资源类型 “Microsoft.Web/sites/slots/config”

Microsoft.Web/sites/slots/config

名字 描述 价值
apiVersion API 版本 '2020-10-01'
类 资源类型。 字符串
名字 资源名称 “authsettings”(必需)
性能 SiteAuthSettings 资源特定属性 SiteAuthSettingsProperties
类型 资源类型 “Microsoft.Web/sites/slots/config”

Microsoft.Web/sites/slots/config

名字 描述 价值
apiVersion API 版本 '2020-10-01'
类 资源类型。 字符串
名字 资源名称 “authsettingsV2”(必需)
性能 SiteAuthSettingsV2 资源特定属性 SiteAuthSettingsV2属性
类型 资源类型 “Microsoft.Web/sites/slots/config”

Microsoft.Web/sites/slots/config

名字 描述 价值
apiVersion API 版本 '2020-10-01'
类 资源类型。 字符串
名字 资源名称 “azurestorageaccounts”(必需)
性能 Azure 存储帐户。 AzureStoragePropertyDictionaryResourceProperties
类型 资源类型 “Microsoft.Web/sites/slots/config”

Microsoft.Web/sites/slots/config

名字 描述 价值
apiVersion API 版本 '2020-10-01'
类 资源类型。 字符串
名字 资源名称 “backup”(必需)
性能 BackupRequest 资源特定属性 BackupRequestProperties
类型 资源类型 “Microsoft.Web/sites/slots/config”

Microsoft.Web/sites/slots/config

名字 描述 价值
apiVersion API 版本 '2020-10-01'
类 资源类型。 字符串
名字 资源名称 “connectionstrings”(必需)
性能 连接字符串。 ConnectionStringDictionary属性
类型 资源类型 “Microsoft.Web/sites/slots/config”

Microsoft.Web/sites/slots/config

名字 描述 价值
apiVersion API 版本 '2020-10-01'
类 资源类型。 字符串
名字 资源名称 “logs”(必需)
性能 SiteLogsConfig 资源特定属性 SiteLogsConfigProperties
类型 资源类型 “Microsoft.Web/sites/slots/config”

Microsoft.Web/sites/slots/config

名字 描述 价值
apiVersion API 版本 '2020-10-01'
类 资源类型。 字符串
名字 资源名称 “metadata”(必需)
性能 设置。 StringDictionaryProperties
类型 资源类型 “Microsoft.Web/sites/slots/config”

Microsoft.Web/sites/slots/config

名字 描述 价值
apiVersion API 版本 '2020-10-01'
类 资源类型。 字符串
名字 资源名称 “pushsettings”(必需)
性能 PushSettings 资源特定属性 PushSettingsProperties
类型 资源类型 “Microsoft.Web/sites/slots/config”

Microsoft.Web/sites/slots/config

名字 描述 价值
apiVersion API 版本 '2020-10-01'
类 资源类型。 字符串
名字 资源名称 “web”(必需)
性能 核心资源属性 站点配置
类型 资源类型 “Microsoft.Web/sites/slots/config”

AllowedAudiences验证

名字 描述 价值
类 资源类型。 字符串
性能 AllowedAudiencesValidation 资源特定属性 AllowedAudiencesValidationProperties

AllowedAudiencesValidationProperties

名字 描述 价值
allowedAudiences 字符串[]

ApiDefinitionInfo

名字 描述 价值
网址 API 定义的 URL。 字符串

ApiManagementConfig 接口

名字 描述 价值
身份证 APIM-Api 标识符。 字符串

应用程序日志配置

名字 描述 价值
azureBlobStorage 将应用程序日志记录到 Blob 存储配置。 AzureBlobStorageApplicationLogsConfig
azureTableStorage 将应用程序日志记录到 Azure 表存储配置。 AzureTableStorageApplicationLogsConfig
文件系统 应用程序日志到文件系统配置。 FileSystemApplicationLogsConfig

应用注册

名字 描述 价值
类 资源类型。 字符串
性能 特定于 AppRegistration 资源的属性 AppRegistrationProperties

AppRegistrationProperties

名字 描述 价值
应用程序ID 字符串
appSecretSettingName 字符串

AuthPlatform 认证

名字 描述 价值
类 资源类型。 字符串
性能 特定于 AuthPlatform 资源的属性 AuthPlatform属性

AuthPlatform属性

名字 描述 价值
configFilePath 文件 字符串
启用 布尔
runtimeVersion (运行时版本) 字符串

AutoHealActions 自动修复作

名字 描述 价值
动作类型 要执行的预定义作。 “CustomAction”
“LogEvent”
“回收”
自定义作 要执行的自定义作。 AutohealCustomAction 自动修复
minProcessExecutionTime (最小进程执行时间) 必须执行进程的最短时间
执行作之前
字符串

AutohealCustomAction 自动修复

名字 描述 价值
exe 要运行的可执行文件。 字符串
参数 可执行文件的参数。 字符串

AutoHealRules 自动修复规则

名字 描述 价值
行动 触发规则时要执行的作。 AutoHealActions 自动修复作
触发器 描述何时执行自动修复作的条件。 AutoHealTriggers 自动修复触发器

AutoHealTriggers 自动修复触发器

名字 描述 价值
privateBytesInKB 基于专用字节的规则。 整数 (int)
请求 基于请求总数的规则。 RequestsBasedTrigger 触发器
slowRequests 请求 基于请求执行时间的规则。 SlowRequestsBasedTrigger 触发器
statusCodes 基于状态代码的规则。 StatusCodesBasedTrigger[]

AzureActiveDirectory

名字 描述 价值
类 资源类型。 字符串
性能 特定于 AzureActiveDirectory 资源的属性 AzureActiveDirectory属性

AzureActiveDirectory登录

名字 描述 价值
类 资源类型。 字符串
性能 AzureActiveDirectoryLogin 资源特定属性 AzureActiveDirectoryLoginProperties

AzureActiveDirectoryLoginProperties

名字 描述 价值
disableWWWAuthenticate 布尔
loginParameters (登录参数) 字符串[]

AzureActiveDirectory属性

名字 描述 价值
启用 布尔
isAutoProvisioned 布尔
登录 AzureActiveDirectory登录
注册 AzureActiveDirectory注册
验证 AzureActiveDirectory验证

AzureActiveDirectory注册

名字 描述 价值
类 资源类型。 字符串
性能 AzureActiveDirectoryRegistration 资源特定属性 AzureActiveDirectoryRegistrationProperties

AzureActiveDirectoryRegistrationProperties

名字 描述 价值
客户端 ID 字符串
clientSecretCertificate指纹 字符串
clientSecretSettingName (客户端 Secret设置名称) 字符串
openIdIssuer 的 字符串

AzureActiveDirectory验证

名字 描述 价值
类 资源类型。 字符串
性能 AzureActiveDirectoryValidation 资源特定属性 AzureActiveDirectoryValidationProperties

AzureActiveDirectoryValidationProperties

名字 描述 价值
allowedAudiences 字符串[]
jwtClaimChecks JwtClaimChecks

AzureBlobStorageApplicationLogsConfig

名字 描述 价值
水平仪 日志级别。 “Error”
“信息”
“关闭”
“Verbose”
“Warning”
保留天数 保留天数。
删除早于 X 天的 Blob。
0 或更低意味着没有保留。
整数 (int)
sasUrl 的 具有读取/写入/列出/删除权限的 Azure Blob 容器的 SAS URL。 字符串

AzureBlobStorageHttpLogsConfig

名字 描述 价值
启用 如果启用了配置,则为 true;如果禁用,则为 false;如果未设置配置,则为 null。 布尔
保留天数 保留天数。
删除早于 X 天的 Blob。
0 或更低意味着没有保留。
整数 (int)
sasUrl 的 具有读取/写入/列出/删除权限的 Azure Blob 容器的 SAS URL。 字符串

AzureStorageInfoValue

名字 描述 价值
访问密钥 存储帐户的访问密钥。 字符串
账户名称 存储帐户的名称。 字符串
mountPath 在站点的运行时环境中装载存储的路径。 字符串
shareName (共享名称) 文件共享的名称(容器名称,Blob 存储)。 字符串
类型 存储的类型。 “AzureBlob”
“AzureFiles”

AzureStoragePropertyDictionaryResourceProperties

名字 描述 价值

AzureTableStorageApplicationLogsConfig

名字 描述 价值
水平仪 日志级别。 “Error”
“信息”
“关闭”
“Verbose”
“Warning”
sasUrl 的 包含添加/查询/删除权限的 Azure 表的 SAS URL。 string (必需)

BackupRequestProperties

名字 描述 价值
backupName (备份名称) 备份的名称。 字符串
backupSchedule 定期执行备份时计划备份。 备份计划
数据库 备份中包含的数据库。 DatabaseBackupSetting[]
启用 如果启用备份计划(在这种情况下必须包含),则为 true;如果应禁用备份计划,则为 false。 布尔
storageAccountUrl 的 容器的 SAS URL。 string (必需)

备份计划

名字 描述 价值
频率间隔 应执行备份的频率(例如,对于每周备份,应将其设置为 7,FrequencyUnit 应设置为 Day) int (必需)
频率单位 执行备份的频率的时间单位(例如,对于每周备份,应将其设置为 Day,FrequencyInterval 应设置为 7) “Day”
“Hour”(必需)
keepAtLeastOneBackup 如此 如果保留策略应始终在存储帐户中保留至少一个备份,而不考虑备份的年龄:否则为 false。 bool (必需)
retentionPeriodInDays (保留期以天为单位) 删除多少天备份后。 int (必需)
开始时间 计划何时应开始工作。 字符串

BlobStorageTokenStore

名字 描述 价值
类 资源类型。 字符串
性能 BlobStorageTokenStore 资源特定属性 BlobStorageTokenStore属性

BlobStorageTokenStore属性

名字 描述 价值
sasUrlSettingName 字符串

客户注册

名字 描述 价值
类 资源类型。 字符串
性能 ClientRegistration 资源特定属性 ClientRegistrationProperties

ClientRegistrationProperties

名字 描述 价值
客户端 ID 字符串
clientSecretSettingName (客户端 Secret设置名称) 字符串

ConnectionStringDictionary属性

名字 描述 价值

ConnStringInfo

名字 描述 价值
connectionString 连接字符串 连接字符串值。 字符串
名字 连接字符串的名称。 字符串
类型 数据库的类型。 “ApiHub”
“Custom”
“DocDb”
“EventHub”
“MySql”
“NotificationHub”
“PostgreSQL”
“RedisCache”
“ServiceBus”
“SQLAzure”
“SQLServer”

ConnStringValueTypePair

名字 描述 价值
类型 数据库的类型。 “ApiHub”
“Custom”
“DocDb”
“EventHub”
“MySql”
“NotificationHub”
“PostgreSQL”
“RedisCache”
“ServiceBus”
“SQLAzure”
“SQLServer”(必需)
价值 对的值。 string (必需)

Cookie过期

名字 描述 价值
类 资源类型。 字符串
性能 CookieExpiration 资源特定属性 CookieExpirationProperties

CookieExpirationProperties

名字 描述 价值
约定 “FixedTime”
“IdentityProviderDerived”
timeToExpiration 时间 字符串

CorsSettings

名字 描述 价值
allowedOrigins 的 获取或设置应允许进行跨源的源列表
调用(例如:http://example.com:12345)。 使用“*”允许所有。
字符串[]
支持凭证 获取或设置是否允许使用凭据的 CORS 请求。 看
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials
有关详细信息。
布尔

CustomOpenIdConnectProvider

名字 描述 价值
类 资源类型。 字符串
性能 CustomOpenIdConnectProvider 资源特定属性 CustomOpenIdConnectProvider属性

CustomOpenIdConnectProvider属性

名字 描述 价值
启用 布尔
登录 OpenIdConnect登录
注册 OpenIdConnect注册

DatabaseBackupSetting 数据库备份设置

名字 描述 价值
connectionString 连接字符串 包含要备份或还原的数据库的连接字符串。 如果还原应发生在新数据库,则内部的数据库名称为新数据库。 字符串
connectionStringName 包含链接到 SiteConfig.ConnectionStrings 的连接字符串名称。
这在还原期间与覆盖连接字符串选项一起使用。
字符串
数据库类型 数据库类型(例如 SqlAzure/MySql)。 “LocalMySql”
“MySql”
“PostgreSql”
“SqlAzure”(必需)
名字 字符串

启用配置

名字 描述 价值
启用 如果启用了配置,则为 true;如果禁用,则为 false;如果未设置配置,则为 null。 布尔

实验

名字 描述 价值
rampUp规则 提升规则的列表。 RampUpRule[]

脸书

名字 描述 价值
类 资源类型。 字符串
性能 Facebook 资源特定属性 Facebook属性

Facebook属性

名字 描述 价值
启用 布尔
graphApiVersion 字符串
登录 登录范围
注册 应用注册

FileSystemApplicationLogsConfig

名字 描述 价值
水平仪 日志级别。 “Error”
“信息”
“关闭”
“Verbose”
“Warning”

FileSystemHttpLogsConfig 文件

名字 描述 价值
启用 如果启用了配置,则为 true;如果禁用,则为 false;如果未设置配置,则为 null。 布尔
保留天数 保留天数。
删除早于 X 天的文件。
0 或更低意味着没有保留。
整数 (int)
保留(以 Mb 为单位) http 日志文件可以使用的最大大小(以兆字节为单位)。
到达旧日志文件后,将被删除以为新日志文件提供空间。
值可以介于 25 和 100 之间。
int

约束:
最小值 = 25
最大值 = 100

FileSystemTokenStore 文件

名字 描述 价值
类 资源类型。 字符串
性能 FileSystemTokenStore 资源特定属性 FileSystemTokenStoreProperties

FileSystemTokenStoreProperties

名字 描述 价值
目录 字符串

转发代理

名字 描述 价值
类 资源类型。 字符串
性能 ForwardProxy 资源特定属性 ForwardProxyProperties

ForwardProxyProperties

名字 描述 价值
约定 “Custom”
“NoProxy”
“Standard”
customHostHeaderName (自定义主机标头名称) 字符串
customProtoHeaderName 字符串

GitHub

名字 描述 价值
类 资源类型。 字符串
性能 GitHub 资源特定的属性 GitHubProperties

GitHubProperties

名字 描述 价值
启用 布尔
登录 登录范围
注册 客户注册

全局验证

名字 描述 价值
类 资源类型。 字符串
性能 GlobalValidation 资源特定属性 GlobalValidationProperties

GlobalValidationProperties

名字 描述 价值
excludedPaths 字符串[]
redirectToProvider 字符串
requireAuthentication 认证 布尔
unauthenticatedClientAction “AllowAnonymous”
“RedirectToLoginPage”
“Return401”
“Return403”

谷歌

名字 描述 价值
类 资源类型。 字符串
性能 Google 资源特定属性 GoogleProperties

GoogleProperties

名字 描述 价值
启用 布尔
登录 登录范围
注册 客户注册
验证 AllowedAudiences验证

HandlerMapping

名字 描述 价值
参数 要传递给脚本处理器的命令行参数。 字符串
扩展 使用此扩展的请求将使用指定的 FastCGI 应用程序进行处理。 字符串
scriptProcessor FastCGI 应用程序的绝对路径。 字符串

HttpLogsConfig

名字 描述 价值
azureBlobStorage 将 Http 日志记录到 Azure Blob 存储配置。 AzureBlobStorageHttpLogsConfig
文件系统 将 Http 日志记录到文件系统配置。 FileSystemHttpLogsConfig 文件

HttpSettings

名字 描述 价值
类 资源类型。 字符串
性能 HttpSettings 资源特定属性 HttpSettingsProperties

HttpSettingsProperties

名字 描述 价值
转发代理 转发代理
requireHttps 的 布尔
路线 HttpSettingsRoutes

HttpSettingsRoutes

名字 描述 价值
类 资源类型。 字符串
性能 HttpSettingsRoutes 资源特定属性 HttpSettingsRoutesProperties

HttpSettingsRoutesProperties

名字 描述 价值
apiPrefix 的 字符串

身份提供程序

名字 描述 价值
类 资源类型。 字符串
性能 IdentityProviders 资源特定属性 IdentityProviders属性

IdentityProviders属性

名字 描述 价值
azureActiveDirectory AzureActiveDirectory
自定义OpenIdConnectProviders customOpenIdConnectProvider<>字典 IdentityProvidersPropertiesCustomOpenIdConnectProviders
脸书 脸书
极狐 GitHub GitHub的
谷歌 谷歌
唽 唽

IdentityProvidersPropertiesCustomOpenIdConnectProviders

名字 描述 价值

IpSecurityRestriction

名字 描述 价值
操作 允许或拒绝对此 IP 范围的访问。 字符串
描述 IP 限制规则说明。 字符串
头 IP 限制规则标头。
X-Forwarded-Host(https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples)。
匹配的逻辑为 .。
- 如果属性为 null 或空(默认值),则允许所有主机(或缺少主机)。
- 使用序号-ignore-case(不包括端口号)比较值。
- 允许子域通配符,但与根域不匹配。 例如,*.contoso.com 匹配子域 foo.contoso.com
但不是根域 contoso.com 或多级 foo.bar.contoso.com
- 允许 Unicode 主机名,但会转换为 Punycode 进行匹配。

X-Forwarded-For(https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples)。
匹配的逻辑为 .。
- 如果属性为 null 或空(默认值),则允许任何转发链(或缺少) 。
- 如果链(逗号分隔)中的任何地址(不包括端口号)与属性定义的 CIDR 匹配。

X-Azure-FDID 和 X-FD-HealthProbe。
匹配逻辑完全匹配。
IpSecurityRestrictionHeaders
IP地址 安全限制有效的 IP 地址。
它可以采用纯 ipv4 地址(所需的 SubnetMask 属性)或
CIDR 表示法,如 ipv4/mask(前导位匹配)。 对于 CIDR,
不得指定 SubnetMask 属性。
字符串
名字 IP 限制规则名称。 字符串
优先权 IP 限制规则的优先级。 整数 (int)
子网掩码 限制有效的 IP 地址范围的子网掩码。 字符串
subnetTrafficTag (内部)子网流量标记 整数 (int)
标签 定义此 IP 筛选器将用于什么。 这是为了支持对代理进行 IP 筛选。 “Default”
“ServiceTag”
“XffProxy”
vnetSubnetResourceId 虚拟网络资源 ID 字符串
vnetTrafficTag (内部)Vnet 流量标记 整数 (int)

IpSecurityRestrictionHeaders

名字 描述 价值

JwtClaimChecks

名字 描述 价值
类 资源类型。 字符串
性能 JwtClaimChecks 资源特定属性 JwtClaimChecks属性

JwtClaimChecks属性

名字 描述 价值
allowedClient应用程序 字符串[]
allowed组 字符串[]

登录

名字 描述 价值
类 资源类型。 字符串
性能 登录资源特定的属性 LoginProperties

LoginProperties

名字 描述 价值
allowedExternalRedirectUrls 字符串[]
cookie过期 Cookie过期
nonce 随机数
preserveUrlFragmentsForLogins 布尔
路线 LoginRoutes (登录路由)
tokenStore TokenStore 仓库

LoginRoutes (登录路由)

名字 描述 价值
类 资源类型。 字符串
性能 LoginRoutes 资源特定属性 LoginRoutesProperties

LoginRoutesProperties

名字 描述 价值
logout端点 字符串

登录范围

名字 描述 价值
类 资源类型。 字符串
性能 LoginScopes 资源特定属性 LoginScopesProperties

LoginScopesProperties

名字 描述 价值
范围 字符串[]

microsoft.web/sites/slots/config

名字 描述 价值
名字 对于类型 Microsoft.Web/sites/slots/config,设置为“appsettings”。对于类型 Microsoft.Web/sites/slots/config,设置为“authsettings”。对于类型 Microsoft.Web/sites/slots/config,设置为“authsettingsV2”。对于类型 Microsoft.Web/sites/slots/config,设置为“azurestorageaccounts”。对于类型 Microsoft.Web/sites/slots/config,设置为“backup”。对于类型 Microsoft.Web/sites/slots/config,设置为“connectionstrings”。对于类型 Microsoft.Web/sites/slots/config,设置为“logs”。对于类型 Microsoft.Web/sites/slots/config,设置为“metadata”。对于类型 Microsoft.Web/sites/slots/config,设置为“pushsettings”。对于类型 Microsoft.Web/sites/slots/config,设置为“web”。 “appsettings”
“authsettings”
“authsettingsV2”
“azurestorageaccounts”
“backup”
“connectionstrings”
“logs”
“metadata”
“pushsettings”
“web”(必需)

NameValuePair

名字 描述 价值
名字 配对名称。 字符串
价值 对值。 字符串

随机数

名字 描述 价值
类 资源类型。 字符串
性能 Nonce 资源特定属性 Nonce属性

Nonce属性

名字 描述 价值
nonceExpirationInterval 字符串
验证随机数 布尔

OpenIdConnectClientCredential

名字 描述 价值
类 资源类型。 字符串
性能 OpenIdConnectClientCredential 资源特定属性 OpenIdConnectClientCredentialProperties

OpenIdConnectClientCredentialProperties

名字 描述 价值
clientSecretSettingName (客户端 Secret设置名称) 字符串
方法 “ClientSecretPost”

OpenIdConnectConfig

名字 描述 价值
类 资源类型。 字符串
性能 OpenIdConnectConfig 资源特定属性 OpenIdConnectConfigProperties

OpenIdConnectConfigProperties

名字 描述 价值
authorizationEndpoint 字符串
certificationUri 认证 字符串
发行 字符串
tokenEndpoint 字符串
wellKnownOpenIdConfiguration 字符串

OpenIdConnect登录

名字 描述 价值
类 资源类型。 字符串
性能 OpenIdConnectLogin 资源特定属性 OpenIdConnectLoginProperties

OpenIdConnectLoginProperties

名字 描述 价值
nameClaimType 字符串
范围 字符串[]

OpenIdConnect注册

名字 描述 价值
类 资源类型。 字符串
性能 OpenIdConnectRegistration 资源特定属性 OpenIdConnectRegistrationProperties

OpenIdConnectRegistrationProperties

名字 描述 价值
clientCredential 的 OpenIdConnectClientCredential
客户端 ID 字符串
openIdConnect配置 OpenIdConnectConfig

PushSettings 设置

名字 描述 价值
类 资源类型。 字符串
性能 PushSettings 资源特定属性 PushSettingsProperties

PushSettingsProperties

名字 描述 价值
动态标签Json 获取或设置一个 JSON 字符串,其中包含将从推送注册终结点中的用户声明评估的动态标记列表。 字符串
isPush已启用 获取或设置一个标志,该值指示是否启用推送终结点。 bool (必需)
tagsRequiringAuth 获取或设置一个 JSON 字符串,其中包含要求在推送注册终结点中使用用户身份验证的标记列表。
标记可以包含字母数字字符和以下内容:
'_', '@', '#', '.', ':', '-'.
应在 PushRequestHandler 中执行验证。
字符串
tagWhitelistJson 获取或设置一个 JSON 字符串,其中包含允许列表中可供推送注册终结点使用的标记列表。 字符串

RampUpRule

名字 描述 价值
actionHostName (作主机名称) 如果决定将流量重定向到的槽的主机名。 例如 myapp-stage.azurewebsites.net。 字符串
更改决定回调网址 可以在 TiPCallback 站点扩展中提供自定义决策算法,可以指定 URL。 字符串
更改间隔以分钟为单位 指定重新评估 ReroutePercentage 的间隔(以分钟为单位)。 整数 (int)
changeStep 在自动增加方案中,这是从 <代码>ReroutePercentage</code> 中添加/删除的步骤,直到它到达 \n<代码>MinReroutePercentage</code> 或
<代码>MaxReroutePercentage</code>。 站点指标每 N 分钟检查一次,<代码>ChangeIntervalInMinutes</code>。\n自定义决策算法
可以在 TiPCallback 站点扩展中提供,可以在 <代码>ChangeDecisionCallbackUrl</code>中指定 URL。
整数 (int)
maxReroutePercentage 指定 ReroutePercentage 将保留的上限。 整数 (int)
minReroutePercentage 指定重新路由Percentage 将保留的下边界。 整数 (int)
名字 路由规则的名称。 建议的名称是指向将接收试验中的流量的槽。 字符串
reroutePercentage 将重定向到 <代码>ActionHostName</code>的流量的百分比。 整数 (int)

RequestsBasedTrigger 触发器

名字 描述 价值
计数 请求计数。 整数 (int)
timeInterval 时间 时间间隔。 字符串

SiteAuthSettingsProperties

名字 描述 价值
aadClaimsAuthorization 获取包含 Azure AD Acl 设置的 JSON 字符串。 字符串
additionalLoginParams 在以下情况下发送到 OpenID Connect 授权终结点的登录参数
用户登录。 每个参数必须采用“key=value”格式。
字符串[]
allowedAudiences 允许的受众值在验证颁发给的 JWT 时考虑
Azure Active Directory。 请注意,<代码>ClientID</code> 值始终被视为
允许访问群体,而不考虑此设置。
字符串[]
allowedExternalRedirectUrls 作为登录或注销应用的一部分,可重定向到的外部 URL。 请注意,将忽略 URL 的查询字符串部分。
这是 Windows 应用商店应用程序后端通常需要的高级设置。
请注意,始终允许当前域中的 URL。
字符串[]
authFilePath 文件路径 包含身份验证设置的配置文件的路径。
如果路径是相对路径,则站点的根目录将为基目录。
字符串
客户端 ID 此信赖方应用程序的客户端 ID,称为client_id。
若要使用 Azure Active Directory 启用 OpenID 连接身份验证或
其他第三方 OpenID Connect 提供程序。
有关 OpenID Connect 的详细信息:http://openid.net/specs/openid-connect-core-1_0.html
字符串
客户密钥 此信赖方应用程序的客户端密码(在 Azure Active Directory 中,也称为密钥)。
此设置是可选的。 如果未配置客户端密码,则 OpenID Connect 隐式身份验证流用于对最终用户进行身份验证。
否则,OpenID Connect 授权代码流用于对最终用户进行身份验证。
有关 OpenID Connect 的详细信息:http://openid.net/specs/openid-connect-core-1_0.html
字符串
clientSecretCertificate指纹 客户端机密的替代方法,即用于签名的证书的指纹。 此属性充当
客户端密码的替代项。 它也是可选的。
字符串
clientSecretSettingName (客户端 Secret设置名称) 包含信赖方应用程序的客户端密码的应用设置名称。 字符串
defaultProvider 配置多个提供程序时要使用的默认身份验证提供程序。
仅当配置了多个提供程序和未经身份验证的客户端时,才需要此设置
作设置为“RedirectToLoginPage”。
“AzureActiveDirectory”
“Facebook”
“Github”
“Google”
“MicrosoftAccount”
“Twitter”
启用 如果为当前应用启用了身份验证/授权功能,<代码>true</code>;否则,<代码>false</code>。 布尔
facebookAppId 用于登录的 Facebook 应用的应用 ID。
启用 Facebook 登录需要此设置。
Facebook 登录文档:https://developers.facebook.com/docs/facebook-login
字符串
facebookAppSecret 用于 Facebook 登录的 Facebook 应用的应用机密。
启用 Facebook 登录需要此设置。
Facebook 登录文档:https://developers.facebook.com/docs/facebook-login
字符串
facebookAppSecretSettingName 包含用于 Facebook 登录的应用机密的应用设置名称。 字符串
facebookOAuth范围 将作为 Facebook 登录身份验证的一部分请求的 OAuth 2.0 范围。
此设置是可选的。
Facebook 登录文档:https://developers.facebook.com/docs/facebook-login
字符串[]
gitHubClientId 用于登录的 GitHub 应用的客户端 ID。
启用 Github 登录需要此设置
字符串
gitHubClientSecret 用于 Github 登录的 GitHub 应用的客户端密码。
启用 Github 登录需要此设置。
字符串
gitHubClientSecretSettingName 包含 Github 客户端机密的应用设置名称
用于 GitHub 登录的应用。
字符串
gitHubOAuth范围 将作为 GitHub 登录身份验证的一部分请求的 OAuth 2.0 范围。
此设置是可选的
字符串[]
googleClientId Google Web 应用程序的 OpenID Connect 客户端 ID。
启用 Google 登录需要此设置。
Google Sign-In 文档:https://developers.google.com/identity/sign-in/web/
字符串
googleClientSecret 与 Google Web 应用程序关联的客户端密码。
启用 Google 登录需要此设置。
Google Sign-In 文档:https://developers.google.com/identity/sign-in/web/
字符串
googleClientSecretSettingName 包含与 关联的客户端密码的应用设置名称
Google Web 应用程序。
字符串
googleOAuth范围 将在 Google Sign-In 身份验证过程中请求的 OAuth 2.0 范围。
此设置是可选的。 如果未指定,则使用“openid”、“profile”和“email”作为默认范围。
Google Sign-In 文档:https://developers.google.com/identity/sign-in/web/
字符串[]
isAuthFrom文件 如果应从文件读取身份验证配置设置,则为“true”
否则为“false”
字符串
发行 OpenID Connect 颁发者 URI,表示颁发此应用程序的访问令牌的实体。
使用 Azure Active Directory 时,此值是目录租户的 URI,例如 https://sts.windows.net/{tenant-guid}/。
此 URI 是令牌颁发者的区分大小写的标识符。
有关 OpenID Connect 发现的详细信息:http://openid.net/specs/openid-connect-discovery-1_0.html
字符串
microsoftAccountClientId 为用于身份验证的应用创建的 OAuth 2.0 客户端 ID。
启用Microsoft帐户身份验证需要此设置。
Microsoft帐户 OAuth 文档:https://dev.onedrive.com/auth/msa_oauth.htm
字符串
microsoftAccountClientSecret 为用于身份验证的应用创建的 OAuth 2.0 客户端密码。
启用Microsoft帐户身份验证需要此设置。
Microsoft帐户 OAuth 文档:https://dev.onedrive.com/auth/msa_oauth.htm
字符串
microsoftAccountClientSecretSettingName 包含为 创建的 OAuth 2.0 客户端密码的应用设置名称
用于身份验证的应用。
字符串
microsoftAccountOAuth范围 将在Microsoft帐户身份验证过程中请求的 OAuth 2.0 范围。
此设置是可选的。 如果未指定,则使用“wl.basic”作为默认范围。
Microsoft帐户范围和权限文档:https://msdn.microsoft.com/en-us/library/dn631845.aspx
字符串[]
runtimeVersion (运行时版本) 用于当前应用的身份验证/授权功能的 RuntimeVersion。
此值中的设置可以控制身份验证/授权模块中某些功能的行为。
字符串
tokenRefreshExtension小时 会话令牌过期后的小时数,会话令牌可用于
调用令牌刷新 API。 默认值为 72 小时。
整数 (int)
tokenStore已启用 <代码>true</code> 持久存储登录流期间获取的平台特定的安全令牌;否则,<代码>false</code>。
默认值为 <代码>false</code>。
布尔
twitterConsumerKey 用于登录的 Twitter 应用程序的 OAuth 1.0a 使用者密钥。
启用 Twitter 登录需要此设置。
Twitter Sign-In 文档:https://dev.twitter.com/web/sign-in
字符串
推特消费者秘密 用于登录的 Twitter 应用程序的 OAuth 1.0a 使用者机密。
启用 Twitter 登录需要此设置。
Twitter Sign-In 文档:https://dev.twitter.com/web/sign-in
字符串
twitterConsumerSecretSettingName 包含 Twitter 的 OAuth 1.0a 使用者机密的应用设置名称
用于登录的应用程序。
字符串
unauthenticatedClientAction 未经身份验证的客户端尝试访问应用时要执行的作。 “AllowAnonymous”
“RedirectToLoginPage”
validateIssuer 的 获取一个值,该值指示颁发者是否应为有效的 HTTPS URL,并按如下所示进行验证。 布尔

SiteAuthSettingsV2属性

名字 描述 价值
globalValidation (全局验证) 全局验证
http设置 HttpSettings
identityProviders 身份提供程序
登录 登录
平台 AuthPlatform 认证

站点配置

名字 描述 价值
acrUseManagedIdentityCreds 将托管标识 Creds 用于 ACR 拉取的标志 布尔
acrUserManagedIdentityID 如果使用用户托管标识,则用户托管标识 ClientId 字符串
永远在线 如果启用了 Always On,<代码>true</code>;否则,<代码>false</code>。 布尔
api定义 有关应用的正式 API 定义的信息。 ApiDefinitionInfo
apiManagementConfig 链接到应用的 Azure API 管理设置。 ApiManagementConfig 接口
app命令行 要启动的应用命令行。 字符串
应用设置 应用程序设置。 NameValuePair[]
autoHealEnabled 已启用 如果启用了自动愈合,则 <代码>true</code>;否则,<代码>false</code>。 布尔
autoHealRules 自动修复规则 自动治愈规则。 AutoHealRules 自动修复规则
autoSwapSlotName (自动交换槽名称) 自动交换槽名称。 字符串
connectionStrings 连接字符串 连接字符串。 ConnStringInfo[]
CORS(跨域资源共享) 跨域资源共享 (CORS) 设置。 CorsSettings
defaultDocuments 文档 默认文档。 字符串[]
detailedErrorLogging已启用 如果启用了详细的错误日志记录,<代码>true</code>;否则,<代码>false</code>。 布尔
documentRoot 文档根目录。 字符串
实验 这适用于多态类型。 试验
ftps状态 FTP/FTPS 服务的状态 “AllAllowed”
“Disabled”
“FtpsOnly”
handlerMappings 处理程序映射。 HandlerMapping[]
healthCheckPath (健康检查路径) 运行状况检查路径 字符串
http20已启用 Http20Enabled:配置网站以允许客户端通过 http2.0 进行连接 布尔
httpLogging已启用 如果启用 HTTP 日志记录,则 <代码>true</code>;否则,<代码>false</code>。 布尔
ipSecurity限制 主要 IP 安全限制。 IpSecurityRestriction[]
java容器 Java 容器。 字符串
javaContainerVersion Java 容器版本。 字符串
java版本 Java 版本。 字符串
限制 网站限制。 站点限制
linuxFx版本 Linux 应用框架和版本 字符串
负载均衡 站点负载均衡。 “LeastRequests”
“LeastResponseTime”
“RequestHash”
“WeightedRoundRobin”
“WeightedTotalTraffic”
localMySql已启用 <代码>true</code> 启用本地 MySQL;否则,<代码>false</code>。 布尔
logsDirectorySizeLimit HTTP 日志目录大小限制。 整数 (int)
managedPipelineMode 托管管道模式。 “经典”
“Integrated”
managedServiceIdentityId 托管服务标识 ID 整数 (int)
minTlsVersion (最小版本 MinTlsVersion:配置 SSL 请求所需的最低 TLS 版本 '1.0'
'1.1'
'1.2'
netFrameworkVersion .NET Framework 版本。 字符串
nodeVersion Node.js的版本。 字符串
工人数 辅助角色数。 整数 (int)
php版本 PHP 的版本。 字符串
powerShellVersion PowerShell 的版本。 字符串
preWarmedInstanceCount 预瓦数实例数。
此设置仅适用于消耗计划和弹性计划
int

约束:
最小值 = 0
最大值 = 10
publishing用户名 发布用户名。 字符串
推送 推送终结点设置。 PushSettings 设置
python版本 Python 版本。 字符串
remoteDebugging已启用 如果启用了远程调试,<代码>true</code>;否则,<代码>false</code>。 布尔
remoteDebuggingVersion (远程调试版本) 远程调试版本。 字符串
requestTracing已启用 如果启用了请求跟踪,<代码>true</code>;否则,<代码>false</code>。 布尔
请求TracingExpirationTime 请求跟踪过期时间。 字符串
scmIpSecurity限制 scm 的 IP 安全限制。 IpSecurityRestriction[]
scmIpSecurityRestrictionsUseMain scm 使用 main 的 IP 安全限制。 布尔
scmMinTlsVersion ScmMinTlsVersion:配置 SCM 站点 SSL 请求所需的最低 TLS 版本 '1.0'
'1.1'
'1.2'
scm类型 SCM 类型。 “BitbucketGit”
“BitbucketHg”
“CodePlexGit”
“CodePlexHg”
“Dropbox”
“ExternalGit”
“ExternalHg”
“GitHub”
“LocalGit”
“None”
“OneDrive”
“Tfs”
“VSO”
“VSTSRM”
tracing选项 跟踪选项。 字符串
use32BitWorker进程 <代码>true</code> 使用 32 位工作进程;否则,<代码>false</code>。 布尔
虚拟应用程序 虚拟应用程序。 VirtualApplication[]
vnet名称 虚拟网络名称。 字符串
vnetPrivatePortsCount 分配给此应用的专用端口数。 这些将在运行时动态分配。 整数 (int)
vnetRouteAllEnabled 已启用“全部虚拟网络路由”。 这会导致所有出站流量都应用了虚拟网络安全组和用户定义的路由。 布尔
webSockets已启用 如果启用了 WebSocket,则 <代码>true</code>;否则,<代码>false</code>。 布尔
windowsFx版本 Xenon App Framework 和版本 字符串
xManagedServiceIdentityId 显式托管服务标识 ID 整数 (int)

站点限制

名字 描述 价值
最大磁盘大小(以 Mb 为单位) 允许的最大磁盘大小使用量(以 MB 为单位)。 整数 (int)
最大内存 允许的最大内存使用量(以 MB 为单位)。 整数 (int)
maxPercentageCpu 允许的最大 CPU 使用率百分比。 整数 (int)

SiteLogsConfigProperties

名字 描述 价值
应用程序日志 应用程序日志配置。 应用程序日志配置
detailedErrorMessages 详细的错误消息配置。 启用配置
failedRequestsTracing 请求 失败的请求跟踪配置。 启用配置
http日志 HTTP 日志配置。 HttpLogsConfig

SlowRequestsBasedTrigger 触发器

名字 描述 价值
计数 请求计数。 整数 (int)
timeInterval 时间 时间间隔。 字符串
时间 花费的时间。 字符串

StatusCodesBased触发器

名字 描述 价值
计数 请求计数。 整数 (int)
状态 HTTP 状态代码。 整数 (int)
子状态 请求子状态。 整数 (int)
timeInterval 时间 时间间隔。 字符串
win32状态 Win32 错误代码。 整数 (int)

StringDictionaryProperties

名字 描述 价值

StringDictionaryProperties

名字 描述 价值

TokenStore 仓库

名字 描述 价值
类 资源类型。 字符串
性能 TokenStore 资源特定属性 TokenStore属性

TokenStore属性

名字 描述 价值
azureBlobStorage BlobStorageTokenStore
启用 布尔
文件系统 FileSystemTokenStore 文件
tokenRefreshExtension小时 整数 (int)

唽

名字 描述 价值
类 资源类型。 字符串
性能 Twitter 资源特定的属性 Twitter属性

Twitter属性

名字 描述 价值
启用 布尔
注册 推特注册

推特注册

名字 描述 价值
类 资源类型。 字符串
性能 TwitterRegistration 资源特定属性 TwitterRegistrationProperties

TwitterRegistrationProperties

名字 描述 价值
consumerKey 字符串
consumerSecretSettingName 字符串

虚拟应用程序

名字 描述 价值
物理路径 物理路径。 字符串
preload已启用 如果启用了预加载,<代码>true</code>;否则,<代码>false</code>。 布尔
虚拟目录 虚拟应用程序的虚拟目录。 VirtualDirectory []
虚拟路径 虚拟路径。 字符串

虚拟目录

名字 描述 价值
物理路径 物理路径。 字符串
虚拟路径 虚拟应用程序的路径。 字符串

Terraform (AzAPI 提供程序)资源定义

可以使用目标作部署站点/槽/配置资源类型:

  • 资源组 关于每个API版本中变更属性的列表,请参见 更改日志。

用法示例

Terraform 示例

部署应用服务的插槽虚拟网络关联的基本示例。

terraform {
  required_providers {
    azapi = {
      source = "Azure/azapi"
    }
  }
}

provider "azapi" {
  skip_provider_registration = false
}

variable "resource_name" {
  type    = string
  default = "acctest0001"
}

variable "location" {
  type    = string
  default = "westeurope"
}

resource "azapi_resource" "resourceGroup" {
  type     = "Microsoft.Resources/resourceGroups@2020-06-01"
  name     = var.resource_name
  location = var.location
}

resource "azapi_resource" "serverfarm" {
  type      = "Microsoft.Web/serverfarms@2022-09-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = var.resource_name
  location  = var.location
  body = {
    properties = {
      hyperV         = false
      perSiteScaling = false
      reserved       = false
      zoneRedundant  = false
    }
    sku = {
      name = "S1"
    }
  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
}

resource "azapi_resource" "site" {
  type      = "Microsoft.Web/sites@2022-09-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = var.resource_name
  location  = var.location
  body = {
    properties = {
      clientAffinityEnabled = false
      clientCertEnabled     = false
      clientCertMode        = "Required"
      enabled               = true
      httpsOnly             = false
      publicNetworkAccess   = "Enabled"
      serverFarmId          = azapi_resource.serverfarm.id
      siteConfig = {
        acrUseManagedIdentityCreds       = false
        alwaysOn                         = true
        autoHealEnabled                  = false
        ftpsState                        = "Disabled"
        http20Enabled                    = false
        loadBalancing                    = "LeastRequests"
        localMySqlEnabled                = false
        managedPipelineMode              = "Integrated"
        minTlsVersion                    = "1.2"
        publicNetworkAccess              = "Enabled"
        remoteDebuggingEnabled           = false
        scmIpSecurityRestrictionsUseMain = false
        scmMinTlsVersion                 = "1.2"
        use32BitWorkerProcess            = true
        vnetRouteAllEnabled              = false
        webSocketsEnabled                = false
        windowsFxVersion                 = ""
      }
      vnetRouteAllEnabled = false
    }
  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
}

resource "azapi_resource" "slot" {
  type      = "Microsoft.Web/sites/slots@2022-09-01"
  parent_id = azapi_resource.site.id
  name      = var.resource_name
  location  = var.location
  body = {
    properties = {
      clientAffinityEnabled    = false
      clientCertEnabled        = false
      clientCertExclusionPaths = ""
      clientCertMode           = "Required"
      enabled                  = true
      httpsOnly                = false
      publicNetworkAccess      = "Enabled"
      serverFarmId             = azapi_resource.serverfarm.id
      siteConfig = {
        acrUseManagedIdentityCreds       = false
        alwaysOn                         = true
        autoHealEnabled                  = false
        ftpsState                        = "Disabled"
        http20Enabled                    = false
        loadBalancing                    = "LeastRequests"
        localMySqlEnabled                = false
        managedPipelineMode              = "Integrated"
        minTlsVersion                    = "1.2"
        publicNetworkAccess              = "Enabled"
        remoteDebuggingEnabled           = false
        scmIpSecurityRestrictionsUseMain = false
        scmMinTlsVersion                 = "1.2"
        use32BitWorkerProcess            = false
        vnetRouteAllEnabled              = false
        webSocketsEnabled                = false
        windowsFxVersion                 = ""
      }
      vnetRouteAllEnabled = false
    }
  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
}

data "azapi_resource_id" "config" {
  type      = "Microsoft.Web/sites/slots/config@2022-09-01"
  parent_id = azapi_resource.slot.id
  name      = "azurestorageaccounts"
}

resource "azapi_resource_action" "config" {
  type        = "Microsoft.Web/sites/slots/config@2022-09-01"
  resource_id = data.azapi_resource_id.config.id
  method      = "PUT"
  body = {
    name = "azurestorageaccounts"
    properties = {
    }
  }
  response_export_values = ["*"]
}

资源格式

若要创建 Microsoft.Web/sites/slots/config 资源,请将以下 Terraform 添加到模板。

resource "azapi_resource" "symbolicname" {
  name = "string"
  // For remaining properties, see microsoft.web/sites/slots/config objects
}

microsoft.web/sites/slots/config 对象

设置 名称 属性以指定对象的类型。

对于 appsettings,请使用:

{
  kind = "string"
  name = "appsettings"
  properties = {
    {customized property} = "string"
  }
}

对于 身份验证,请使用:

{
  kind = "string"
  name = "authsettings"
  properties = {
    aadClaimsAuthorization = "string"
    additionalLoginParams = [
      "string"
    ]
    allowedAudiences = [
      "string"
    ]
    allowedExternalRedirectUrls = [
      "string"
    ]
    authFilePath = "string"
    clientId = "string"
    clientSecret = "string"
    clientSecretCertificateThumbprint = "string"
    clientSecretSettingName = "string"
    defaultProvider = "string"
    enabled = bool
    facebookAppId = "string"
    facebookAppSecret = "string"
    facebookAppSecretSettingName = "string"
    facebookOAuthScopes = [
      "string"
    ]
    gitHubClientId = "string"
    gitHubClientSecret = "string"
    gitHubClientSecretSettingName = "string"
    gitHubOAuthScopes = [
      "string"
    ]
    googleClientId = "string"
    googleClientSecret = "string"
    googleClientSecretSettingName = "string"
    googleOAuthScopes = [
      "string"
    ]
    isAuthFromFile = "string"
    issuer = "string"
    microsoftAccountClientId = "string"
    microsoftAccountClientSecret = "string"
    microsoftAccountClientSecretSettingName = "string"
    microsoftAccountOAuthScopes = [
      "string"
    ]
    runtimeVersion = "string"
    tokenRefreshExtensionHours = int
    tokenStoreEnabled = bool
    twitterConsumerKey = "string"
    twitterConsumerSecret = "string"
    twitterConsumerSecretSettingName = "string"
    unauthenticatedClientAction = "string"
    validateIssuer = bool
  }
}

对于 authsettingsV2,请使用:

{
  kind = "string"
  name = "authsettingsV2"
  properties = {
    globalValidation = {
      kind = "string"
      properties = {
        excludedPaths = [
          "string"
        ]
        redirectToProvider = "string"
        requireAuthentication = bool
        unauthenticatedClientAction = "string"
      }
    }
    httpSettings = {
      kind = "string"
      properties = {
        forwardProxy = {
          kind = "string"
          properties = {
            convention = "string"
            customHostHeaderName = "string"
            customProtoHeaderName = "string"
          }
        }
        requireHttps = bool
        routes = {
          kind = "string"
          properties = {
            apiPrefix = "string"
          }
        }
      }
    }
    identityProviders = {
      kind = "string"
      properties = {
        azureActiveDirectory = {
          kind = "string"
          properties = {
            enabled = bool
            isAutoProvisioned = bool
            login = {
              kind = "string"
              properties = {
                disableWWWAuthenticate = bool
                loginParameters = [
                  "string"
                ]
              }
            }
            registration = {
              kind = "string"
              properties = {
                clientId = "string"
                clientSecretCertificateThumbprint = "string"
                clientSecretSettingName = "string"
                openIdIssuer = "string"
              }
            }
            validation = {
              kind = "string"
              properties = {
                allowedAudiences = [
                  "string"
                ]
                jwtClaimChecks = {
                  kind = "string"
                  properties = {
                    allowedClientApplications = [
                      "string"
                    ]
                    allowedGroups = [
                      "string"
                    ]
                  }
                }
              }
            }
          }
        }
        customOpenIdConnectProviders = {
          {customized property} = {
            kind = "string"
            properties = {
              enabled = bool
              login = {
                kind = "string"
                properties = {
                  nameClaimType = "string"
                  scopes = [
                    "string"
                  ]
                }
              }
              registration = {
                kind = "string"
                properties = {
                  clientCredential = {
                    kind = "string"
                    properties = {
                      clientSecretSettingName = "string"
                      method = "ClientSecretPost"
                    }
                  }
                  clientId = "string"
                  openIdConnectConfiguration = {
                    kind = "string"
                    properties = {
                      authorizationEndpoint = "string"
                      certificationUri = "string"
                      issuer = "string"
                      tokenEndpoint = "string"
                      wellKnownOpenIdConfiguration = "string"
                    }
                  }
                }
              }
            }
          }
        }
        facebook = {
          kind = "string"
          properties = {
            enabled = bool
            graphApiVersion = "string"
            login = {
              kind = "string"
              properties = {
                scopes = [
                  "string"
                ]
              }
            }
            registration = {
              kind = "string"
              properties = {
                appId = "string"
                appSecretSettingName = "string"
              }
            }
          }
        }
        gitHub = {
          kind = "string"
          properties = {
            enabled = bool
            login = {
              kind = "string"
              properties = {
                scopes = [
                  "string"
                ]
              }
            }
            registration = {
              kind = "string"
              properties = {
                clientId = "string"
                clientSecretSettingName = "string"
              }
            }
          }
        }
        google = {
          kind = "string"
          properties = {
            enabled = bool
            login = {
              kind = "string"
              properties = {
                scopes = [
                  "string"
                ]
              }
            }
            registration = {
              kind = "string"
              properties = {
                clientId = "string"
                clientSecretSettingName = "string"
              }
            }
            validation = {
              kind = "string"
              properties = {
                allowedAudiences = [
                  "string"
                ]
              }
            }
          }
        }
        twitter = {
          kind = "string"
          properties = {
            enabled = bool
            registration = {
              kind = "string"
              properties = {
                consumerKey = "string"
                consumerSecretSettingName = "string"
              }
            }
          }
        }
      }
    }
    login = {
      kind = "string"
      properties = {
        allowedExternalRedirectUrls = [
          "string"
        ]
        cookieExpiration = {
          kind = "string"
          properties = {
            convention = "string"
            timeToExpiration = "string"
          }
        }
        nonce = {
          kind = "string"
          properties = {
            nonceExpirationInterval = "string"
            validateNonce = bool
          }
        }
        preserveUrlFragmentsForLogins = bool
        routes = {
          kind = "string"
          properties = {
            logoutEndpoint = "string"
          }
        }
        tokenStore = {
          kind = "string"
          properties = {
            azureBlobStorage = {
              kind = "string"
              properties = {
                sasUrlSettingName = "string"
              }
            }
            enabled = bool
            fileSystem = {
              kind = "string"
              properties = {
                directory = "string"
              }
            }
            tokenRefreshExtensionHours = int
          }
        }
      }
    }
    platform = {
      kind = "string"
      properties = {
        configFilePath = "string"
        enabled = bool
        runtimeVersion = "string"
      }
    }
  }
}

若要 azurestorageaccounts,请使用:

{
  kind = "string"
  name = "azurestorageaccounts"
  properties = {
    {customized property} = {
      accessKey = "string"
      accountName = "string"
      mountPath = "string"
      shareName = "string"
      type = "string"
    }
  }
}

对于 备份,请使用:

{
  kind = "string"
  name = "backup"
  properties = {
    backupName = "string"
    backupSchedule = {
      frequencyInterval = int
      frequencyUnit = "string"
      keepAtLeastOneBackup = bool
      retentionPeriodInDays = int
      startTime = "string"
    }
    databases = [
      {
        connectionString = "string"
        connectionStringName = "string"
        databaseType = "string"
        name = "string"
      }
    ]
    enabled = bool
    storageAccountUrl = "string"
  }
}

对于 连接字符串,请使用:

{
  kind = "string"
  name = "connectionstrings"
  properties = {
    {customized property} = {
      type = "string"
      value = "string"
    }
  }
}

对于 日志,请使用:

{
  kind = "string"
  name = "logs"
  properties = {
    applicationLogs = {
      azureBlobStorage = {
        level = "string"
        retentionInDays = int
        sasUrl = "string"
      }
      azureTableStorage = {
        level = "string"
        sasUrl = "string"
      }
      fileSystem = {
        level = "string"
      }
    }
    detailedErrorMessages = {
      enabled = bool
    }
    failedRequestsTracing = {
      enabled = bool
    }
    httpLogs = {
      azureBlobStorage = {
        enabled = bool
        retentionInDays = int
        sasUrl = "string"
      }
      fileSystem = {
        enabled = bool
        retentionInDays = int
        retentionInMb = int
      }
    }
  }
}

对于 元数据,请使用:

{
  kind = "string"
  name = "metadata"
  properties = {
    {customized property} = "string"
  }
}

对于 推送设置,请使用:

{
  kind = "string"
  name = "pushsettings"
  properties = {
    dynamicTagsJson = "string"
    isPushEnabled = bool
    tagsRequiringAuth = "string"
    tagWhitelistJson = "string"
  }
}

对于 Web,请使用:

{
  kind = "string"
  name = "web"
  properties = {
    acrUseManagedIdentityCreds = bool
    acrUserManagedIdentityID = "string"
    alwaysOn = bool
    apiDefinition = {
      url = "string"
    }
    apiManagementConfig = {
      id = "string"
    }
    appCommandLine = "string"
    appSettings = [
      {
        name = "string"
        value = "string"
      }
    ]
    autoHealEnabled = bool
    autoHealRules = {
      actions = {
        actionType = "string"
        customAction = {
          exe = "string"
          parameters = "string"
        }
        minProcessExecutionTime = "string"
      }
      triggers = {
        privateBytesInKB = int
        requests = {
          count = int
          timeInterval = "string"
        }
        slowRequests = {
          count = int
          timeInterval = "string"
          timeTaken = "string"
        }
        statusCodes = [
          {
            count = int
            status = int
            subStatus = int
            timeInterval = "string"
            win32Status = int
          }
        ]
      }
    }
    autoSwapSlotName = "string"
    connectionStrings = [
      {
        connectionString = "string"
        name = "string"
        type = "string"
      }
    ]
    cors = {
      allowedOrigins = [
        "string"
      ]
      supportCredentials = bool
    }
    defaultDocuments = [
      "string"
    ]
    detailedErrorLoggingEnabled = bool
    documentRoot = "string"
    experiments = {
      rampUpRules = [
        {
          actionHostName = "string"
          changeDecisionCallbackUrl = "string"
          changeIntervalInMinutes = int
          changeStep = int
          maxReroutePercentage = int
          minReroutePercentage = int
          name = "string"
          reroutePercentage = int
        }
      ]
    }
    ftpsState = "string"
    handlerMappings = [
      {
        arguments = "string"
        extension = "string"
        scriptProcessor = "string"
      }
    ]
    healthCheckPath = "string"
    http20Enabled = bool
    httpLoggingEnabled = bool
    ipSecurityRestrictions = [
      {
        action = "string"
        description = "string"
        headers = {
          {customized property} = [
            "string"
          ]
        }
        ipAddress = "string"
        name = "string"
        priority = int
        subnetMask = "string"
        subnetTrafficTag = int
        tag = "string"
        vnetSubnetResourceId = "string"
        vnetTrafficTag = int
      }
    ]
    javaContainer = "string"
    javaContainerVersion = "string"
    javaVersion = "string"
    limits = {
      maxDiskSizeInMb = int
      maxMemoryInMb = int
      maxPercentageCpu = int
    }
    linuxFxVersion = "string"
    loadBalancing = "string"
    localMySqlEnabled = bool
    logsDirectorySizeLimit = int
    managedPipelineMode = "string"
    managedServiceIdentityId = int
    minTlsVersion = "string"
    netFrameworkVersion = "string"
    nodeVersion = "string"
    numberOfWorkers = int
    phpVersion = "string"
    powerShellVersion = "string"
    preWarmedInstanceCount = int
    publishingUsername = "string"
    push = {
      kind = "string"
      properties = {
        dynamicTagsJson = "string"
        isPushEnabled = bool
        tagsRequiringAuth = "string"
        tagWhitelistJson = "string"
      }
    }
    pythonVersion = "string"
    remoteDebuggingEnabled = bool
    remoteDebuggingVersion = "string"
    requestTracingEnabled = bool
    requestTracingExpirationTime = "string"
    scmIpSecurityRestrictions = [
      {
        action = "string"
        description = "string"
        headers = {
          {customized property} = [
            "string"
          ]
        }
        ipAddress = "string"
        name = "string"
        priority = int
        subnetMask = "string"
        subnetTrafficTag = int
        tag = "string"
        vnetSubnetResourceId = "string"
        vnetTrafficTag = int
      }
    ]
    scmIpSecurityRestrictionsUseMain = bool
    scmMinTlsVersion = "string"
    scmType = "string"
    tracingOptions = "string"
    use32BitWorkerProcess = bool
    virtualApplications = [
      {
        physicalPath = "string"
        preloadEnabled = bool
        virtualDirectories = [
          {
            physicalPath = "string"
            virtualPath = "string"
          }
        ]
        virtualPath = "string"
      }
    ]
    vnetName = "string"
    vnetPrivatePortsCount = int
    vnetRouteAllEnabled = bool
    webSocketsEnabled = bool
    windowsFxVersion = "string"
    xManagedServiceIdentityId = int
  }
}

属性值

Microsoft.Web/sites/slots/config

名字 描述 价值
类 资源类型。 字符串
名字 资源名称 “appsettings”(必需)
parent_id 此资源的父资源的 ID。 类型资源的 ID:站点/槽
性能 设置。 StringDictionaryProperties
类型 资源类型 “Microsoft.Web/sites/slots/config@2020-10-01”

Microsoft.Web/sites/slots/config

名字 描述 价值
类 资源类型。 字符串
名字 资源名称 “authsettings”(必需)
parent_id 此资源的父资源的 ID。 类型资源的 ID:站点/槽
性能 SiteAuthSettings 资源特定属性 SiteAuthSettingsProperties
类型 资源类型 “Microsoft.Web/sites/slots/config@2020-10-01”

Microsoft.Web/sites/slots/config

名字 描述 价值
类 资源类型。 字符串
名字 资源名称 “authsettingsV2”(必需)
parent_id 此资源的父资源的 ID。 类型资源的 ID:站点/槽
性能 SiteAuthSettingsV2 资源特定属性 SiteAuthSettingsV2属性
类型 资源类型 “Microsoft.Web/sites/slots/config@2020-10-01”

Microsoft.Web/sites/slots/config

名字 描述 价值
类 资源类型。 字符串
名字 资源名称 “azurestorageaccounts”(必需)
parent_id 此资源的父资源的 ID。 类型资源的 ID:站点/槽
性能 Azure 存储帐户。 AzureStoragePropertyDictionaryResourceProperties
类型 资源类型 “Microsoft.Web/sites/slots/config@2020-10-01”

Microsoft.Web/sites/slots/config

名字 描述 价值
类 资源类型。 字符串
名字 资源名称 “backup”(必需)
parent_id 此资源的父资源的 ID。 类型资源的 ID:站点/槽
性能 BackupRequest 资源特定属性 BackupRequestProperties
类型 资源类型 “Microsoft.Web/sites/slots/config@2020-10-01”

Microsoft.Web/sites/slots/config

名字 描述 价值
类 资源类型。 字符串
名字 资源名称 “connectionstrings”(必需)
parent_id 此资源的父资源的 ID。 类型资源的 ID:站点/槽
性能 连接字符串。 ConnectionStringDictionary属性
类型 资源类型 “Microsoft.Web/sites/slots/config@2020-10-01”

Microsoft.Web/sites/slots/config

名字 描述 价值
类 资源类型。 字符串
名字 资源名称 “logs”(必需)
parent_id 此资源的父资源的 ID。 类型资源的 ID:站点/槽
性能 SiteLogsConfig 资源特定属性 SiteLogsConfigProperties
类型 资源类型 “Microsoft.Web/sites/slots/config@2020-10-01”

Microsoft.Web/sites/slots/config

名字 描述 价值
类 资源类型。 字符串
名字 资源名称 “metadata”(必需)
parent_id 此资源的父资源的 ID。 类型资源的 ID:站点/槽
性能 设置。 StringDictionaryProperties
类型 资源类型 “Microsoft.Web/sites/slots/config@2020-10-01”

Microsoft.Web/sites/slots/config

名字 描述 价值
类 资源类型。 字符串
名字 资源名称 “pushsettings”(必需)
parent_id 此资源的父资源的 ID。 类型资源的 ID:站点/槽
性能 PushSettings 资源特定属性 PushSettingsProperties
类型 资源类型 “Microsoft.Web/sites/slots/config@2020-10-01”

Microsoft.Web/sites/slots/config

名字 描述 价值
类 资源类型。 字符串
名字 资源名称 “web”(必需)
parent_id 此资源的父资源的 ID。 类型资源的 ID:站点/槽
性能 核心资源属性 站点配置
类型 资源类型 “Microsoft.Web/sites/slots/config@2020-10-01”

AllowedAudiences验证

名字 描述 价值
类 资源类型。 字符串
性能 AllowedAudiencesValidation 资源特定属性 AllowedAudiencesValidationProperties

AllowedAudiencesValidationProperties

名字 描述 价值
allowedAudiences 字符串[]

ApiDefinitionInfo

名字 描述 价值
网址 API 定义的 URL。 字符串

ApiManagementConfig 接口

名字 描述 价值
身份证 APIM-Api 标识符。 字符串

应用程序日志配置

名字 描述 价值
azureBlobStorage 将应用程序日志记录到 Blob 存储配置。 AzureBlobStorageApplicationLogsConfig
azureTableStorage 将应用程序日志记录到 Azure 表存储配置。 AzureTableStorageApplicationLogsConfig
文件系统 应用程序日志到文件系统配置。 FileSystemApplicationLogsConfig

应用注册

名字 描述 价值
类 资源类型。 字符串
性能 特定于 AppRegistration 资源的属性 AppRegistrationProperties

AppRegistrationProperties

名字 描述 价值
应用程序ID 字符串
appSecretSettingName 字符串

AuthPlatform 认证

名字 描述 价值
类 资源类型。 字符串
性能 特定于 AuthPlatform 资源的属性 AuthPlatform属性

AuthPlatform属性

名字 描述 价值
configFilePath 文件 字符串
启用 布尔
runtimeVersion (运行时版本) 字符串

AutoHealActions 自动修复作

名字 描述 价值
动作类型 要执行的预定义作。 “CustomAction”
“LogEvent”
“回收”
自定义作 要执行的自定义作。 AutohealCustomAction 自动修复
minProcessExecutionTime (最小进程执行时间) 必须执行进程的最短时间
执行作之前
字符串

AutohealCustomAction 自动修复

名字 描述 价值
exe 要运行的可执行文件。 字符串
参数 可执行文件的参数。 字符串

AutoHealRules 自动修复规则

名字 描述 价值
行动 触发规则时要执行的作。 AutoHealActions 自动修复作
触发器 描述何时执行自动修复作的条件。 AutoHealTriggers 自动修复触发器

AutoHealTriggers 自动修复触发器

名字 描述 价值
privateBytesInKB 基于专用字节的规则。 整数 (int)
请求 基于请求总数的规则。 RequestsBasedTrigger 触发器
slowRequests 请求 基于请求执行时间的规则。 SlowRequestsBasedTrigger 触发器
statusCodes 基于状态代码的规则。 StatusCodesBasedTrigger[]

AzureActiveDirectory

名字 描述 价值
类 资源类型。 字符串
性能 特定于 AzureActiveDirectory 资源的属性 AzureActiveDirectory属性

AzureActiveDirectory登录

名字 描述 价值
类 资源类型。 字符串
性能 AzureActiveDirectoryLogin 资源特定属性 AzureActiveDirectoryLoginProperties

AzureActiveDirectoryLoginProperties

名字 描述 价值
disableWWWAuthenticate 布尔
loginParameters (登录参数) 字符串[]

AzureActiveDirectory属性

名字 描述 价值
启用 布尔
isAutoProvisioned 布尔
登录 AzureActiveDirectory登录
注册 AzureActiveDirectory注册
验证 AzureActiveDirectory验证

AzureActiveDirectory注册

名字 描述 价值
类 资源类型。 字符串
性能 AzureActiveDirectoryRegistration 资源特定属性 AzureActiveDirectoryRegistrationProperties

AzureActiveDirectoryRegistrationProperties

名字 描述 价值
客户端 ID 字符串
clientSecretCertificate指纹 字符串
clientSecretSettingName (客户端 Secret设置名称) 字符串
openIdIssuer 的 字符串

AzureActiveDirectory验证

名字 描述 价值
类 资源类型。 字符串
性能 AzureActiveDirectoryValidation 资源特定属性 AzureActiveDirectoryValidationProperties

AzureActiveDirectoryValidationProperties

名字 描述 价值
allowedAudiences 字符串[]
jwtClaimChecks JwtClaimChecks

AzureBlobStorageApplicationLogsConfig

名字 描述 价值
水平仪 日志级别。 “Error”
“信息”
“关闭”
“Verbose”
“Warning”
保留天数 保留天数。
删除早于 X 天的 Blob。
0 或更低意味着没有保留。
整数 (int)
sasUrl 的 具有读取/写入/列出/删除权限的 Azure Blob 容器的 SAS URL。 字符串

AzureBlobStorageHttpLogsConfig

名字 描述 价值
启用 如果启用了配置,则为 true;如果禁用,则为 false;如果未设置配置,则为 null。 布尔
保留天数 保留天数。
删除早于 X 天的 Blob。
0 或更低意味着没有保留。
整数 (int)
sasUrl 的 具有读取/写入/列出/删除权限的 Azure Blob 容器的 SAS URL。 字符串

AzureStorageInfoValue

名字 描述 价值
访问密钥 存储帐户的访问密钥。 字符串
账户名称 存储帐户的名称。 字符串
mountPath 在站点的运行时环境中装载存储的路径。 字符串
shareName (共享名称) 文件共享的名称(容器名称,Blob 存储)。 字符串
类型 存储的类型。 “AzureBlob”
“AzureFiles”

AzureStoragePropertyDictionaryResourceProperties

名字 描述 价值

AzureTableStorageApplicationLogsConfig

名字 描述 价值
水平仪 日志级别。 “Error”
“信息”
“关闭”
“Verbose”
“Warning”
sasUrl 的 包含添加/查询/删除权限的 Azure 表的 SAS URL。 string (必需)

BackupRequestProperties

名字 描述 价值
backupName (备份名称) 备份的名称。 字符串
backupSchedule 定期执行备份时计划备份。 备份计划
数据库 备份中包含的数据库。 DatabaseBackupSetting[]
启用 如果启用备份计划(在这种情况下必须包含),则为 true;如果应禁用备份计划,则为 false。 布尔
storageAccountUrl 的 容器的 SAS URL。 string (必需)

备份计划

名字 描述 价值
频率间隔 应执行备份的频率(例如,对于每周备份,应将其设置为 7,FrequencyUnit 应设置为 Day) int (必需)
频率单位 执行备份的频率的时间单位(例如,对于每周备份,应将其设置为 Day,FrequencyInterval 应设置为 7) “Day”
“Hour”(必需)
keepAtLeastOneBackup 如此 如果保留策略应始终在存储帐户中保留至少一个备份,而不考虑备份的年龄:否则为 false。 bool (必需)
retentionPeriodInDays (保留期以天为单位) 删除多少天备份后。 int (必需)
开始时间 计划何时应开始工作。 字符串

BlobStorageTokenStore

名字 描述 价值
类 资源类型。 字符串
性能 BlobStorageTokenStore 资源特定属性 BlobStorageTokenStore属性

BlobStorageTokenStore属性

名字 描述 价值
sasUrlSettingName 字符串

客户注册

名字 描述 价值
类 资源类型。 字符串
性能 ClientRegistration 资源特定属性 ClientRegistrationProperties

ClientRegistrationProperties

名字 描述 价值
客户端 ID 字符串
clientSecretSettingName (客户端 Secret设置名称) 字符串

ConnectionStringDictionary属性

名字 描述 价值

ConnStringInfo

名字 描述 价值
connectionString 连接字符串 连接字符串值。 字符串
名字 连接字符串的名称。 字符串
类型 数据库的类型。 “ApiHub”
“Custom”
“DocDb”
“EventHub”
“MySql”
“NotificationHub”
“PostgreSQL”
“RedisCache”
“ServiceBus”
“SQLAzure”
“SQLServer”

ConnStringValueTypePair

名字 描述 价值
类型 数据库的类型。 “ApiHub”
“Custom”
“DocDb”
“EventHub”
“MySql”
“NotificationHub”
“PostgreSQL”
“RedisCache”
“ServiceBus”
“SQLAzure”
“SQLServer”(必需)
价值 对的值。 string (必需)

Cookie过期

名字 描述 价值
类 资源类型。 字符串
性能 CookieExpiration 资源特定属性 CookieExpirationProperties

CookieExpirationProperties

名字 描述 价值
约定 “FixedTime”
“IdentityProviderDerived”
timeToExpiration 时间 字符串

CorsSettings

名字 描述 价值
allowedOrigins 的 获取或设置应允许进行跨源的源列表
调用(例如:http://example.com:12345)。 使用“*”允许所有。
字符串[]
支持凭证 获取或设置是否允许使用凭据的 CORS 请求。 看
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Requests_with_credentials
有关详细信息。
布尔

CustomOpenIdConnectProvider

名字 描述 价值
类 资源类型。 字符串
性能 CustomOpenIdConnectProvider 资源特定属性 CustomOpenIdConnectProvider属性

CustomOpenIdConnectProvider属性

名字 描述 价值
启用 布尔
登录 OpenIdConnect登录
注册 OpenIdConnect注册

DatabaseBackupSetting 数据库备份设置

名字 描述 价值
connectionString 连接字符串 包含要备份或还原的数据库的连接字符串。 如果还原应发生在新数据库,则内部的数据库名称为新数据库。 字符串
connectionStringName 包含链接到 SiteConfig.ConnectionStrings 的连接字符串名称。
这在还原期间与覆盖连接字符串选项一起使用。
字符串
数据库类型 数据库类型(例如 SqlAzure/MySql)。 “LocalMySql”
“MySql”
“PostgreSql”
“SqlAzure”(必需)
名字 字符串

启用配置

名字 描述 价值
启用 如果启用了配置,则为 true;如果禁用,则为 false;如果未设置配置,则为 null。 布尔

实验

名字 描述 价值
rampUp规则 提升规则的列表。 RampUpRule[]

脸书

名字 描述 价值
类 资源类型。 字符串
性能 Facebook 资源特定属性 Facebook属性

Facebook属性

名字 描述 价值
启用 布尔
graphApiVersion 字符串
登录 登录范围
注册 应用注册

FileSystemApplicationLogsConfig

名字 描述 价值
水平仪 日志级别。 “Error”
“信息”
“关闭”
“Verbose”
“Warning”

FileSystemHttpLogsConfig 文件

名字 描述 价值
启用 如果启用了配置,则为 true;如果禁用,则为 false;如果未设置配置,则为 null。 布尔
保留天数 保留天数。
删除早于 X 天的文件。
0 或更低意味着没有保留。
整数 (int)
保留(以 Mb 为单位) http 日志文件可以使用的最大大小(以兆字节为单位)。
到达旧日志文件后,将被删除以为新日志文件提供空间。
值可以介于 25 和 100 之间。
int

约束:
最小值 = 25
最大值 = 100

FileSystemTokenStore 文件

名字 描述 价值
类 资源类型。 字符串
性能 FileSystemTokenStore 资源特定属性 FileSystemTokenStoreProperties

FileSystemTokenStoreProperties

名字 描述 价值
目录 字符串

转发代理

名字 描述 价值
类 资源类型。 字符串
性能 ForwardProxy 资源特定属性 ForwardProxyProperties

ForwardProxyProperties

名字 描述 价值
约定 “Custom”
“NoProxy”
“Standard”
customHostHeaderName (自定义主机标头名称) 字符串
customProtoHeaderName 字符串

GitHub

名字 描述 价值
类 资源类型。 字符串
性能 GitHub 资源特定的属性 GitHubProperties

GitHubProperties

名字 描述 价值
启用 布尔
登录 登录范围
注册 客户注册

全局验证

名字 描述 价值
类 资源类型。 字符串
性能 GlobalValidation 资源特定属性 GlobalValidationProperties

GlobalValidationProperties

名字 描述 价值
excludedPaths 字符串[]
redirectToProvider 字符串
requireAuthentication 认证 布尔
unauthenticatedClientAction “AllowAnonymous”
“RedirectToLoginPage”
“Return401”
“Return403”

谷歌

名字 描述 价值
类 资源类型。 字符串
性能 Google 资源特定属性 GoogleProperties

GoogleProperties

名字 描述 价值
启用 布尔
登录 登录范围
注册 客户注册
验证 AllowedAudiences验证

HandlerMapping

名字 描述 价值
参数 要传递给脚本处理器的命令行参数。 字符串
扩展 使用此扩展的请求将使用指定的 FastCGI 应用程序进行处理。 字符串
scriptProcessor FastCGI 应用程序的绝对路径。 字符串

HttpLogsConfig

名字 描述 价值
azureBlobStorage 将 Http 日志记录到 Azure Blob 存储配置。 AzureBlobStorageHttpLogsConfig
文件系统 将 Http 日志记录到文件系统配置。 FileSystemHttpLogsConfig 文件

HttpSettings

名字 描述 价值
类 资源类型。 字符串
性能 HttpSettings 资源特定属性 HttpSettingsProperties

HttpSettingsProperties

名字 描述 价值
转发代理 转发代理
requireHttps 的 布尔
路线 HttpSettingsRoutes

HttpSettingsRoutes

名字 描述 价值
类 资源类型。 字符串
性能 HttpSettingsRoutes 资源特定属性 HttpSettingsRoutesProperties

HttpSettingsRoutesProperties

名字 描述 价值
apiPrefix 的 字符串

身份提供程序

名字 描述 价值
类 资源类型。 字符串
性能 IdentityProviders 资源特定属性 IdentityProviders属性

IdentityProviders属性

名字 描述 价值
azureActiveDirectory AzureActiveDirectory
自定义OpenIdConnectProviders customOpenIdConnectProvider<>字典 IdentityProvidersPropertiesCustomOpenIdConnectProviders
脸书 脸书
极狐 GitHub GitHub的
谷歌 谷歌
唽 唽

IdentityProvidersPropertiesCustomOpenIdConnectProviders

名字 描述 价值

IpSecurityRestriction

名字 描述 价值
操作 允许或拒绝对此 IP 范围的访问。 字符串
描述 IP 限制规则说明。 字符串
头 IP 限制规则标头。
X-Forwarded-Host(https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host#Examples)。
匹配的逻辑为 .。
- 如果属性为 null 或空(默认值),则允许所有主机(或缺少主机)。
- 使用序号-ignore-case(不包括端口号)比较值。
- 允许子域通配符,但与根域不匹配。 例如,*.contoso.com 匹配子域 foo.contoso.com
但不是根域 contoso.com 或多级 foo.bar.contoso.com
- 允许 Unicode 主机名,但会转换为 Punycode 进行匹配。

X-Forwarded-For(https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples)。
匹配的逻辑为 .。
- 如果属性为 null 或空(默认值),则允许任何转发链(或缺少) 。
- 如果链(逗号分隔)中的任何地址(不包括端口号)与属性定义的 CIDR 匹配。

X-Azure-FDID 和 X-FD-HealthProbe。
匹配逻辑完全匹配。
IpSecurityRestrictionHeaders
IP地址 安全限制有效的 IP 地址。
它可以采用纯 ipv4 地址(所需的 SubnetMask 属性)或
CIDR 表示法,如 ipv4/mask(前导位匹配)。 对于 CIDR,
不得指定 SubnetMask 属性。
字符串
名字 IP 限制规则名称。 字符串
优先权 IP 限制规则的优先级。 整数 (int)
子网掩码 限制有效的 IP 地址范围的子网掩码。 字符串
subnetTrafficTag (内部)子网流量标记 整数 (int)
标签 定义此 IP 筛选器将用于什么。 这是为了支持对代理进行 IP 筛选。 “Default”
“ServiceTag”
“XffProxy”
vnetSubnetResourceId 虚拟网络资源 ID 字符串
vnetTrafficTag (内部)Vnet 流量标记 整数 (int)

IpSecurityRestrictionHeaders

名字 描述 价值

JwtClaimChecks

名字 描述 价值
类 资源类型。 字符串
性能 JwtClaimChecks 资源特定属性 JwtClaimChecks属性

JwtClaimChecks属性

名字 描述 价值
allowedClient应用程序 字符串[]
allowed组 字符串[]

登录

名字 描述 价值
类 资源类型。 字符串
性能 登录资源特定的属性 LoginProperties

LoginProperties

名字 描述 价值
allowedExternalRedirectUrls 字符串[]
cookie过期 Cookie过期
nonce 随机数
preserveUrlFragmentsForLogins 布尔
路线 LoginRoutes (登录路由)
tokenStore TokenStore 仓库

LoginRoutes (登录路由)

名字 描述 价值
类 资源类型。 字符串
性能 LoginRoutes 资源特定属性 LoginRoutesProperties

LoginRoutesProperties

名字 描述 价值
logout端点 字符串

登录范围

名字 描述 价值
类 资源类型。 字符串
性能 LoginScopes 资源特定属性 LoginScopesProperties

LoginScopesProperties

名字 描述 价值
范围 字符串[]

microsoft.web/sites/slots/config

名字 描述 价值
名字 对于类型 Microsoft.Web/sites/slots/config,设置为“appsettings”。对于类型 Microsoft.Web/sites/slots/config,设置为“authsettings”。对于类型 Microsoft.Web/sites/slots/config,设置为“authsettingsV2”。对于类型 Microsoft.Web/sites/slots/config,设置为“azurestorageaccounts”。对于类型 Microsoft.Web/sites/slots/config,设置为“backup”。对于类型 Microsoft.Web/sites/slots/config,设置为“connectionstrings”。对于类型 Microsoft.Web/sites/slots/config,设置为“logs”。对于类型 Microsoft.Web/sites/slots/config,设置为“metadata”。对于类型 Microsoft.Web/sites/slots/config,设置为“pushsettings”。对于类型 Microsoft.Web/sites/slots/config,设置为“web”。 “appsettings”
“authsettings”
“authsettingsV2”
“azurestorageaccounts”
“backup”
“connectionstrings”
“logs”
“metadata”
“pushsettings”
“web”(必需)

NameValuePair

名字 描述 价值
名字 配对名称。 字符串
价值 对值。 字符串

随机数

名字 描述 价值
类 资源类型。 字符串
性能 Nonce 资源特定属性 Nonce属性

Nonce属性

名字 描述 价值
nonceExpirationInterval 字符串
验证随机数 布尔

OpenIdConnectClientCredential

名字 描述 价值
类 资源类型。 字符串
性能 OpenIdConnectClientCredential 资源特定属性 OpenIdConnectClientCredentialProperties

OpenIdConnectClientCredentialProperties

名字 描述 价值
clientSecretSettingName (客户端 Secret设置名称) 字符串
方法 “ClientSecretPost”

OpenIdConnectConfig

名字 描述 价值
类 资源类型。 字符串
性能 OpenIdConnectConfig 资源特定属性 OpenIdConnectConfigProperties

OpenIdConnectConfigProperties

名字 描述 价值
authorizationEndpoint 字符串
certificationUri 认证 字符串
发行 字符串
tokenEndpoint 字符串
wellKnownOpenIdConfiguration 字符串

OpenIdConnect登录

名字 描述 价值
类 资源类型。 字符串
性能 OpenIdConnectLogin 资源特定属性 OpenIdConnectLoginProperties

OpenIdConnectLoginProperties

名字 描述 价值
nameClaimType 字符串
范围 字符串[]

OpenIdConnect注册

名字 描述 价值
类 资源类型。 字符串
性能 OpenIdConnectRegistration 资源特定属性 OpenIdConnectRegistrationProperties

OpenIdConnectRegistrationProperties

名字 描述 价值
clientCredential 的 OpenIdConnectClientCredential
客户端 ID 字符串
openIdConnect配置 OpenIdConnectConfig

PushSettings 设置

名字 描述 价值
类 资源类型。 字符串
性能 PushSettings 资源特定属性 PushSettingsProperties

PushSettingsProperties

名字 描述 价值
动态标签Json 获取或设置一个 JSON 字符串,其中包含将从推送注册终结点中的用户声明评估的动态标记列表。 字符串
isPush已启用 获取或设置一个标志,该值指示是否启用推送终结点。 bool (必需)
tagsRequiringAuth 获取或设置一个 JSON 字符串,其中包含要求在推送注册终结点中使用用户身份验证的标记列表。
标记可以包含字母数字字符和以下内容:
'_', '@', '#', '.', ':', '-'.
应在 PushRequestHandler 中执行验证。
字符串
tagWhitelistJson 获取或设置一个 JSON 字符串,其中包含允许列表中可供推送注册终结点使用的标记列表。 字符串

RampUpRule

名字 描述 价值
actionHostName (作主机名称) 如果决定将流量重定向到的槽的主机名。 例如 myapp-stage.azurewebsites.net。 字符串
更改决定回调网址 可以在 TiPCallback 站点扩展中提供自定义决策算法,可以指定 URL。 字符串
更改间隔以分钟为单位 指定重新评估 ReroutePercentage 的间隔(以分钟为单位)。 整数 (int)
changeStep 在自动增加方案中,这是从 <代码>ReroutePercentage</code> 中添加/删除的步骤,直到它到达 \n<代码>MinReroutePercentage</code> 或
<代码>MaxReroutePercentage</code>。 站点指标每 N 分钟检查一次,<代码>ChangeIntervalInMinutes</code>。\n自定义决策算法
可以在 TiPCallback 站点扩展中提供,可以在 <代码>ChangeDecisionCallbackUrl</code>中指定 URL。
整数 (int)
maxReroutePercentage 指定 ReroutePercentage 将保留的上限。 整数 (int)
minReroutePercentage 指定重新路由Percentage 将保留的下边界。 整数 (int)
名字 路由规则的名称。 建议的名称是指向将接收试验中的流量的槽。 字符串
reroutePercentage 将重定向到 <代码>ActionHostName</code>的流量的百分比。 整数 (int)

RequestsBasedTrigger 触发器

名字 描述 价值
计数 请求计数。 整数 (int)
timeInterval 时间 时间间隔。 字符串

SiteAuthSettingsProperties

名字 描述 价值
aadClaimsAuthorization 获取包含 Azure AD Acl 设置的 JSON 字符串。 字符串
additionalLoginParams 在以下情况下发送到 OpenID Connect 授权终结点的登录参数
用户登录。 每个参数必须采用“key=value”格式。
字符串[]
allowedAudiences 允许的受众值在验证颁发给的 JWT 时考虑
Azure Active Directory。 请注意,<代码>ClientID</code> 值始终被视为
允许访问群体,而不考虑此设置。
字符串[]
allowedExternalRedirectUrls 作为登录或注销应用的一部分,可重定向到的外部 URL。 请注意,将忽略 URL 的查询字符串部分。
这是 Windows 应用商店应用程序后端通常需要的高级设置。
请注意,始终允许当前域中的 URL。
字符串[]
authFilePath 文件路径 包含身份验证设置的配置文件的路径。
如果路径是相对路径,则站点的根目录将为基目录。
字符串
客户端 ID 此信赖方应用程序的客户端 ID,称为client_id。
若要使用 Azure Active Directory 启用 OpenID 连接身份验证或
其他第三方 OpenID Connect 提供程序。
有关 OpenID Connect 的详细信息:http://openid.net/specs/openid-connect-core-1_0.html
字符串
客户密钥 此信赖方应用程序的客户端密码(在 Azure Active Directory 中,也称为密钥)。
此设置是可选的。 如果未配置客户端密码,则 OpenID Connect 隐式身份验证流用于对最终用户进行身份验证。
否则,OpenID Connect 授权代码流用于对最终用户进行身份验证。
有关 OpenID Connect 的详细信息:http://openid.net/specs/openid-connect-core-1_0.html
字符串
clientSecretCertificate指纹 客户端机密的替代方法,即用于签名的证书的指纹。 此属性充当
客户端密码的替代项。 它也是可选的。
字符串
clientSecretSettingName (客户端 Secret设置名称) 包含信赖方应用程序的客户端密码的应用设置名称。 字符串
defaultProvider 配置多个提供程序时要使用的默认身份验证提供程序。
仅当配置了多个提供程序和未经身份验证的客户端时,才需要此设置
作设置为“RedirectToLoginPage”。
“AzureActiveDirectory”
“Facebook”
“Github”
“Google”
“MicrosoftAccount”
“Twitter”
启用 如果为当前应用启用了身份验证/授权功能,<代码>true</code>;否则,<代码>false</code>。 布尔
facebookAppId 用于登录的 Facebook 应用的应用 ID。
启用 Facebook 登录需要此设置。
Facebook 登录文档:https://developers.facebook.com/docs/facebook-login
字符串
facebookAppSecret 用于 Facebook 登录的 Facebook 应用的应用机密。
启用 Facebook 登录需要此设置。
Facebook 登录文档:https://developers.facebook.com/docs/facebook-login
字符串
facebookAppSecretSettingName 包含用于 Facebook 登录的应用机密的应用设置名称。 字符串
facebookOAuth范围 将作为 Facebook 登录身份验证的一部分请求的 OAuth 2.0 范围。
此设置是可选的。
Facebook 登录文档:https://developers.facebook.com/docs/facebook-login
字符串[]
gitHubClientId 用于登录的 GitHub 应用的客户端 ID。
启用 Github 登录需要此设置
字符串
gitHubClientSecret 用于 Github 登录的 GitHub 应用的客户端密码。
启用 Github 登录需要此设置。
字符串
gitHubClientSecretSettingName 包含 Github 客户端机密的应用设置名称
用于 GitHub 登录的应用。
字符串
gitHubOAuth范围 将作为 GitHub 登录身份验证的一部分请求的 OAuth 2.0 范围。
此设置是可选的
字符串[]
googleClientId Google Web 应用程序的 OpenID Connect 客户端 ID。
启用 Google 登录需要此设置。
Google Sign-In 文档:https://developers.google.com/identity/sign-in/web/
字符串
googleClientSecret 与 Google Web 应用程序关联的客户端密码。
启用 Google 登录需要此设置。
Google Sign-In 文档:https://developers.google.com/identity/sign-in/web/
字符串
googleClientSecretSettingName 包含与 关联的客户端密码的应用设置名称
Google Web 应用程序。
字符串
googleOAuth范围 将在 Google Sign-In 身份验证过程中请求的 OAuth 2.0 范围。
此设置是可选的。 如果未指定,则使用“openid”、“profile”和“email”作为默认范围。
Google Sign-In 文档:https://developers.google.com/identity/sign-in/web/
字符串[]
isAuthFrom文件 如果应从文件读取身份验证配置设置,则为“true”
否则为“false”
字符串
发行 OpenID Connect 颁发者 URI,表示颁发此应用程序的访问令牌的实体。
使用 Azure Active Directory 时,此值是目录租户的 URI,例如 https://sts.windows.net/{tenant-guid}/。
此 URI 是令牌颁发者的区分大小写的标识符。
有关 OpenID Connect 发现的详细信息:http://openid.net/specs/openid-connect-discovery-1_0.html
字符串
microsoftAccountClientId 为用于身份验证的应用创建的 OAuth 2.0 客户端 ID。
启用Microsoft帐户身份验证需要此设置。
Microsoft帐户 OAuth 文档:https://dev.onedrive.com/auth/msa_oauth.htm
字符串
microsoftAccountClientSecret 为用于身份验证的应用创建的 OAuth 2.0 客户端密码。
启用Microsoft帐户身份验证需要此设置。
Microsoft帐户 OAuth 文档:https://dev.onedrive.com/auth/msa_oauth.htm
字符串
microsoftAccountClientSecretSettingName 包含为 创建的 OAuth 2.0 客户端密码的应用设置名称
用于身份验证的应用。
字符串
microsoftAccountOAuth范围 将在Microsoft帐户身份验证过程中请求的 OAuth 2.0 范围。
此设置是可选的。 如果未指定,则使用“wl.basic”作为默认范围。
Microsoft帐户范围和权限文档:https://msdn.microsoft.com/en-us/library/dn631845.aspx
字符串[]
runtimeVersion (运行时版本) 用于当前应用的身份验证/授权功能的 RuntimeVersion。
此值中的设置可以控制身份验证/授权模块中某些功能的行为。
字符串
tokenRefreshExtension小时 会话令牌过期后的小时数,会话令牌可用于
调用令牌刷新 API。 默认值为 72 小时。
整数 (int)
tokenStore已启用 <代码>true</code> 持久存储登录流期间获取的平台特定的安全令牌;否则,<代码>false</code>。
默认值为 <代码>false</code>。
布尔
twitterConsumerKey 用于登录的 Twitter 应用程序的 OAuth 1.0a 使用者密钥。
启用 Twitter 登录需要此设置。
Twitter Sign-In 文档:https://dev.twitter.com/web/sign-in
字符串
推特消费者秘密 用于登录的 Twitter 应用程序的 OAuth 1.0a 使用者机密。
启用 Twitter 登录需要此设置。
Twitter Sign-In 文档:https://dev.twitter.com/web/sign-in
字符串
twitterConsumerSecretSettingName 包含 Twitter 的 OAuth 1.0a 使用者机密的应用设置名称
用于登录的应用程序。
字符串
unauthenticatedClientAction 未经身份验证的客户端尝试访问应用时要执行的作。 “AllowAnonymous”
“RedirectToLoginPage”
validateIssuer 的 获取一个值,该值指示颁发者是否应为有效的 HTTPS URL,并按如下所示进行验证。 布尔

SiteAuthSettingsV2属性

名字 描述 价值
globalValidation (全局验证) 全局验证
http设置 HttpSettings
identityProviders 身份提供程序
登录 登录
平台 AuthPlatform 认证

站点配置

名字 描述 价值
acrUseManagedIdentityCreds 将托管标识 Creds 用于 ACR 拉取的标志 布尔
acrUserManagedIdentityID 如果使用用户托管标识,则用户托管标识 ClientId 字符串
永远在线 如果启用了 Always On,<代码>true</code>;否则,<代码>false</code>。 布尔
api定义 有关应用的正式 API 定义的信息。 ApiDefinitionInfo
apiManagementConfig 链接到应用的 Azure API 管理设置。 ApiManagementConfig 接口
app命令行 要启动的应用命令行。 字符串
应用设置 应用程序设置。 NameValuePair[]
autoHealEnabled 已启用 如果启用了自动愈合,则 <代码>true</code>;否则,<代码>false</code>。 布尔
autoHealRules 自动修复规则 自动治愈规则。 AutoHealRules 自动修复规则
autoSwapSlotName (自动交换槽名称) 自动交换槽名称。 字符串
connectionStrings 连接字符串 连接字符串。 ConnStringInfo[]
CORS(跨域资源共享) 跨域资源共享 (CORS) 设置。 CorsSettings
defaultDocuments 文档 默认文档。 字符串[]
detailedErrorLogging已启用 如果启用了详细的错误日志记录,<代码>true</code>;否则,<代码>false</code>。 布尔
documentRoot 文档根目录。 字符串
实验 这适用于多态类型。 试验
ftps状态 FTP/FTPS 服务的状态 “AllAllowed”
“Disabled”
“FtpsOnly”
handlerMappings 处理程序映射。 HandlerMapping[]
healthCheckPath (健康检查路径) 运行状况检查路径 字符串
http20已启用 Http20Enabled:配置网站以允许客户端通过 http2.0 进行连接 布尔
httpLogging已启用 如果启用 HTTP 日志记录,则 <代码>true</code>;否则,<代码>false</code>。 布尔
ipSecurity限制 主要 IP 安全限制。 IpSecurityRestriction[]
java容器 Java 容器。 字符串
javaContainerVersion Java 容器版本。 字符串
java版本 Java 版本。 字符串
限制 网站限制。 站点限制
linuxFx版本 Linux 应用框架和版本 字符串
负载均衡 站点负载均衡。 “LeastRequests”
“LeastResponseTime”
“RequestHash”
“WeightedRoundRobin”
“WeightedTotalTraffic”
localMySql已启用 <代码>true</code> 启用本地 MySQL;否则,<代码>false</code>。 布尔
logsDirectorySizeLimit HTTP 日志目录大小限制。 整数 (int)
managedPipelineMode 托管管道模式。 “经典”
“Integrated”
managedServiceIdentityId 托管服务标识 ID 整数 (int)
minTlsVersion (最小版本 MinTlsVersion:配置 SSL 请求所需的最低 TLS 版本 '1.0'
'1.1'
'1.2'
netFrameworkVersion .NET Framework 版本。 字符串
nodeVersion Node.js的版本。 字符串
工人数 辅助角色数。 整数 (int)
php版本 PHP 的版本。 字符串
powerShellVersion PowerShell 的版本。 字符串
preWarmedInstanceCount 预瓦数实例数。
此设置仅适用于消耗计划和弹性计划
int

约束:
最小值 = 0
最大值 = 10
publishing用户名 发布用户名。 字符串
推送 推送终结点设置。 PushSettings 设置
python版本 Python 版本。 字符串
remoteDebugging已启用 如果启用了远程调试,<代码>true</code>;否则,<代码>false</code>。 布尔
remoteDebuggingVersion (远程调试版本) 远程调试版本。 字符串
requestTracing已启用 如果启用了请求跟踪,<代码>true</code>;否则,<代码>false</code>。 布尔
请求TracingExpirationTime 请求跟踪过期时间。 字符串
scmIpSecurity限制 scm 的 IP 安全限制。 IpSecurityRestriction[]
scmIpSecurityRestrictionsUseMain scm 使用 main 的 IP 安全限制。 布尔
scmMinTlsVersion ScmMinTlsVersion:配置 SCM 站点 SSL 请求所需的最低 TLS 版本 '1.0'
'1.1'
'1.2'
scm类型 SCM 类型。 “BitbucketGit”
“BitbucketHg”
“CodePlexGit”
“CodePlexHg”
“Dropbox”
“ExternalGit”
“ExternalHg”
“GitHub”
“LocalGit”
“None”
“OneDrive”
“Tfs”
“VSO”
“VSTSRM”
tracing选项 跟踪选项。 字符串
use32BitWorker进程 <代码>true</code> 使用 32 位工作进程;否则,<代码>false</code>。 布尔
虚拟应用程序 虚拟应用程序。 VirtualApplication[]
vnet名称 虚拟网络名称。 字符串
vnetPrivatePortsCount 分配给此应用的专用端口数。 这些将在运行时动态分配。 整数 (int)
vnetRouteAllEnabled 已启用“全部虚拟网络路由”。 这会导致所有出站流量都应用了虚拟网络安全组和用户定义的路由。 布尔
webSockets已启用 如果启用了 WebSocket,则 <代码>true</code>;否则,<代码>false</code>。 布尔
windowsFx版本 Xenon App Framework 和版本 字符串
xManagedServiceIdentityId 显式托管服务标识 ID 整数 (int)

站点限制

名字 描述 价值
最大磁盘大小(以 Mb 为单位) 允许的最大磁盘大小使用量(以 MB 为单位)。 整数 (int)
最大内存 允许的最大内存使用量(以 MB 为单位)。 整数 (int)
maxPercentageCpu 允许的最大 CPU 使用率百分比。 整数 (int)

SiteLogsConfigProperties

名字 描述 价值
应用程序日志 应用程序日志配置。 应用程序日志配置
detailedErrorMessages 详细的错误消息配置。 启用配置
failedRequestsTracing 请求 失败的请求跟踪配置。 启用配置
http日志 HTTP 日志配置。 HttpLogsConfig

SlowRequestsBasedTrigger 触发器

名字 描述 价值
计数 请求计数。 整数 (int)
timeInterval 时间 时间间隔。 字符串
时间 花费的时间。 字符串

StatusCodesBased触发器

名字 描述 价值
计数 请求计数。 整数 (int)
状态 HTTP 状态代码。 整数 (int)
子状态 请求子状态。 整数 (int)
timeInterval 时间 时间间隔。 字符串
win32状态 Win32 错误代码。 整数 (int)

StringDictionaryProperties

名字 描述 价值

StringDictionaryProperties

名字 描述 价值

TokenStore 仓库

名字 描述 价值
类 资源类型。 字符串
性能 TokenStore 资源特定属性 TokenStore属性

TokenStore属性

名字 描述 价值
azureBlobStorage BlobStorageTokenStore
启用 布尔
文件系统 FileSystemTokenStore 文件
tokenRefreshExtension小时 整数 (int)

唽

名字 描述 价值
类 资源类型。 字符串
性能 Twitter 资源特定的属性 Twitter属性

Twitter属性

名字 描述 价值
启用 布尔
注册 推特注册

推特注册

名字 描述 价值
类 资源类型。 字符串
性能 TwitterRegistration 资源特定属性 TwitterRegistrationProperties

TwitterRegistrationProperties

名字 描述 价值
consumerKey 字符串
consumerSecretSettingName 字符串

虚拟应用程序

名字 描述 价值
物理路径 物理路径。 字符串
preload已启用 如果启用了预加载,<代码>true</code>;否则,<代码>false</code>。 布尔
虚拟目录 虚拟应用程序的虚拟目录。 VirtualDirectory []
虚拟路径 虚拟路径。 字符串

虚拟目录

名字 描述 价值
物理路径 物理路径。 字符串
虚拟路径 虚拟应用程序的路径。 字符串