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

WebAppBase.UpdateStages.WithAppSettings<FluentT> Interface

Type Parameters

FluentT

the type of the resource

public interface WithAppSettings

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

Method Summary

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

Adds an app setting to the web app.

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

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

WebAppBase.Update<FluentT> withAppSettingStickiness(String key, boolean sticky)

Changes the stickiness of an app setting.

WebAppBase.Update<FluentT> withoutAppSetting(String key)

Removes an app setting from the web app.

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

Adds an app setting to the web app. This app setting will stay at the slot during a swap.

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

Specifies the app settings for the web app as a Map. These app settings will stay at the slot during a swap.

Method Details

withAppSetting

public Update 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 web app update

withAppSettings

public Update 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 web app update

withAppSettingStickiness

public Update withAppSettingStickiness(String key, boolean sticky)

Changes the stickiness of an app setting.

Parameters:

key - the key of the app setting to change stickiness
sticky - true if the app setting sticks to the slot during a swap

Returns:

the next stage of the web app update

withoutAppSetting

public Update withoutAppSetting(String key)

Removes an app setting from the web app.

Parameters:

key - the key of the app setting to remove

Returns:

the next stage of the web app update

withStickyAppSetting

public Update withStickyAppSetting(String key, String value)

Adds an app setting to the web app. This app setting will stay at the slot during a swap.

Parameters:

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

Returns:

the next stage of the web app update

withStickyAppSettings

public Update withStickyAppSettings(Map settings)

Specifies the app settings for the web app as a Map. These app settings will stay at the slot during a swap.

Parameters:

settings - a Map of app settings

Returns:

the next stage of the web app update

Applies to