< Back

New-AzureRmWebAppDatabaseBackupSetting

Tue Jan 29, 2019 10:12 pm

NAME New-AzureRmWebAppDatabaseBackupSetting



SYNOPSIS







SYNTAX

New-AzureRmWebAppDatabaseBackupSetting [-Name] <String> [-DatabaseType] <String> [-ConnectionString] <String> [[-ConnectionStringName] <String>]

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





DESCRIPTION

The New-AzureRmWebAppDatabaseBackupSetting cmdlet creates a new Azure Web App Backup setting.





PARAMETERS

-ConnectionString <String>

Connection String



Required? true

Position? 2

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ConnectionStringName <String>

Connection String Name



Required? false

Position? 3

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-DatabaseType <String>

Database Type ( e.g. "SqlAzure" or "MySql" )



Required? true

Position? 1

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? 0

Default value None

Accept pipeline input? True (ByPropertyName)

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

None

This cmdlet does not accept any input.





OUTPUTS

Microsoft.Azure.Management.WebSites.Models.DatabaseBackupSetting







NOTES









1:



PS C:\\> New-AzureRmWebAppDatabaseBackupSetting -ResourceGroupName "Default-Web-WestUS" -Name "ContosoWebApp" -ConnectionString

"MyConnectionString" -DatabaseType "SqlAzure"



Creates a database backup setting (connection string) of type SqlAzure for the specified app ContosoWebApp that is within resource group

Default-Web-WestUS.







RELATED LINKS

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