< Back

New-AzureStorageContext

Sun Jan 12, 2020 4:40 pm

NAME New-AzureStorageContext



SYNTAX

New-AzureStorageContext [-StorageAccountName] <string> [-StorageAccountKey] <string> [-Protocol {Http | Https}]

[-Endpoint <string>] [<CommonParameters>]



New-AzureStorageContext [-StorageAccountName] <string> [-StorageAccountKey] <string> -Environment <string>

[-Protocol {Http | Https}] [<CommonParameters>]



New-AzureStorageContext [-StorageAccountName] <string> -Anonymous [-Protocol {Http | Https}] [-Endpoint <string>]

[<CommonParameters>]



New-AzureStorageContext [-StorageAccountName] <string> -Anonymous -Environment <string> [-Protocol {Http | Https}]

[<CommonParameters>]



New-AzureStorageContext [-StorageAccountName] <string> -SasToken <string> [-Protocol {Http | Https}] [-Endpoint

<string>] [<CommonParameters>]



New-AzureStorageContext [-StorageAccountName] <string> -SasToken <string> -Environment <string>

[<CommonParameters>]



New-AzureStorageContext -ConnectionString <string> [<CommonParameters>]



New-AzureStorageContext -Local [<CommonParameters>]





PARAMETERS

-Anonymous

Use anonymous storage account



Required? true

Position? Named

Accept pipeline input? false

Parameter set name AnonymousAccount, AnonymousAccountEnvironment

Aliases None

Dynamic? false



-ConnectionString <string>

Azure Storage Connection String



Required? true

Position? Named

Accept pipeline input? false

Parameter set name ConnectionString

Aliases None

Dynamic? false



-Endpoint <string>

Azure storage endpoint



Required? false

Position? Named

Accept pipeline input? false

Parameter set name AccountNameAndKey, AnonymousAccount, SasToken

Aliases None

Dynamic? false



-Environment <string>

Azure environment name



Required? true

Position? Named

Accept pipeline input? true (ByPropertyName)

Parameter set name AccountNameAndKeyEnvironment, AnonymousAccountEnvironment,

SasTokenWithAzureEnvironment

Aliases Name, EnvironmentName

Dynamic? false



-Local

Use local development storage account



Required? true

Position? Named

Accept pipeline input? false

Parameter set name LocalDevelopment

Aliases None

Dynamic? false



-Protocol <string>

Protocol specification (HTTP or HTTPS), default is HTTPS



Required? false

Position? Named

Accept pipeline input? false

Parameter set name AccountNameAndKey, AccountNameAndKeyEnvironment, AnonymousAccount,

AnonymousAccountEnvironment, SasToken

Aliases None

Dynamic? false



-SasToken <string>

Azure Storage SAS Token



Required? true

Position? Named

Accept pipeline input? false

Parameter set name SasToken, SasTokenWithAzureEnvironment

Aliases None

Dynamic? false



-StorageAccountKey <string>

Azure Storage Account Key



Required? true

Position? 1

Accept pipeline input? false

Parameter set name AccountNameAndKey, AccountNameAndKeyEnvironment

Aliases None

Dynamic? false



-StorageAccountName <string>

Azure Storage Account Name



Required? true

Position? 0

Accept pipeline input? false

Parameter set name AccountNameAndKey, AccountNameAndKeyEnvironment, AnonymousAccount,

AnonymousAccountEnvironment, SasToken, SasTokenWithAzureEnvironment

Aliases None

Dynamic? 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

System.String





OUTPUTS

Microsoft.WindowsAzure.Commands.Storage.AzureStorageContext





ALIASES

None





REMARKS

None