Azure-Samples / jmeter-aci-terraform

Scalable cloud load/stress testing pipeline solution with Apache JMeter and Terraform to dynamically provision and destroy the required infrastructure on Azure.
MIT License
119 stars 99 forks source link

Pipeline step SETUP: Transfer JMeter Files to Storage Account error- Error: unknown flag: --source #71

Closed eschrader closed 2 years ago

eschrader commented 2 years ago

Running the pipeline and getting this error on the AZCopy step, pipelines/azure-pipelines.load-test.yml Line 62 `- script: | azcopy \ --source $(JMETER_DIRECTORY_INPUT) \ --destination $(terraform output storage_file_share_url) \ --dest-key $(terraform output storage_account_key) \ --recursive workingDirectory: ./terraform displayName: 'SETUP: Transfer JMeter Files to Storage Account'`

And the error: ` jobs Sub-commands related to managing jobs list List the entities in a given resource load Sub-commands related to transferring data in specific formats login Log in to Azure Active Directory (AD) to access Azure Storage resources. logout Log out to terminate access to Azure Storage resources. make Create a container or file share. remove Delete blobs or files from an Azure storage account sync Replicate source to the destination location

Flags: --cap-mbps float Caps the transfer rate, in megabits per second. Moment-by-moment throughput might vary slightly from the cap. If this option is set to zero, or it is omitted, the throughput isn't capped. -h, --help help for azcopy --output-type string Format of the command's output. The choices include: text, json. The default value is 'text'. (default "text") --trusted-microsoft-suffixes string Specifies additional domain suffixes where Azure Active Directory login tokens may be sent. The default is '.core.windows.net;.core.chinacloudapi.cn;.core.cloudapi.de;.core.usgovcloudapi.net;*.storage.azure.net'. Any listed here are added to the default. For security, you should only put Microsoft Azure domains here. Separate multiple entries with semi-colons. -v, --version version for azcopy

py [command] --help" for more information about a command.

unknown flag: --source

[error]Bash exited with code '1'.

Finishing: SETUP: Transfer JMeter Files to Storage Account Bash exited with code '1'. `

eschrader commented 2 years ago

Fixed it, just updated my pipeline with the txt file in this other issue https://github.com/Azure-Samples/jmeter-aci-terraform/issues/58 , deleted my jmeter resource group, re-ran the pipeline and got past that step. Next issue is some other image registry credentials but at least past the first part.

eschrader commented 2 years ago

Password issue was due to not having admin user enabled on the ACR I created

on main.tf line 75, in resource "azurerm_container_group" "jmeter_workers": 75: resource "azurerm_container_group" "jmeter_workers" {

Error: expected "image_registry_credential.0.password" to not be an empty string, got

on main.tf line 75, in resource "azurerm_container_group" "jmeter_workers": 75: resource "azurerm_container_group" "jmeter_workers" {