-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
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:
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
Labels
No labels
