< Back

Copy-AzureItem

Sat Jan 18, 2020 4:32 pm

NAME Copy-AzureItem



SYNOPSIS

This function simplifies the process of uploading files to an Azure storage account. In order for this function to

work you

must have already logged into your Azure subscription with Login-AzureAccount. The file uploaded will be called

the file

name as the storage blob.





SYNTAX

Copy-AzureItem [-FilePath] <String> [-ContainerName] <String> [-ResourceGroupName] <String> [-StorageAccountName]

<String> [[-DestinationName] <String>] [[-BlobType] <String>] [<CommonParameters>]





DESCRIPTION





PARAMETERS

-FilePath <String>

The local path of the file(s) you'd like to upload to an Azure storage account container.



Required? true

Position? 1

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-ContainerName <String>

The name of the Azure storage account container the file will be placed in.



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ResourceGroupName <String>

The name of the resource group the storage account is in.



Required? true

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-StorageAccountName <String>

The name of the storage account the container that will hold the file is in.



Required? true

Position? 4

Default value

Accept pipeline input? false

Accept wildcard characters? false



-DestinationName <String>

The name of the file stored as an Azure blob. By default, it will be the same name as as the local file. Use

this parameter

to give it a different name once uploaded.



Required? false

Position? 5

Default value

Accept pipeline input? false

Accept wildcard characters? false



-BlobType <String>

The type of blob you'd like the file to become when it gets uploaded to the storage account. For example, when

uploading VHDs, you should only use Page.



Required? false

Position? 6

Default value Page

Accept pipeline input? false

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





RELATED LINKS