Edit

Share via


New-AzStorageBlobDestinationObject

Create an in-memory object for StorageBlobDestination.

Syntax

Default (Default)

New-AzStorageBlobDestinationObject
    [-ContainerName <String>]
    [-Name <String>]
    [-StorageAccountResourceId <String>]
    [<CommonParameters>]

Description

Create an in-memory object for StorageBlobDestination.

Examples

Example 1: Create storage blob destination object

New-AzStorageBlobDestinationObject -ContainerName "my-logs" -StorageAccountResourceId /subscriptions/da58aca0-2082-4f5a-85ba-27344286c17c/resourceGroups/sa-rg/providers/Microsoft.Storage/storageAccounts/rightregion:westus:sa-name1 -Name storageAccountDestination1
ContainerName Name                       StorageAccountResourceId
------------- ----                       ------------------------
my-logs       storageAccountDestination1 /subscriptions/da58aca0-2082-4f5a-85ba-27344286c17c/resourceGroups/sa-rg/providers/Microsoft.Storage/storageAccounts/rightregion:westus:sa-name1

This command creates a storage blob destination object.

Parameters

-ContainerName

The container name of the Storage 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

-Name

A friendly name for the destination. This name should be unique across all destinations (regardless of type) within the data collection rule.

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

-StorageAccountResourceId

The resource ID of the storage account.

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

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.

Outputs

StorageBlobDestination