< Back

New-AzureWebsite

Wed Jan 30, 2019 5:49 pm

NAME New-AzureWebsite



SYNOPSIS

Create an Azure website





SYNTAX

New-AzureWebsite [[-Location] <String>] [[-Hostname] <String>] [[-PublishingUsername] <String>] [-Git] [-GitHub] [-GithubCredentials <PSCredential>]

[-GithubRepository <String>] [[-Name] <String>] [[-Slot] <String>] [<CommonParameters>]





DESCRIPTION

Create an Azure website and prepare for website deployment via Git





PARAMETERS

-Location <String>

The data center where the website should be deployed



Required? false

Position? 2

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Hostname <String>

An alternative hostname for the new azure website.



Required? false

Position? 3

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-PublishingUsername <String>

The username you have specified in the Microsoft Azure Portal for Git deployment



Required? false

Position? 4

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Git

Set up a local git repository and link it to the website. If specified, this will set up a git repository in the local directory and add a remote

named 'azure' that links to the website in Microsoft Azure.



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-GitHub

If enabled, link this website with an existing Github repository. Commits to the Giuthub repository will be pushed to the website in Microsoft

Azure.



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-GithubCredentials <PSCredential>

The username and password credentials used to connect to Github



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-GithubRepository <String>

The full name of the Github repository to link to this website. For example, myaccount/myrepo



Required? false

Position? named

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Name <String>

The name of the website



Required? false

Position? 1

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Slot <String>

The slot name



Required? false

Position? 1

Default value

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 (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS









OUTPUTS









NOTES







Keywords: azure, azuresm, servicemanagement, management, service, utilities





-------------- Create New Website With Git --------------



C:\\PS>New-AzureWebsite mySite -Git



Create a new azure website and a local git repository to use for deploying files to the new website









-------------- Create website with Github integration --------------



C:\\PS>New-AzureWebsite mysite -Github -GithubRepository myaccount/myrepo



Create a new website linked to the Github repository myaccount/myrepo. Commits to the Github repository will be pushed to the website in Microsoft Azure











RELATED LINKS