< Back
Get-CAzureRMStorageServicesAuthorizationHeader
Post
NAME Get-CAzureRMStorageServicesAuthorizationHeader
SYNOPSIS
This command gets you authentication headers for the given storage account
SYNTAX
Get-CAzureRMStorageServicesAuthorizationHeader [[-StorageAccountName] <String>] [[-storageAccountKey] <String>]
[[-Url] <String>] [[-Method] {Default | Get | Head | Post | Put | Delete | Trace | Options | Merge | Patch}]
[[-xmsversion] <String>] [<CommonParameters>]
DESCRIPTION
This command gets you authentication headers for the given storage account
PARAMETERS
-StorageAccountName <String>
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-storageAccountKey <String>
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Url <String>
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Method
Required? false
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-xmsversion <String>
Required? false
Position? 5
Default value 2018-03-28
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
1. StorageAccountName
2. StorageAccountKey
3. Url
4. WebRequestMethod
OUTPUTS
Azure Storage Service's authrization headers in hashtable
NOTES
https://docs.microsoft.com/de-de/azure/ ... t-api-auth
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$StorageAccountName="abcdatastore"
PS C:\\>$url = "https://$storageAccountName.blob.core.windows.net/?comp=list"
PS C:\\>$key="jYgN08+O4wDX5aWc3rdqyFgtYYKXf7+vv3jFI+bo8m3SAGAR143JYOWXT1ce7+YdikuJlIdprNWhUkqhKVEJnQ=="
PS C:\\>Get-CAzureRMStorageServicesAuthorizationHeader -StorageAccountName $StorageAccountName $storageAccountKey
$key -Url $Url -Method GET
RELATED LINKS
SYNOPSIS
This command gets you authentication headers for the given storage account
SYNTAX
Get-CAzureRMStorageServicesAuthorizationHeader [[-StorageAccountName] <String>] [[-storageAccountKey] <String>]
[[-Url] <String>] [[-Method] {Default | Get | Head | Post | Put | Delete | Trace | Options | Merge | Patch}]
[[-xmsversion] <String>] [<CommonParameters>]
DESCRIPTION
This command gets you authentication headers for the given storage account
PARAMETERS
-StorageAccountName <String>
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-storageAccountKey <String>
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Url <String>
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Method
Required? false
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-xmsversion <String>
Required? false
Position? 5
Default value 2018-03-28
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
1. StorageAccountName
2. StorageAccountKey
3. Url
4. WebRequestMethod
OUTPUTS
Azure Storage Service's authrization headers in hashtable
NOTES
https://docs.microsoft.com/de-de/azure/ ... t-api-auth
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$StorageAccountName="abcdatastore"
PS C:\\>$url = "https://$storageAccountName.blob.core.windows.net/?comp=list"
PS C:\\>$key="jYgN08+O4wDX5aWc3rdqyFgtYYKXf7+vv3jFI+bo8m3SAGAR143JYOWXT1ce7+YdikuJlIdprNWhUkqhKVEJnQ=="
PS C:\\>Get-CAzureRMStorageServicesAuthorizationHeader -StorageAccountName $StorageAccountName $storageAccountKey
$key -Url $Url -Method GET
RELATED LINKS