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

IDefinition<FluentT> 接口

定义

整个 Web 应用基本定义。

public interface IDefinition<FluentT> : Microsoft.Azure.Management.AppService.Fluent.WebAppBase.Definition.IWithAppSettings<FluentT>, Microsoft.Azure.Management.AppService.Fluent.WebAppBase.Definition.IWithAuthentication<FluentT>, Microsoft.Azure.Management.AppService.Fluent.WebAppBase.Definition.IWithClientAffinityEnabled<FluentT>, Microsoft.Azure.Management.AppService.Fluent.WebAppBase.Definition.IWithClientCertEnabled<FluentT>, Microsoft.Azure.Management.AppService.Fluent.WebAppBase.Definition.IWithConnectionString<FluentT>, Microsoft.Azure.Management.AppService.Fluent.WebAppBase.Definition.IWithCreate<FluentT>, Microsoft.Azure.Management.AppService.Fluent.WebAppBase.Definition.IWithDiagnosticLogging<FluentT>, Microsoft.Azure.Management.AppService.Fluent.WebAppBase.Definition.IWithHostNameBinding<FluentT>, Microsoft.Azure.Management.AppService.Fluent.WebAppBase.Definition.IWithHostNameSslBinding<FluentT>, Microsoft.Azure.Management.AppService.Fluent.WebAppBase.Definition.IWithManagedServiceIdentity<FluentT>, Microsoft.Azure.Management.AppService.Fluent.WebAppBase.Definition.IWithScmSiteAlsoStopped<FluentT>, Microsoft.Azure.Management.AppService.Fluent.WebAppBase.Definition.IWithSiteConfigs<FluentT>, Microsoft.Azure.Management.AppService.Fluent.WebAppBase.Definition.IWithSourceControl<FluentT>, Microsoft.Azure.Management.AppService.Fluent.WebAppBase.Definition.IWithSystemAssignedIdentityBasedAccessOrCreate<FluentT>, Microsoft.Azure.Management.AppService.Fluent.WebAppBase.Definition.IWithUserAssignedManagedServiceIdentityBasedAccessOrCreate<FluentT>, Microsoft.Azure.Management.AppService.Fluent.WebAppBase.Definition.IWithWebContainer<FluentT>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.IBeta, Microsoft.Azure.Management.ResourceManager.Fluent.Core.Resource.Definition.IDefinitionWithTags<Microsoft.Azure.Management.AppService.Fluent.WebAppBase.Definition.IWithCreate<FluentT>>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.ResourceActions.ICreatable<FluentT>
type IDefinition<'FluentT> = interface
    interface IWithWebContainer<'FluentT>
    interface IWithCreate<'FluentT>
    interface ICreatable<'FluentT>
    interface IIndexable
    interface IDefinitionWithTags<IWithCreate<'FluentT>>
    interface IWithClientAffinityEnabled<'FluentT>
    interface IWithClientCertEnabled<'FluentT>
    interface IWithScmSiteAlsoStopped<'FluentT>
    interface IWithSiteConfigs<'FluentT>
    interface IWithAppSettings<'FluentT>
    interface IWithConnectionString<'FluentT>
    interface IWithSourceControl<'FluentT>
    interface IWithHostNameBinding<'FluentT>
    interface IWithHostNameSslBinding<'FluentT>
    interface IWithAuthentication<'FluentT>
    interface IWithDiagnosticLogging<'FluentT>
    interface IBeta
    interface IWithManagedServiceIdentity<'FluentT>
    interface IWithSystemAssignedIdentityBasedAccessOrCreate<'FluentT>
    interface IWithUserAssignedManagedServiceIdentityBasedAccessOrCreate<'FluentT>
Public Interface IDefinition(Of FluentT)
Implements IBeta, ICreatable(Of FluentT), IDefinitionWithTags(Of IWithCreate(Of FluentT)), IWithAppSettings(Of FluentT), IWithAuthentication(Of FluentT), IWithClientAffinityEnabled(Of FluentT), IWithClientCertEnabled(Of FluentT), IWithConnectionString(Of FluentT), IWithCreate(Of FluentT), IWithDiagnosticLogging(Of FluentT), IWithHostNameBinding(Of FluentT), IWithHostNameSslBinding(Of FluentT), IWithManagedServiceIdentity(Of FluentT), IWithScmSiteAlsoStopped(Of FluentT), IWithSiteConfigs(Of FluentT), IWithSourceControl(Of FluentT), IWithSystemAssignedIdentityBasedAccessOrCreate(Of FluentT), IWithUserAssignedManagedServiceIdentityBasedAccessOrCreate(Of FluentT), IWithWebContainer(Of FluentT)

类型参数

FluentT

资源类型。

实现

属性

Key

整个 Web 应用基本定义。

(继承自 IIndexable)
Name

获取可创建资源的名称。

