question

SARCHER-9701 avatar image
0 Votes"
SARCHER-9701 asked kobulloc-MSFT edited

Azure Windows Virtual Machine - Unable to delete SendGrid Account in source after resource move

Hello, I'm running a Windows virtual machine on Azure which includes a SendGrid account for emails. I recently moved my resource group from Australia Southeast to Australia Central. The source SendGrid account had previously been automatically upgraded to a Saas account. The Saas account was successfully moved along with the other resources with Azure Resource Mover, but the original SendGrid account remains in the source region and cannot be deleted.

I get an error message saying: "Deletion of resource group 'My Resource Group' failed as resources with identifiers 'Sendgrid.Email/accounts/**' could not be deleted. (Code: ResourceGroupDeletionBlocked) All dev services functionality has been disabled as part of the migration of dev services resources to SaaS resources in the Azure portal."

How can I delete the SendGrid account in the source (which in turn will allow me to delete the old Resource group?

azure-stack-hub
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

kobulloc-MSFT avatar image
0 Votes"
kobulloc-MSFT answered kobulloc-MSFT edited

Hello, @SARCHER-9701!

If you are unable to delete your resource group because functionality has been disabled, we may have to remove that on our end. I'll reach out to you directly to get this resolved.

Edit

Thank you to @SARCHER-9701 for writing this up!

Problem
Unable to delete or move legacy SendGrid resources after being automatically migrated to SaaS.

Resolution
The legacy SendGrid account is still active (even if you are unable to login to the old account or have verified that it has been deleted). You will need to delete references to the old SendGrid account from the new SaaS SendGrid account:

  1. Log onto the new SendGrid SaaS account (via sendgrid.com or the Azure portal by clicking on “Open SaaS Account on Publisher's site”)

  2. On the SendGrid site, delete references to the old account under A) Settings > Account Details > Your Products and B) Settings > Teammates.

  3. It will take some time (up to 10 days) for the SendGrid updates to propagate to Azure. After that has happened, you will be able to delete the legacy SendGrid resource/resource group.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SARCHER-9701 avatar image
0 Votes"
SARCHER-9701 answered kobulloc-MSFT commented

Great - thanks for your help.

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

No worries, @SARCHER-9701! I just sent a reply. Let me know if you have any additional questions.

0 Votes 0 ·

@kobulloc-MSFT I am having the exact same problem. I cannot delete a sendgrid resource setup by an employee who no longer works at my company. I submitted a ticket but as part of the support process it requires the resource you are having trouble with. I went with a cloud app or something just to get to the next screen. I am hoping my description details get the task done.
This is the error I am getting when I try to delete the RG that has the sendgrid resource.
Remove-AzResourceGroup: Long running operation failed with status 'Conflict'.
StatusCode: 409
ReasonPhrase: Conflict
OperationID :

Thank You.

0 Votes 0 ·
kobulloc-MSFT avatar image kobulloc-MSFT PhillipPutzback-9207 ·

@PhillipPutzback-9207, I believe you will be contacted for more information if they are unable to find the resource from the information you provided but let me know if you run into issues with your support ticket.

0 Votes 0 ·
SARCHER-9701 avatar image
1 Vote"
SARCHER-9701 answered kobulloc-MSFT edited

I finally got this issue resolved with the help of both Azure and SendGrid support. The cause was rather obscure, so here is my summary:

When the SendGrid accounts were migrated to SAAS in Azure last year, reference to the legacy account stayed in the Azure Resource Group. Azure support initially figured that the old account must still be active on the SendGrid backend. However I wasn't able to log into SendGrid.com with my old account number and SendGrid support also confirmed that it had been deleted. On logging into the new SAAS SendGrid account (either via SendGrid.com or the Azure portal by clicking "view account at Publisher's site"), go to "Settings". The initial recommendation from the SendGrid team was to then select the "Products" tab and delete any reference to the old account there. However, in my situation access to the tab was disabled (I assume because it was linked through to Azure). I then looked under the "TeamMates" tab and found an entry referencing the old account which I deleted.

Back in Azure, it still appeared I couldn't delete the old SendGrid resource because the "Delete" button was disabled, but after 10 days or so, the option had become enabled, so I was finally able to delete the resource and in turn my old Resource Group. So the culprit seems to have been the TeamMate entry but a long delay before the change propagated to Azure.

Hopefully that helps anyone facing a similar issue and trust it prompts SendGrid to look into it a bit further. Thanks for facilitating the support ticket.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@SARCHER-9701, this is incredibly helpful. Thank you for doing such a detailed writeup! We've been seeing a lot of related posts from people with similar issues related to SendGrid so I imagine a lot of people will benefit from this.

To summarize:

Problem
Unable to delete or move legacy SendGrid resources after being automatically migrated to SaaS.

Resolution
The legacy SendGrid account is still active (even if you are unable to login to the old account or have verified that it has been deleted). You will need to delete references to the old SendGrid account from the new SaaS SendGrid account:

  1. Log onto the new SendGrid SaaS account (via sendgrid.com or the Azure portal by clicking on “Open SaaS Account on Publisher's site”)

  2. On the SendGrid site, go to Settings > Account Details > Your Products and delete all references to the old account if the tab is enabled. If it is not enabled, you may need to look under Settings > Teammates and delete entries that reference the old account.

  3. It will take some time (up to 10 days) for the SendGrid updates to propagate to Azure. After that has happened, you will be able to delete the legacy SendGrid resource/resource group.

0 Votes 0 ·
SARCHER-9701 avatar image
0 Votes"
SARCHER-9701 answered kobulloc-MSFT commented

Not a problem, glad to help. I just noted some minor errors in my navigation descriptions:

Azure link is actually worded "Open Saas Account on Publisher's site" and SendGrid navigations are (1) Settings -> Account Details -> Your Products and (2) Settings -> Teammates

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@SARCHER-9701, thank you again! I believe everything is updated at this point.

0 Votes 0 ·