Freshly created 'Start/Stop VM' runbook is nowhere to be found

Andrej Zupan
101
Reputation points
Hi, noob here.
I've created 'Start/Stop VM' runbook here:
https://portal.azure.com/#create/Microsoft.StartStopVMSolution
Now, it's not shown among other resources, but it must be somewhere, because when I try to create it again, I get the following error:
{
"telemetryId": "dc6443a6-bc42-4b1f-9ad8-4ebd3646835c",
"bladeInstanceId": "Blade_f40e63de401c422599e6b7b857dce7f7_2_0",
"galleryItemId": "Microsoft.StartStopVMSolution",
"createBlade": "NewGallerySolutionV3Blade",
"code": "InvalidResourceLocation",
"message": "The resource 'ScheduledStartStop_Parent' already exists in location 'eastus' in resource group 'Securities-Grid-Resources'. A resource with the same name cannot be created in location 'westeurope'. Please select a new resource name."
}
{count} votes
The problem is I can't see it, yet, Azure behaves as if it's there.
Problems started after I've deleted a "Start/Stop VMs during off-hours" some weeks ago,
@Andrej Zupan Ah ok. Could you confirm if you had deleted the feature along with all of its related resources? Can you see the Securities-Grid-Resources resource group on the Azure portal?
Deleting the feature only removes the associated runbooks. It doesn't delete the schedules or variables that were created when the feature was added. If you don't want to keep the Azure Automation account feature components like Runbooks/Variables/Schedules, you can manually delete each.
I've deleted Azure Automation Account together with all its resources. Now I can't see any.
I had trouble creating Log Analytics workspace. Azure kept rejecting any reasonable name I could possibly come up with. At the end, I had to resort to "Workspace666". Anything else just didn't work.
Looks like my Azure subscription is cursed or something.
@Andrej Zupan Thank you for the additional details.
Although it might seem like the resource group is empty, note that some resource types like microsoft.insights/scheduledqueryrules and microsoft.insights/actiongroups would be hidden from the default view unless "Show hidden types" checkbox is selected. This highlighted resource below is most likely the one that caused the
resource already exists
error that you initially encountered.@Andrej Zupan Secondly, the name you choose for your workspace must be globally unique across all Azure Monitor subscriptions.
When you delete a LA workspace, the service places it in a soft-delete state making it inaccessible to any operation. The name of the deleted workspace is preserved during the soft-delete period and can't be used for creating a new workspace. After the soft-delete period, the workspace is non-recoverable, it is scheduled for permanent deletion and its name it released and can be used for creating a new workspace.
You can permanently delete your workspace and override the soft-delete period. The permanent workspace delete operation releases the workspace name and you can create a new workspace using the same name.
Sign in to comment
Workspace recycle bin is empty, I'm afraid.
There is no "Show Hidden" button in Runbook list
When I tried to create Start/Stop VM again, things got even weirder. I've entered dates & times correctly, as far as I can tell, but I keep getting this error:
Sign in to comment
1 additional answer
Sort by: Most helpful
@Andrej Zupan Apologies if my previous comment did not convey the message clearly. The Show hidden types checkbox is available from within the Overview blade of the Resource Group view, as shown in the screenshot below:
Please wipe the resource group clean with this checkbox selected (unhide all resources in the resource group > Select all > Delete) before any attempt to recreate the solution in the same resource group.
I'm looking at the possible causes for the newer template deployment validation error that you shared.
On a side note, please note that for the Target ResourceGroup Names (string) parameter (in the Parameters blade), enter Resource Group names that contains VMs to be managed by this solution, and not the one where the solution is being deployed.
That solved the problem.
Thank you for your patience!
Sign in to comment
Activity