(继承自 ICreatable<T>)

方法

Create()

执行创建请求。

(继承自 ICreatable<T>)
CreateAsync(CancellationToken, Boolean)

将请求放入队列,并允许 HTTP 客户端在系统资源可用时执行该请求。

(继承自 ICreatable<T>)
DefineAuthentication()

指定新身份验证配置的定义。

(继承自 IWithAuthentication<FluentT>)
DefineDiagnosticLogsConfiguration()

获取 指定新诊断日志配置的定义。

(继承自 IWithDiagnosticLogging<FluentT>)
DefineHostnameBinding()

启动新主机名绑定的定义。

(继承自 IWithHostNameBinding<FluentT>)
DefineSourceControl()

启动新源代码管理的定义。

(继承自 IWithSourceControl<FluentT>)
DefineSslBinding()

启动 SSL 绑定的定义。

(继承自 IWithHostNameSslBinding<FluentT>)
WithAppSetting(String, String)

将应用设置添加到 Web 应用。

(继承自 IWithAppSettings<FluentT>)
WithAppSettings(IDictionary<String,String>)

将 Web 应用的应用设置指定为地图。

(继承自 IWithAppSettings<FluentT>)
WithAutoSwapSlotName(String)

指定要在此 Web 应用/部署槽中完成部署时自动交换的槽名称。

(继承自 IWithSiteConfigs<FluentT>)
WithClientAffinityEnabled(Boolean)

指定是否启用客户端关联。

(继承自 IWithClientAffinityEnabled<FluentT>)
WithClientCertEnabled(Boolean)

指定是否启用客户端证书。

(继承自 IWithClientCertEnabled<FluentT>)
WithConnectionString(String, String, ConnectionStringType)

将连接字符串添加到 Web 应用。

(继承自 IWithConnectionString<FluentT>)
WithContainerLoggingDisabled()

禁用 Linux Web 应用的容器日志记录。

(继承自 IWithDiagnosticLogging<FluentT>)
WithContainerLoggingEnabled()

指定 Linux Web 应用的容器日志记录配置。 日志将存储在文件系统上,最大存储 35 MB。

(继承自 IWithDiagnosticLogging<FluentT>)
WithContainerLoggingEnabled(Int32, Int32)

指定 Linux Web 应用的容器日志记录配置。

(继承自 IWithDiagnosticLogging<FluentT>)
WithDefaultDocument(String)

添加默认文档。

(继承自 IWithSiteConfigs<FluentT>)
WithDefaultDocuments(IList<String>)

添加默认文档的列表。

(继承自 IWithSiteConfigs<FluentT>)
WithExistingUserAssignedManagedServiceIdentity(IIdentity)

指定要与 Web 应用关联的现有用户分配标识。

(继承自 IWithUserAssignedManagedServiceIdentityBasedAccessOrCreate<FluentT>)
WithFtpsState(FtpsState)

设置 Web 应用是否支持特定类型的 FTP (S) 。

(继承自 IWithSiteConfigs<FluentT>)
WithHttp20Enabled(Boolean)

设置 Web 应用是否接受 HTTP 2.0 流量。

(继承自 IWithSiteConfigs<FluentT>)
WithHttpsOnly(Boolean)

设置 Web 应用是否仅接受 HTTPS 流量。

(继承自 IWithSiteConfigs<FluentT>)
WithJavaVersion(JavaVersion)

指定 Java 版本。

(继承自 IWithSiteConfigs<FluentT>)
WithLocalGitSourceControl()

将源代码管理指定为 Web 应用上的本地 Git 存储库。

(继承自 IWithSourceControl<FluentT>)
WithManagedHostnameBindings(IAppServiceDomain, String[])

