lakshmi
Intern
Intern
  • UID9281
  • Fans0
  • Follows0
  • Posts1
Reads:245Replies:1

aliyun cli command issue - kindly help

Created#
More Posted time:May 4, 2020 14:02 PM
I am getting autoscaling groupid value in the variable name : asgId
When I pass the same in aliyun command, I am getting the below error.

ubuntu@ip-172-31-7-159:~$ echo $asgId
"asg-a2dh6wqg2dawkx6oi4y0"



Error when passed as variable:

ubuntu@ip-172-31-7-159:~$ aliyun ess EnableScalingGroup --ScalingGroupId $asgId
ERROR: SDK.ServerError
ErrorCode: InvalidScalingGroupId.NotFound
Recommend:
RequestId: 37F3EDD4-E2B7-4FF3-A38D-76970E53B478
Message: The specified scaling group does not exist.

ubuntu@ip-172-31-7-159:~$ echo "aliyun ess EnableScalingGroup --ScalingGroupId $asgId"
aliyun ess EnableScalingGroup --ScalingGroupId "asg-a2dh6wqg2dawkx6oi4y0"



Works fine if the same is applied directly:

ubuntu@ip-172-31-7-159:~$ aliyun ess EnableScalingGroup --ScalingGroupId "asg-a2dh6wqg2dawkx6oi4y0"
{
"RequestId": "8D843969-BAC5-4F64-A599-526FD72EB52C"
}

Cloudy
Administrator
Administrator
  • UID63
  • Fans17
  • Follows1
  • Posts144
1st Reply#
Posted time:May 7, 2020 9:54 AM
Dear lakshmi,
Please create a ticket in your Alibaba Cloud console and our postsales team will help you with that. You can refer to the below link for the instruction of creating ticket: https://www.alibabacloud.com/help/doc-detail/47605.htm#ticket
Thank you.
Guest