你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
New-AzStorageMoverAzStorageContainerEndpoint
Creates an AzStorageContainer endpoint resource, which represents a data transfer source or destination.
Syntax
New-AzStorageMoverAzStorageContainerEndpoint
-Name <String>
-ResourceGroupName <String>
-StorageMoverName <String>
[-SubscriptionId <String>]
-BlobContainerName <String>
-StorageAccountResourceId <String>
[-Description <String>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Creates an AzStorageContainer endpoint resource, which represents a data transfer source or destination.
Examples
Example 1: Create a AzStorageContainer endpoint
New-AzStorageMoverAzStorageContainerEndpoint -Name myEndpoint -ResourceGroupName myResourceGroup -BlobContainerName myContainer -StorageMoverName myStorageMover -StorageAccountResourceId myAccountResourceId
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.StorageMover/storageMovers/myStorageMover/endpoints/myEndpoint
Name : myEndpoint
Property : {
"endpointType": "AzureStorageBlobContainer",
"provisioningState": "Succeeded",
"storageAccountResourceId": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myStorageMover/providers/Microsoft.Storage/storageAccounts/myStorageAccount",
"blobContainerName": "myContainer"
}
SystemDataCreatedAt : 7/18/2022 7:28:29 AM
SystemDataCreatedBy : xxxxxxxxxx
SystemDataCreatedByType : User
SystemDataLastModifiedAt : 7/18/2022 7:28:29 AM
SystemDataLastModifiedBy : xxxxxxxxxxx
SystemDataLastModifiedByType : User
Type : microsoft.storagemover/storagemovers/endpoints
This command creates a AzStorageContainer endpoint for a Storage mover.
Parameters
-BlobContainerName
The name of the Storage blob container that is the target destination.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Type: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Description
A description for the endpoint.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
The name of the endpoint resource.
Type: | String |
Aliases: | EndpointName |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
The name of the resource group. The name is case insensitive.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StorageAccountResourceId
The Azure Resource ID of the storage account that is the target destination.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StorageMoverName
The name of the Storage Mover resource.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SubscriptionId
The ID of the target subscription.
Type: | String |
Position: | Named |
Default value: | (Get-AzContext).Subscription.Id |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |