Exportera (0) Skriv ut
Visa allt
EN
Det här innehållet finns inte tillgängligt på ditt språk men här finns den engelska versionen,

Set-AzureWebsite

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

Set-AzureWebsite

Configures a website running in Windows Azure.

 

Parameter Set: Default
Set-AzureWebsite [[-Name] <String> ] [[-SiteWithConfig] <SiteWithConfig> ] [-AppSettings <Hashtable> ] [-ConnectionStrings <ConnStringPropertyBag> ] [-DefaultDocuments <String[]> ] [-DetailedErrorLoggingEnabled <Boolean> ] [-HandlerMappings <HandlerMapping[]> ] [-HostNames <String[]> ] [-HttpLoggingEnabled <Boolean> ] [-Metadata <List<NameValuePair>> ] [-NetFrameworkVersion <String> ] [-NumberOfWorkers <Int32> ] [-PassThru] [-PhpVersion <String> ] [-RequestTracingEnabled <Boolean> ] [ <CommonParameters>]




 

This topic describes the cmdlet in the .6.19 version of the Windows Azure PowerShell module. To find out the version of the module you're using, from the Windows Azure PowerShell console, type (get-module azure).version.

The Set-AzureWebsite cmdlet configures a website running in Windows Azure.

 

-AppSettings<Hashtable>

Specifies the environment variables that will be used by the website.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ConnectionStrings<ConnStringPropertyBag>

Specifies the connection strings used by the website.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-DefaultDocuments<String[]>

Specifies the documents that are automatically displayed when browsing the website.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-DetailedErrorLoggingEnabled<Boolean>

Determines whether detailed IIS errors are logged for the website.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-HandlerMappings<HandlerMapping[]>

Specifies the handler mappings used by the website.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-HostNames<String[]>

Specifies the fully qualified host names that can be used to access the website.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-HttpLoggingEnabled<Boolean>

Determines whether http logging is enabled for the website.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Metadata<List<NameValuePair>>

Specifies the metadata for the website.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Name<String>

Specifies the name of the website. <What’s used if this isn’t specified?>


Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-NetFrameworkVersion<String>

Specifies the version of the .Net Framework required by the website.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-NumberOfWorkers<Int32>

Specifies the number of worker processes running the website.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-PassThru

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-PhpVersion<String>

Specifies the PHP version required by the website.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-RequestTracingEnabled<Boolean>

Determines whether request tracing is enabled for the website.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-SiteWithConfig<SiteWithConfig>

Specifies the configuration used by the website.


Aliases

none

Required?

false

Position?

2

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.

 

Enable HTTP logging for a website

This example enables HTTP logging.


PS C:\> Set-AzureWebsite -HttpLoggingEnabled 1

Set storage credentials for a website

This example sets storage credentials in a website named myWebsite with environment variables for AZURE_STORAGE_ACCOUNT and AZURE_STORAGE_ACCESS_KEY.


PS C:\> $settings = New-Object Hashtable
$settings[“AZURE_STORAGE_ACCOUNT”= myaccountname
$settings[“AZURE_STORAGE_ACCESS_KEY”] = myaccesskey
Set-AzureWebsite -AppSettings $settings myWebsite

Related topics

Visa:
© 2014 Microsoft