Change location of an Azure IoTHub - azure

I would like to change the location of my IoT Hub image attached.
For some reason there doesn't seem to be any way to do it within the portal. Am I going to have to delete the IoT Hub and create it again?

It is not possible to move an Azure resource to a different location. If you need to move your resource you will have to develop your own migration plan and redeploy the resource in the desired location.

Related

Deploy EventGrid using powershell

I have an EventGrid for analyzing the device active and inactive status which means Azure IOT collect the information from sensors and publish the event to EventGrid and subscribe to Azure Queue. It is working fine. Now, I want to deploy this EventGrid functionality to cloud using PowerShell. I have checked a lot of EventGrid document deployment using Azure PowerShell. We can deploy the EventGrid with Queue subscription. But could not find any input from IoT. How will we set input from IoT hub?
There might be a way to subscribe to and filter all of the events of a resource group. Provided that your IoT hub is part of a resource group, perhaps you can receive all events from it?
I imagine you've tried that though.https://learn.microsoft.com/en-us/powershell/azure/get-started-azureps?view=azps-1.8.0
If the above link doesn't help you. I would request you to let me know, –

Monitor new coming files and start a new VM

I would like to build a trigger like thing that can monitor my Azure File Storage for new coming files. If there are new files then create a VM.
What should I look at? Monitor + Alert or Logic Apps Designer?
Any one done anything similar before? Thanks!
What should I look at? Monitor + Alert or Logic Apps Designer?
I recommand that you could use Azure function+ Event Grid.
You could use the Event Grid to listen the change of the storage and implement the creating VM in the Azure function. About how to handle Event Grid events in Azure Function, please refer to this document.
Note: Currently, the following Azure services support sending events to Event Grid:
Azure Subscriptions (management operations)
Container Registry
Custom Topics
Event Hubs
IoT Hub
Media Services
Resource Groups (management operations)
Service Bus
Storage Blob
Storage General-purpose v2 (GPv2)
If Azure blob storage is possible, you could use the Azure function with blob trigger.

trigger a DSC to run when any VM is added to a resource group

is there a way a DSC can be automatically applied to any machines in a specific resource group? I want to run a dsc which formats a hard disk to any VM added to a specific resource group. Can this be done via Azure Automation?
No, this is not possible with Azure Automation.
You can use different means to work around this, generally you should "listen" to Microsoft.Compute/virtualMachine events and filter out new ones somehow. You can send subscription events to oms\event hub or storage account (afair).

Unable to Associate a SB Queue to an Azure IOT Hub Custom Route

I'm trying to add a Custom Endpoint to an IOT Hub. The Endpoint should write to a Service Bus Queue in my Resource Group. I'm getting error "No namespaces found for subscription id ... in the region where this IoT hub is located".
According to the IoT Hub Properties blade on the Portal, my IoT Hub is in my Resource Group xxx, in the East US region location. My IoT Hub has 3 built-in endpoints: File Upload Notifications (messages/servicebound/fileNotifications), Cloud to device feedback (messages/servicebound/feedback) and Events (messages/events).
According to the ServiceBus Properties blade, my ServiceBus namespace is also in my Resource Group xxx, also located in the East US location. My ServiceBus has several Queues and Topics. Some of my queues enable partitioning, others do not. The max size of my queues range from 1GB to 16 GG to 80 GB. They are all active.
I've also tried to create a new EventHub namespace, with an Event Hub instance, in my Resource Group xxx, also located in the East US location. The IoT Hub Custom Route blade also does not see this Event Hub's namespace.
What am I missing? Is the Custom Endpoints feature requiring something of my IoT Hub or ServiceBus or EventHub that I'm not setting properly?
This turned out to be an Azure issue, now fixed by Microsoft.
The IOT Hub and SB were correct, as far as the Portal UI was concerned. In our case the scripts all used the same, precise, string for specifying Location but the issue occurred nonetheless.
There had been an issue in the SubscriptionId/ResourceGroup/Location validation logic in Azure - I believe due to how the 'Location' element was stored internally originally.
I'm told that Microsoft has repaired the data -- potentially Azure wide, but certainly the data that affected our Subscriptions and their IotHubs.

Scale Set with custom image from another subscription

I created a scale set with managed disks and a custom image (something like /subscriptions/<SUB-ID>/resourceGroups/my-rg/providers/Microsoft.Compute/images/my-base-image) and also an ARM template to deploy a new scale set with this custom image.
The template deployment works fine if I deploy to the same subscription where my custom image is located. But it fails when I try to deploy it to another subscription - even if these two subscription are part of the same tenant/directory and the user has access to both subscriptions.
So am I right that it's not possible to use a custom image from a different subscription?
If yes: it would be ok (not best solution, but ok), if I could copy the custom image from subscription A to subscription B - But I can't see a way to copy this ressource. I think the only way is to recreate everything and use unmanged disks, because here I can download and upload the .vhd file from/to the storage account.
Any other ideas?
For now, Azure doesn’t support move a managed Image to anther subscription .But, this function will come soon. Also , I supply a way for this issue.
Create a temporary VM in A subscription using your Image.
Move this temporary VM to B subscription.
Capture a new Image and delete the temporary VM.
Then, you can use this image to do what you want to do.
NOTE: Moving a VM to another subscription is very easy. You just need to click Move button on VM’s overview in portal.
Also, this link supply another solution and it may be helpful to your case.

Resources