I have created a slack channel using gcloud cli.
However, the channel is not visible in the alerts section of the notification. I have also tried using the below command, this command only works when I attach a single email notification channel but giving an invalid argument when I update it with two or more arguments or single argument with slack channel Id.
gcloud beta billing budgets update budget-id-abc --billing-account=billing-value --all-updates-rule-monitoring-notification-channels="projects/projectid/notificationChannels/email_channel1,projects/projectid/notificationChannels/email_channel2,projects/projectid/notificationChannels/slack_channel_id"
gcloud beta billing budgets update budget-id-abc --billing-account=billing-value --all-updates-rule-monitoring-notification-channels="projects/projectid/notificationChannels/slack_channel_id"
It gives the error
ERROR: (gcloud.beta.billing.budgets.update) INVALID_ARGUMENT: Request contains an invalid argument.
But it works with Single Email Channel
gcloud beta billing budgets update budget-id-abc --billing-account=billing-value --all-updates-rule-monitoring-notification-channels="projects/projectid/notificationChannels/email_channel1"
Looking forward to the community’s help!
Thanks and Regards,
Hadiqa Khan