Export (0) Print
Expand All
Expand Minimize

New-AzureWebsite

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

New-AzureWebsite

Create a new website to run in Azure.

Syntax

Parameter Set: Default
New-AzureWebsite [[-Name] <String> ] [[-Location] <String> ] [[-Hostname] <String> ] [[-PublishingUsername] <String> ] [-Git] [-GitHub] [-GithubCredentials <PSCredential> ] [-GithubRepository <String> ] [-Slot <String> ] [ <CommonParameters>]




Detailed Description

This topic describes the cmdlet in the 0.8.10 version of the Microsoft Azure PowerShell module. To get the version of the module you're using, in the Azure PowerShell console, type (Get-Module -Name Azure).Version.

The cmdlet creates a new website to run in Azure and prepares for deployment through Github.

Parameters

-Git

Sets up a local Git repository and links it to the website. If specified, this parameter sets up a Git repository in the local directory and add a remote repository named 'azure' that links to the website in Azure.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-GitHub

If enabled, this parameter links the new website to an existing Github repository. Commits to the Giuthub repository are pushed to the website in Azure.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-GithubCredentials<PSCredential>

Specifies the user name and password credentials to connect to Github.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-GithubRepository<String>

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


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Hostname<String>

Specifies an alternative host name for the new website.


Aliases

none

Required?

false

Position?

3

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Location<String>

Specifies the location of the data center where you want to deploy the website.


Aliases

none

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Name<String>

Specifies a name for the website.


Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-PublishingUsername<String>

The user name you have specified in the Azure Portal for Git deployment.


Aliases

none

Required?

false

Position?

4

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Slot<String>

Specifies a slot name for the website.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see  about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Create a new website with Git

This example creates a new website in Azure and a local Git repository to use for deploying files to the new website.


PS C:\> New-AzureWebsite mySite -Git

Create website integrated with Github

This example creates a new website linked to a Github repository named myaccount/myrepo. Commits to the Github repository are pushed to the website in Azure.


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

Related topics

Show:
© 2015 Microsoft