Can't attach slack channel to Budget

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

1 Like

Hello @HadiqaKhan ,Welcome on Google Cloud Community.

I was able to link Slack channel but only via UI.

Keep in mind, that CLI command is in beta, so it might be possibile that it will not gonna work properly. Please try this via UI.

cheers,
DamianS
LinkedIn medium.com Cloudskillsboost

1 Like

At first, I was unable to attach it using console that’s why I switched to CLI.

Even from console now, it is not listing my slack channels, just listing the email channels.