Azure vm stopped unexpectedly, says "Storage account xxxxxxxx not found,...." - azure

My Azure VM with Windows server 2016 stopped unexpectedly today. When I tried RDP today in my vm, it was saying 'machine unavailable'. So I logged in to Azure portal, and the VM was actually running. But when I tried to restart it, I got a notification saying
"Failed to restart virtual machine xxxxx. Error: Storage account xxxxxxxx not found. Ensure storage account is not deleted and belongs to the same location as the VM."
But, I was successfully using the vm till today. I didn't do anything in the Azure portal. The storage account with the vhd still exists (in the same resource group). I once deleted an unused storage account about 2 months ago, but the VM was running perfectly till today. I am not sure about anything that may have happened. The activity logs are empty.

Please Create a new storage account with the name – 'xxxxxxxx' in the same region as VM and then restart the VM to mitigate the failed error.
Why?
It is looking for already deleted storage account. This happens mostly for diagnostics storage accounts (I can't exactly say whether this is a diagnostics one without knowing the account name. diagnostics account names are something like xxxxxxdiag). Sometimes, disappearance of diagnostic account doesn’t cause the VM to be unreachable but the VM would just be marked as ‘failed’ over the portal.

If the virtual machine stopped unexpectedly and is not available again, we can report the issue to the Azure support team from the Azure portal. Please have a try to confirm with the Azure support team whether it can be recovered.
According to your description that the VHD file is existing in the storage. We also can recovery the machine from the VHD file. More detail steps please refer to another SO thread.

This issue may be because the diagnostics storage account for the VM is deleted. You can solve this issue by Redeploy your VM under Support + Troubleshooting tab in the VM blade. See image:

Related

Azure ML Workspace is not able to upload data in for workspace linked storage account which is behind VNet

I am trying to setup an Azure ML workspace with Storage Accound behind the Vnet but when trying to upload an sata from Data tab I am getting below error.
I have all the necessary setting as describe in the below article but still no luck
https://learn.microsoft.com/en-us/azure/machine-learning/how-to-secure-workspace-vnet?tabs=se%2Ccli#secure-the-workspace-with-private-endpoint
Things did to make Storage Accessible to ML workspace
Enabled Azure.Storage Service Endpoint from Vnet
Done this setting on Storage
Both the ML Workspace and Storage are in same subnet
Assigned "Storage Blob Data Reader" permission for Worspace
Accessing this ML Workspace from Virtual machine created on same subnet.
Can anyone suggest is there anything missing ?
I tried to reproduce the same in my environment and got below results:
I have one storage account in which I enabled Networking settings as below:
When I tried to upload data from Azure Machine Learning Studio, I got same error as you like below:
To resolve the error, make sure to add your client IP address under storage account's Firewall settings like below:
Now, I tried to upload data again from Azure Machine Learning Studio and got results like below:
When I selected Next, it took me to Review tab like below:
After clicking on Create, data asset is created successfully with below details:
To confirm that, I checked the same in Portal where test.txt file uploaded to storage account successfully like below:
In your case, make sure to add your client IP address under storage account's firewall settings. If the error still persists, try with Storage Blob Data Contributor role.
Reference:
Connect to data storage with the studio UI - Azure Machine Learning | Microsoft Learn
I have created a private endpoint for the storage account in the same subnet of the workspace and it started working.
Still thinking about why with Service Endpoint it's not working. Is there any configurations I am missing.

Do my azure account permissions affect my Virtual Machine operation

I have a Virtual Machine in azure that is set to boot up daily, run some scripts via cron, and then shut down.
A week ago my colleague changed my took away my co-adminstrator role within Azure. Since then the scripts have failed to run. I don't even know if the VM has been booting up.
How does the role/permissions associated with my account affect the behaviour of a VM that I have created?
EDIT
I suspect the point of failure is the Automation Task that starts the VM each day.
How does the role/permissions associated with my account affect the
behaviour of a VM that I have created?
To run the automation tasks in a VM, the account which used to authenticate the VM should have the proper role/permissions.
As you are no longer the co-administrator of that Azure Subscription, you should have a proper role to run the automation tasks in a VM with your account.
For example, with the contributor role, you can create and run the automation tasks in your Azure VM

Azure - Backup Web App to network protected storage

We currently have set up a web application in our Azure enviroment which is connected to our VNET and reachable through private link.
Now we are trying to set up backups to an Azure storage account.
this storage account is also connected to the VNET and only allows connections from this. We have set an Exception on "Allow trusted microsoft services to access this storage account"
However, when we try to run the backup of the web app, we get the following error:
"Storage access failed. The remote server returned an error: (403) Forbidden.. Please delete and recreate backup schedule to mitigate."
We have had this same issue when restoring SQL databases through azure storage and temporary made it accessible for all which made it work, however this is not feasible for the future, is there any way to make this work?
I ran into the same issue.
Unfortunately a backup in combination with a firewall is not possible according to Microsoft documentation.
"Using a firewall enabled storage account as the destination for your backups is not supported. If a backup is configured, you will get failed backups."
Kind regards

migrate Azure VM across subscriptions

I am working on a VM in Azure. Recently Azure subscription is expired(disabled) & got a new subscription(For some reasons could not renew it).
Now trying to migrate my VM to the new subscription. How can I do it.
Thanks in advance.
Tried downloading VHD(Virtual Hard Disk). Unable to create VM using this VHD.
VM Details:
Ubuntu Server 18.04 LTS
Unfortunately, you cannot move the resources from a disabled subscription. Please contact the Azure billing support (it's free)
You can refer here on how to move the VM from one subscription to another (For an Active subscription)

How to get De/Allocated time for azure VM in C# or powershell

How to get De/Allocated time for azure VM in C# or powershell. I know how to list all the VM's But not sure how i can see De/Allocated time for each VM
This information is available in Azure Audit Logs. A feature of Azure Resource Manager (i.e. portal.azure.com - all resources created using "Resource Manager" and not "Classic").
You can read more about Azure Audit Logs and how to retrieve them here:
https://azure.microsoft.com/en-us/documentation/articles/resource-group-audit/

Resources