Set-AzWebAppSlotConfigName
Set Web App Slot Config names
Syntax
S1
Set-AzWebAppSlotConfigName
[[-AppSettingNames] <String[]>]
[[-ConnectionStringNames] <String[]>]
[-ResourceGroupName] <String>
[-Name] <String>
[-RemoveAllAppSettingNames]
[-RemoveAllConnectionStringNames]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
S2
Set-AzWebAppSlotConfigName
[[-AppSettingNames] <String[]>]
[[-ConnectionStringNames] <String[]>]
[-WebApp] <PSSite>
[-RemoveAllAppSettingNames]
[-RemoveAllConnectionStringNames]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The Set-AzWebAppSlotConfigName cmdlet marks App Settings and Connection Strings as slot settings
Examples
Example 1
Set-AzWebAppSlotConfigName -ResourceGroupName "Default-Web-WestUS" -Name "ContosoWebApp" -RemoveAllAppSettingNames -RemoveAllConnectionStringNames
This command removes all app settings and connection strings for Web App ContosoWebApp associated with the resource group Default-Web-WestUS
Example 2
Set Web App Slot Config names. (autogenerated)
Set-AzWebAppSlotConfigName -AppSettingNames <String[]> -Name 'ContosoWebApp' -ResourceGroupName 'Default-Web-WestUS'
Parameters
-AppSettingNames
App Settings Names String Array
Parameter properties
Type: String [ ]
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: 2
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
-ConnectionStringNames
Connection String Names String Array
Parameter properties
Type: String [ ]
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: 3
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with azure.
Parameter properties
Type: IAzureContextContainer
Default value: None
Supports wildcards: False
DontShow: False
Aliases: AzContext, AzureRmContext, AzureCredential
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-Name
WebApp Name
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
S1
Position: 1
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
-RemoveAllAppSettingNames
Remove All App Setting Names Option
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: 4
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-RemoveAllConnectionStringNames
Remove All Connection String Names Option
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: 5
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-ResourceGroupName
Resource Group Name
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
S1
Position: 0
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-WebApp
WebApp Object
Parameter properties
Type: PSSite
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
S2
Position: 0
Mandatory: True
Value from pipeline: True
Value from pipeline by property name: False
Value from remaining arguments: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters .
Outputs