New-AzStorageAccountManagementPolicyBlobIndexMatchObject
Creates a ManagementPolicy BlobIndexMatch object, which can be used in New-AzStorageAccountManagementPolicyFilter.
Syntax
New-AzStorageAccountManagementPolicyBlobIndexMatchObject
[-Name <String>]
[-Value <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The New-AzStorageAccountManagementPolicyBlobIndexMatchObject cmdlet creates a ManagementPolicy BlobIndexMatch object, which can be used in New-AzStorageAccountManagementPolicyFilter.
Examples
Example 1: Creates 2 ManagementPolicy BlobIndexMatch object3, then add them to a management policy rule filter
$blobindexmatch1 = New-AzStorageAccountManagementPolicyBlobIndexMatchObject -Name "tag1" -Value "value1"
$blobindexmatch1
Name Op Value
---- -- -----
tag1 == value1
$blobindexmatch2 = New-AzStorageAccountManagementPolicyBlobIndexMatchObject -Name "tag2" -Value "value2"
New-AzStorageAccountManagementPolicyFilter -PrefixMatch prefix1,prefix2 -BlobType blockBlob `
-BlobIndexMatch $blobindexmatch1,$blobindexmatch2
PrefixMatch BlobTypes BlobIndexMatch
----------- --------- --------------
{prefix1, prefix2} {blockBlob} {tag1, tag2}
This command creates 2 ManagementPolicy BlobIndexMatch objects, then add themto a management policy rule filter.
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Gets or sets this is the filter tag name, it can have 1 - 128 characters
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Value
Gets or sets this is the filter tag value field used for tag based filtering, it can have 0 - 256 characters.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None