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

Should Include the Command to Take Down Resources #267

Closed
josephaw1022 opened this issue Dec 29, 2023 · 1 comment
Closed

Should Include the Command to Take Down Resources #267

josephaw1022 opened this issue Dec 29, 2023 · 1 comment
Assignees
Labels
help wanted Good for community contributors to help [up-for-grabs] ⌚ Not Triaged Not triaged

Comments

@josephaw1022
Copy link
Contributor

Type of issue

Missing information

Description

A code block is shown to create the resources shown in the messaging tutorial via the azure cli or cloudshell

az group create -n -location eastus
az servicebus namespace create -g --name --location eastus
az servicebus topic create --g --namespace-name --name notifications
az servicebus topic subscription create --g --namespace-name --topic-name notifications --name mobile

I think a small codeblock section at the end of the page that gives the commands to remove the cloud resources would help people are just trying to create the resources quickly for this one-time tutorial. I am thinking something along the lines of this.

# Define variables
RESOURCE_GROUP="<your-resource-group-name>"
NAMESPACE="<your-namespace-name>"

# Delete Service Bus topic subscription
az servicebus topic subscription delete --resource-group $RESOURCE_GROUP --namespace-name $NAMESPACE --topic-name notifications --name mobile

# Delete Service Bus topic
az servicebus topic delete --resource-group $RESOURCE_GROUP --namespace-name $NAMESPACE --name notifications

# Delete Service Bus namespace
az servicebus namespace delete --resource-group $RESOURCE_GROUP --name $NAMESPACE

# Delete the resource group
az group delete --name $RESOURCE_GROUP --yes --no-wait

Just something so that I can easily remove the resources without having to go and google the commands to remove them or go into the azure portal and manually remove them.

Page URL

https://learn.microsoft.com/en-us/dotnet/aspire/messaging/messaging-components?tabs=passwordless

Content source URL

https://github.com/dotnet/docs-aspire/blob/main/docs/messaging/messaging-components.md

Document Version Independent Id

1b6029c0-3592-34d4-1218-1db530b4ce28

Article author

@IEvangelist

@josephaw1022 josephaw1022 changed the title Command To Take Down Resources Should Include the Command to Take Down Resources Dec 29, 2023
@IEvangelist IEvangelist added the help wanted Good for community contributors to help [up-for-grabs] label Jan 18, 2024
@alexwolfmsft alexwolfmsft self-assigned this Jan 29, 2024
@alexwolfmsft
Copy link
Contributor

Thank you, resolved with #372

@dotnet-bot dotnet-bot added ⌚ Not Triaged Not triaged and removed ⌚ Not Triaged Not triaged labels Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Good for community contributors to help [up-for-grabs] ⌚ Not Triaged Not triaged
Projects
None yet
Development

No branches or pull requests

4 participants