< Back

Set-AzureRmWebAppSlotConfigName

Tue Jan 29, 2019 10:12 pm

NAME Set-AzureRmWebAppSlotConfigName



SYNOPSIS

Set Web App Slot Config names





SYNTAX

Set-AzureRmWebAppSlotConfigName [-ResourceGroupName] <String> [-Name] <String> [[-AppSettingNames] <String[]>] [[-ConnectionStringNames]

<String[]>] [[-RemoveAllAppSettingNames]] [[-RemoveAllConnectionStringNames]] [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]



Set-AzureRmWebAppSlotConfigName [-WebApp] <Site> [[-AppSettingNames] <String[]>] [[-ConnectionStringNames] <String[]>]

[[-RemoveAllAppSettingNames]] [[-RemoveAllConnectionStringNames]] [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]





DESCRIPTION

The Set-AzureRmWebAppSlotConfigName cmdlet marks App Settings and Connection Strings as slot settings





PARAMETERS

-AppSettingNames <String[]>

App Settings Names String Array



Required? false

Position? 2

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ConnectionStringNames <String[]>

Connection String Names String Array



Required? false

Position? 3

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

WebApp Name



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-RemoveAllAppSettingNames [<SwitchParameter>]

Remove All App Setting Names Option



Required? false

Position? 4

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-RemoveAllConnectionStringNames [<SwitchParameter>]

Remove All Connection String Names Option



Required? false

Position? 5

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-ResourceGroupName <String>

Resource Group Name



Required? true

Position? 0

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-WebApp <Site>

WebApp Object



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

Site

Parameter 'WebApp' accepts value of type 'Site' from the pipeline





OUTPUTS



NOTES









1:



PS C:\\> Set-AzureRmWebAppSlotConfigName -ResourceGroupName "Default-Web-WestUS" -Name "ContosoWebApp" -Slot "Slot001" -RemoveAllAppSettingNames

-RemoveAllConnectionStringNames



This command removes all app settings and connection strings for Web App ContosoWebApp associated with the resource group Default-Web-WestUS







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... configname