定义 Azure 托管域的主机名列表。 DNS 记录类型默认为 CNAME,根级别域 (除外。

(继承自 IWithHostNameBinding<FluentT>)
WithManagedPipelineMode(ManagedPipelineMode)

指定托管管道模式。

(继承自 IWithSiteConfigs<FluentT>)
WithNetFrameworkVersion(NetFrameworkVersion)

指定.NET Framework版本。

(继承自 IWithSiteConfigs<FluentT>)
WithNewUserAssignedManagedServiceIdentity(ICreatable<IIdentity>)

指定要与 Web 应用关联的尚未创建的用户分配标识的定义。

(继承自 IWithUserAssignedManagedServiceIdentityBasedAccessOrCreate<FluentT>)
WithoutDefaultDocument(String)

删除默认文档。

(继承自 IWithSiteConfigs<FluentT>)
WithoutPhp()

关闭 PHP 支持。

(继承自 IWithSiteConfigs<FluentT>)
WithoutSystemAssignedManagedServiceIdentity()

指定需要禁用系统分配 (本地) 托管服务标识。

(继承自 IWithManagedServiceIdentity<FluentT>)
WithoutUserAssignedManagedServiceIdentity(String)

指定应删除与 Web 应用关联的用户分配标识。

(继承自 IWithUserAssignedManagedServiceIdentityBasedAccessOrCreate<FluentT>)
WithPhpVersion(PhpVersion)

指定 PHP 版本。

(继承自 IWithSiteConfigs<FluentT>)
WithPlatformArchitecture(PlatformArchitecture)

指定要使用的平台体系结构。

(继承自 IWithSiteConfigs<FluentT>)
WithPythonVersion(PythonVersion)

指定 Python 版本。

(继承自 IWithSiteConfigs<FluentT>)
WithRemoteDebuggingDisabled()

禁用远程调试。

(继承自 IWithSiteConfigs<FluentT>)
WithRemoteDebuggingEnabled(RemoteVisualStudioVersion)

指定用于远程调试的 Visual Studio 版本。

(继承自 IWithSiteConfigs<FluentT>)
WithScmSiteAlsoStopped(Boolean)

指定在 Web 应用停止时是否也停止 SCM 站点。

(继承自 IWithScmSiteAlsoStopped<FluentT>)
WithStickyAppSetting(String, String)

将应用设置添加到 Web 应用。 此应用设置也将在部署槽交换后交换。

(继承自 IWithAppSettings<FluentT>)
WithStickyAppSettings(IDictionary<String,String>)

将 Web 应用的应用设置指定为地图。 这些应用设置也将在部署槽交换后交换。

(继承自 IWithAppSettings<FluentT>)
WithStickyConnectionString(String, String, ConnectionStringType)

将连接字符串添加到 Web 应用。 此连接字符串也将在部署槽交换后交换。

(继承自 IWithConnectionString<FluentT>)
WithSystemAssignedIdentityBasedAccessTo(String, BuiltInRole)

指定 (本地) 标识分配的 Web 应用的系统应具有由资源 ID 标识的 ARM 资源上的角色) 描述的给定访问权限 (。 在 Web 应用上运行的应用程序将具有相同的权限 (角色) ARM 资源。

(继承自 IWithSystemAssignedIdentityBasedAccessOrCreate<FluentT>)
WithSystemAssignedIdentityBasedAccessTo(String, String)

指定 (本地) 标识分配的 Web 应用的系统应具有资源 ID 标识的 ARM 资源上的角色定义) 描述的访问权限 (。 在 Web 应用上运行的应用程序将具有相同的权限 (角色) ARM 资源。

(继承自 IWithSystemAssignedIdentityBasedAccessOrCreate<FluentT>)
WithSystemAssignedIdentityBasedAccessToCurrentResourceGroup(BuiltInRole)

指定 (本地) 标识分配的 Web 应用的系统应具有由 Web 应用所在的资源组上的角色) 描述的给定访问权限 (。 在 Web 应用上运行的应用程序将具有相同的权限 (资源组上的角色) 。

(继承自 IWithSystemAssignedIdentityBasedAccessOrCreate<FluentT>)
WithSystemAssignedIdentityBasedAccessToCurrentResourceGroup(String)

指定 (本地) 标识分配的 Web 应用的系统应具有 web 应用所在资源组上的角色定义) 描述的访问权限 (。 在 Web 应用上运行的应用程序将具有相同的权限 (资源组上的角色) 。

(继承自 IWithSystemAssignedIdentityBasedAccessOrCreate<FluentT>)
WithSystemAssignedManagedServiceIdentity()

指定需要在 Web 应用中启用系统分配的托管服务标识。

(继承自 IWithManagedServiceIdentity<FluentT>)
WithTag(String, String)

将标记添加到资源。

(继承自 IDefinitionWithTags<T>)
WithTags(IDictionary<String,String>)

将资源的标记指定为 {@link Map}。

(继承自 IDefinitionWithTags<T>)
WithThirdPartyHostnameBinding(String, String[])

定义外部购买的域的主机名列表。 主机名必须在手前配置为指向 Web 应用。

(继承自 IWithHostNameBinding<FluentT>)
WithUserAssignedManagedServiceIdentity()

指定需要在 Web 应用中启用用户分配的托管服务标识。

(继承自 IWithManagedServiceIdentity<FluentT>)
WithVirtualApplications(IList<VirtualApplication>)

设置 Web 应用中的虚拟应用程序。

(继承自 IWithSiteConfigs<FluentT>)
WithWebAppAlwaysOn(Boolean)

指定为 Web 应用提供支持的 VM 是否始终处于打开状态。

(继承自 IWithSiteConfigs<FluentT>)
WithWebContainer(WebContainer)

指定 Java Web 容器。

(继承自 IWithWebContainer<FluentT>)
WithWebSocketsEnabled(Boolean)

指定是否启用 Web 套接字。

(继承自 IWithSiteConfigs<FluentT>)

适用于