Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConvertFrom-Json returning null??? #11267

Closed
jasonpanggit opened this issue Oct 14, 2024 · 4 comments
Closed

ConvertFrom-Json returning null??? #11267

jasonpanggit opened this issue Oct 14, 2024 · 4 comments
Assignees
Labels
Connector Connector specialty review needed

Comments

@jasonpanggit
Copy link

jasonpanggit commented Oct 14, 2024

Hitting empty response when executing ConfigCloudWatchDataConnector.ps1. It seems like everytime we used ConvertFrom-Json, the response is empty. The following is the log generated.

-> AwsResourceCreator.ps1: New-SQSQueue
"10/8/2024 4:40 PM","Creating SQS queue:","Information"
"10/8/2024 4:41 PM","Using Sqs name: aas-azure-sentinel-sqs","Information"
"10/8/2024 4:41 PM","Executing: aws sqs create-queue --queue-name aas-azure-sentinel-sqs --tags {""Operator"": ""Microsoft_Sentinel_Automation_Script""} 2>&1","Verbose"
"10/8/2024 4:41 PM","https://sqs.ap-southeast-1.amazonaws.com/xxxxxxxxxx/aas-azure-sentinel-sqs","Verbose"

-> ConfigCloudWatchDataConnector.ps1
"10/8/2024 4:41 PM","Executing: ((aws sqs get-queue-url --queue-name aas-azure-sentinel-sqs) | ConvertFrom-Json).QueueUrl","Verbose"
--> queue-url variable is empty - need to troubleshoot here
"10/8/2024 4:41 PM","Executing: ((aws sqs get-queue-attributes --queue-url --attribute-names QueueArn )| ConvertFrom-Json).Attributes.QueueArn","Verbose"
"10/8/2024 4:41 PM","sqsUrl: sqsArn: ","Verbose"
--> why is sqsUrl and sqsArn emtpy??? - need to troubleshoot here

-> AwsPoliciesUpdate.ps1: Update-SQSPolicy
"10/8/2024 4:41 PM","Updating the SQS policy to allow S3 notifications, and ARN to read/delete/change visibility of SQS messages and get queue url","Information"
"10/8/2024 4:41 PM","Changes S3: SQS SendMessage permission to 'aas-azure-sentinel' s3 bucket","Information"
"10/8/2024 4:41 PM","Changes Role ARN: SQS ChangeMessageVisibility, DeleteMessage, ReceiveMessage and GetQueueUrl permissions to 'OIDC_azure_sentinel_assume_role' rule","Information"
"10/8/2024 4:41 PM","Executing: aws sqs get-queue-attributes --queue-url --attribute-names Policy","Verbose"
--> queue-url variable is empty
"10/8/2024 4:41 PM","No results returned from: aws sqs get-queue-attributes --queue-url --attribute-names Policy ","Verbose"

@v-sudkharat v-sudkharat added the Connector Connector specialty review needed label Oct 14, 2024
@v-sudkharat
Copy link
Contributor

Hi @jasonpanggit, Thanks for flagging this issue, we will investigate this issue and get back to you with some updates. Thanks!

@v-sudkharat
Copy link
Contributor

Hi @jasonpanggit, Coud you please share more details about issue, repro steps and if possible, please share the issue screenshots with us. So it will help us to investigate on this issue. Thanks!

@v-sudkharat
Copy link
Contributor

Hi @jasonpanggit, Waiting for your response. Thanks!

@v-sudkharat
Copy link
Contributor

Hi @jasonpanggit, since we have not received a response in the last 5 days, we are closing your issue as per our standard operating procedures. If you still need support for this issue, feel free to re-open at any time. Thank you for your co-operation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Connector Connector specialty review needed
Projects
None yet
Development

No branches or pull requests

3 participants