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
 

Set-AzureStorageFileContent

Set-AzureStorageFileContent

microsoft.windowsazure.commands.storage.dll

Synopsis

Upload the specified file to azure.

Syntax

Set-AzureStorageFileContent [-ShareName] [-Source] [-Path] [-PassThru] [-Force] [-Context] [-ServerTimeoutPerRequest] [-ClientTimeoutPerRequest] [-ConcurrentTaskCount] [-WhatIf] [-Confirm] [<CommonParameters>]

Set-AzureStorageFileContent [-Share] [-Source] [-Path] [-PassThru] [-Force] [-ServerTimeoutPerRequest] [-ClientTimeoutPerRequest] [-ConcurrentTaskCount] [-WhatIf] [-Confirm] [<CommonParameters>]

Set-AzureStorageFileContent [-Directory] [-Source] [-Path] [-PassThru] [-Force] [-ServerTimeoutPerRequest] [-ClientTimeoutPerRequest] [-ConcurrentTaskCount] [-WhatIf] [-Confirm] [<CommonParameters>]

Set-AzureStorageFileContent [-Source] [-Path] [-PassThru] [-Force] [-Context] [-ServerTimeoutPerRequest] [-ClientTimeoutPerRequest] [-ConcurrentTaskCount] [-WhatIf] [-Confirm] [<CommonParameters>]

Set-AzureStorageFileContent [-Source] [-Path] [-PassThru] [-Force] [-Context] [-ServerTimeoutPerRequest] [-ClientTimeoutPerRequest] [-ConcurrentTaskCount] [-WhatIf] [-Confirm] [<CommonParameters>]

Detailed Description

Upload the specified file to azure.

Parameters

-ShareName <String>

The file share name

Aliases

None

Required?

true

Position

0

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Source <String>

The source path of the file to upload

Aliases

None

Required?

true

Position

1

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Path <String>

The destination file path to upload the local file

Aliases

None

Required?

false

Position

2

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-PassThru <SwitchParameter>

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Force <SwitchParameter>

If this parameter is set, it will overwrite the azure storage file when there is name conflict.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Context <AzureStorageContext>

Azure Storage Context. You can create it by New-AzureStorageContext cmdlet.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

true (ByValue)

Accept wildcard characters?

false

-ServerTimeoutPerRequest <Nullable`1[Int32]>

Server side timeout value for the request.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-ClientTimeoutPerRequest <Nullable`1[Int32]>

Client side timeout value for the request.

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-ConcurrentTaskCount <Nullable`1[Int32]>

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-WhatIf <SwitchParameter>

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Confirm <SwitchParameter>

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Share <CloudFileShare>

The file share object

Aliases

None

Required?

true

Position

0

Default value

None

Accept pipeline input?

true (ByValue)

Accept wildcard characters?

false

-Directory <CloudFileDirectory>

The destination directory object to upload the file

Aliases

None

Required?

true

Position

0

Default value

None

Accept pipeline input?

true (ByValue)

Accept wildcard characters?

false

-ClientRequestId <string>

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-PipelineVariable <string>

Aliases

None

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

-------------------------- Example 1 --------------------------

This example uploads the samplefile file to the path sampledir/samplefile in the sample file share.

PS C:\> Set-AzureStorageFileContent –ShareName sample –Source samplefile –FilePath sampledir/samplefile

Remove-AzureStorageFileDirectory
New-AzureStorageFileDirectory
Get-AzureStorageFileContent
Set-AzureStorageFileContent