New-AzStorageActionTaskPreviewBlobPropertiesObject
Create an in-memory object for StorageTaskPreviewBlobProperties.
Syntax
Default (Default)
New-AzStorageActionTaskPreviewBlobPropertiesObject
[-Metadata <IStorageTaskPreviewKeyValueProperties[]>]
[-Name <String>]
[-Property <IStorageTaskPreviewKeyValueProperties[]>]
[-Tag <IStorageTaskPreviewKeyValueProperties[]>]
[<CommonParameters>]
Description
Create an in-memory object for StorageTaskPreviewBlobProperties.
Examples
Example 1: Create blob property object
$creationTime = New-AzStorageActionTaskPreviewKeyValuePropertiesObject -Key "Creation-Time" -Value "Wed, 07 Jun 2023 05:23:29 GMT"
$metadata = New-AzStorageActionTaskPreviewKeyValuePropertiesObject -Key "mKey1" -Value "mValue1"
$tags = New-AzStorageActionTaskPreviewKeyValuePropertiesObject -Key "tKey1" -Value "tValue1"
New-AzStorageActionTaskPreviewBlobPropertiesObject -Name 'folder1/file1.txt' -Metadata $metadata -Property $creationTime -Tag $tags
MatchedBlock :
Metadata : {{
"key": "mKey1",
"value": "mValue1"
}}
Name : folder1/file1.txt
Property : {{
"key": "Creation-Time",
"value": "Wed, 07 Jun 2023 05:23:29 GMT"
}}
Tag : {{
"key": "tKey1",
"value": "tValue1"
}}
This command create a blob property object.
Parameters
-Metadata
metadata key value pairs to be tested for a match against the provided condition.
Parameter properties
| Type: | |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Name
Name of test blob.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Property
properties key value pairs to be tested for a match against the provided condition.
Parameter properties
| Type: | |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Tag
tags key value pairs to be tested for a match against the provided condition.
Parameter properties
| Type: | |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.