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

WebAppBase.DefinitionStages.WithAppSettings<FluentT> Interface

Type Parameters

FluentT

the type of the resource

public interface WithAppSettings

A web app definition stage allowing app settings to be set.

Method Summary

Modifier and Type Method and Description
WebAppBase.DefinitionStages.WithCreate<FluentT> withAppSetting(String key, String value)

Adds an app setting to the web app.

WebAppBase.DefinitionStages.WithCreate<FluentT> withAppSettings(Map<String, String> settings)

Specifies the app settings for the web app as a Map.

WebAppBase.DefinitionStages.WithCreate<FluentT> withStickyAppSetting(String key, String value)

Adds an app setting to the web app. This app setting will be swapped as well after a deployment slot swap.

WebAppBase.DefinitionStages.WithCreate<FluentT> withStickyAppSettings(Map<String, String> settings)

Specifies the app settings for the web app as a Map. These app settings will be swapped as well after a deployment slot swap.

Method Details

withAppSetting

public WithCreate withAppSetting(String key, String value)

Adds an app setting to the web app.

Parameters:

key - the key for the app setting
value - the value for the app setting

Returns:

the next stage of the definition

withAppSettings

public WithCreate withAppSettings(Map settings)

Specifies the app settings for the web app as a Map.

Parameters:

settings - a Map of app settings

Returns:

the next stage of the definition

withStickyAppSetting

public WithCreate withStickyAppSetting(String key, String value)

Adds an app setting to the web app. This app setting will be swapped as well after a deployment slot swap.

Parameters:

key - the key for the app setting
value - the value for the app setting

Returns:

the next stage of the definition

withStickyAppSettings

public WithCreate withStickyAppSettings(Map settings)

Specifies the app settings for the web app as a Map. These app settings will be swapped as well after a deployment slot swap.

Parameters:

settings - a Map of app settings

Returns:

the next stage of the definition

Applies to