I am creating java script website to create to the Azure iot-hub and create device on azure iot-hub. Is there any way to do this using node.js code. Like creation of azure-iot-hub and device should be hidden to the user of the website.
Azure iot-hub should be created using code rather than creating manually by signing into azure portal.
The management API for IoTHub is all RESTful, so you can use Javascript library like fetch to manage resources.
https://learn.microsoft.com/en-us/rest/api/iothub/iot-hub-resource/create-or-update
Related
I have been tasked with finding out if/how the Azure FHIR API or the Azure FHIR Open Source can be used in conjunction with an enterprise service bus? however I have found little to no information about these two together?
Below template helps to deploy Microsoft Open Source FHIR Server , can be found in the below URL.
https://github.com/Microsoft/fhir-server/blob/master/docs/DefaultDeployment.md
This process creates the instances Cosmos DB, Azure Web App, and source code using an Azure Resource Manager template.
To integrate the Azure FHIR with service bus, we can quickly integrate a FHIR server into our own application using the above template and Azure enables to quickly ingest and manage FHIR datasets in the cloud to track and manage data.
I am trying to develop a web application using which I want to be able to connect to my Azure subscription, read all my resources and display those back on my app. I only need the name, IP and resource type. I know I can authenticate against Azure using PowerShell but not quite sure how I achieve this using PHP.
Most Azure service REST APIs have client libraries that provide a native interface for using Azure services.
.NET
Java
Node.js
Python
Azure CLI 2.0 SDK
We do not have a client library for PHP. I would recommend call the Azure REST API from PHP to accomplish the task you are looking at.
https://learn.microsoft.com/en-us/rest/api/azure/
Authentication is also discussed in the link above.
Is there a way to authenticate to Azure without any login on an Azure VM? Same feature like amazon instance profile so I can run azure commands without authentication
I don't think it is possible to communicate with Azure cloud without authentication like AWS using the instance profile. In Azure you have to use service principle with respective role(Reader, contributor or owner) assigned. Once service principle is created you can use it for authentication with Azure SDK or REST API. You can automate once you have service principle details.
You can use Azure CLI.
The authentication can be done using the Publish Settings file.
This is useful if you wish to use Azure CLI commands in a script etc.
You can download the file by using
azure account download
Make sure you keep this file safe as it provides direct access to your azure account.
Then authentication is a simple process of importing the file using
azure account import /path/to/.publishsettings_file
Now deployment commands can be run on the command line without logging in.
Scroll to the section public settings file in the link for more info on how to use the publish settings file.
Can we create a sites that can:
showing available VMs;
deallocate VMs;
show pings.
I prefer using Node, but other language is accepted.
Currently, I'm monitoring using azure-cli. But, I'm asked to create a more user friendly UI.
Most of the operations that you can perform on the azure portal can be done using azure management api and powershell azure commandlets.
Azure management API are REST based and hence can be consumed from any platform that supports http.
Sample to start and stop VM - http://code.msdn.microsoft.com/windowsapps/How-to-start-deallocated-c23b7cbe
Likewise you can write your own program to do the required management activities.
I created an empty Azure cloud service and I want to allow other developers to deploy to it. So far the only route I can see is adding the developers as Azure subscription administrators. I would rather give them more specific access to the cloud services only.
No such functionality exist today which will allow you to grant/revoke permissions at the cloud service level. Once a developer is provided access to the subscription, they would have access to all the resources under that subscription.
There's a REST API behind cloud service deployments and all the tools (including Windows Azure Portal and Visual Studio) consume this API for creating deployments. One possible solution would be to build your own solution consuming this API. In this solution you will implement access control based on your requirements so that when your user use this service, they will only see the cloud service they're assigned to and can only manage that cloud service. There's a managed library for consuming this API. You can find more information here: http://www.bradygaster.com/post/getting-started-with-the-windows-azure-management-libraries.
It seems that if the original developer downloads the publish profile from Azure (it's an xml file that with a .PublishSettings extension), you can copy the userPWD from that file, give it to another developer and they can paste it into the password field in the Connection section of the Publish dialog.
The userPWD is a string that looks something like this:
EFFCLfDqDKHlXcA2YDZPvX4BZXWFaobxaLN0aPJd4HCfa8WxlqEkt2yywBsx