Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

New-AzureWebsite

New-AzureWebsite

microsoft.windowsazure.commands.dll

Synopsis

Create an Azure website

Syntax

New-AzureWebsite [-Location] [-Hostname] [-PublishingUsername] [-Git] [-GitHub] [-GithubCredentials] [-GithubRepository] [-Name] [-Slot] [<CommonParameters>]

Detailed Description

Create an Azure website and prepare for website deployment via Git

Parameters

-Location <String>

The data center where the website should be deployed

Aliases

None

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.

Aliases

None

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

Aliases

None

Required?

false

Position

4

Default value

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-Git <SwitchParameter>

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.

Aliases

None

Required?

false

Position

named

Default value

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-GitHub <SwitchParameter>

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

Aliases

None

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

Aliases

None

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

Aliases

None

Required?

false

Position

named

Default value

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-Name <String>

The name of the website

Aliases

None

Required?

false

Position

1

Default value

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-Slot <>

The slot name

Aliases

None

Required?

false

Position

1

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

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

C:\PS>

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

New-AzureWebsite mySite -Git

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

C:\PS>

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

New-AzureWebsite mysite -Github -GithubRepository myaccount/myrepo