你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

New-AzStorageBlobDestinationObject

Create an in-memory object for StorageBlobDestination.

Syntax

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.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

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

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-StorageAccountResourceId

The resource ID of the storage account.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

StorageBlobDestination