Running PowerShell to Backup Azure API Management instance into Blob Storage, from an Azure VM within a subnet A.
When the blob storage is set to Network - All Network, it works.
However, When the blob storage is set to Network - Selected Subnet A, then the PowerShell start to error.
The message says Operation returned an invalid status code 'BadRequest'
I also add Azure APIM Management public IP into Blob Storage firewall, it still doesn't work.
Using Debug Mode, it has some more info
{ "error": { "code": "InvalidParameters", "message": "Invalid parameter: This request is not authorized to perform this operation.\r\nParameter name: backupContainerName (value: [apim-backup])", "details": null, "innerError": null } }
After searching around, apparently this means the IP is not allowed by Blob Storage. Only Backup-AzApiManagement command failed. Other storage operations in PowerShell will work within that Azure VM. Also, Storage Explorer UI in the VM can access the Blobs and upload blob from it too.
Does this mean, this access to blob storage request is issued by Microsoft infrastructure internal server behind the scenes, and not from the Azure VM I am running?