Skip to content

Incorrect source path in Shard Blob Storage Sample deploy script #1

@jagratimodi

Description

@jagratimodi

Issue: In the below command to call PS Script which is used to Build and Publish, & Deploy the Blob Sourcerer, the source path parameter is passed incorrectly. There is no such path "./src/AzReplicate.Sample/" that exists in the repository.

./samples/AzReplicate.Sample.AzBlobSourcerer/Deploy-Sample-AzBlob-Sourcerer.ps1 `
    -SubscriptionId $subscriptionId `
    -Region $Region `
    -ResourceGroup $resourceGroup `
    -SourcePath "./src/AzReplicate.Sample/" `
    -SourceStorageAccountResourceGroup "sourcerg" <# source storage account resource group for the objects #> `
    -SourceStorageAccountName $storageAccount <# source storage account for the objects #> `
    -DestinationStorageAccountNames "dest1,dest2" <# Name of the destination storage accounts comma separated #> `
    -ReplicationQueueAccountName "dest1" <# Name of the queue to use for replication #> `
    -ReplicationQueueName replication <# Name of the queue to use for replication #> `
    -ContainerRegistry $ContainerRegistry <# the ACR that the container was published to #> `
    -AmountOfCoresPerContainer 1 <# the number of cores for the running container #> `
    -AmountOfMemoryPerContainer 1 <# the GB of memory for the running container #>

Even in the Deploy-Sample-AzBlob-Sourcerer.ps1 script, the default source path is set to incorrect, it should be same as "./samples/" as source path.

# Set defaults in case not provided
if ($SourcePath -eq $null -or $SourcePath -eq "") { $SourcePath = "./sample/AzReplicate.Sample/" }

Image reference:

image

Solution: The source path must be changed to "./samples/" like used in other scripts

./samples/AzReplicate.Sample.AzBlobSourcerer/Deploy-Sample-AzBlob-Sourcerer.ps1 `
    -SubscriptionId $subscriptionId `
    -Region $Region `
    -ResourceGroup $resourceGroup `
    -SourcePath "./samples/" `
    -SourceStorageAccountResourceGroup "sourcerg" <# source storage account resource group for the objects #> `
    -SourceStorageAccountName $storageAccount <# source storage account for the objects #> `
    -DestinationStorageAccountNames "dest1,dest2" <# Name of the destination storage accounts comma separated #> `
    -ReplicationQueueAccountName "dest1" <# Name of the queue to use for replication #> `
    -ReplicationQueueName replication <# Name of the queue to use for replication #> `
    -ContainerRegistry $ContainerRegistry <# the ACR that the container was published to #> `
    -AmountOfCoresPerContainer 1 <# the number of cores for the running container #> `
    -AmountOfMemoryPerContainer 1 <# the GB of memory for the running container #>

And in the Deploy-Sample-AzBlob-Sourcerer.ps1 script it should be -

# Set defaults in case not provided
if ($SourcePath -eq $null -or $SourcePath -eq "") { $SourcePath = "./samples/" }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions