Posts

Showing posts with the label azure

Is it possible to publish azure functions as precompiled dll's in the azure portal

Is it possible to publish azure functions as precompiled dll's in the azure portal I am developing Azure functions locally on VS and wish to publish them to azure portal later on. I want my function code to be non editable and non visible in the portal. Is it possible to pre-compile these function to dll's while publishing? I am thinking this also saves the cold time as the function will be pre-compiled. Or do I need at least one function there in which I can add reference to the dll of other functions. 1 Answer 1 Yes, if you are using Visual Studio 2017 or Visual Studio Code with CLI, that's the default way to publish .NET Azure Functions. See Thanks @Mikhail – Rahul Dobriyal Jul 3 at 4:51 By click...

Displaying an Image from Azure Storage before downloading - C#

Image
Displaying an Image from Azure Storage before downloading - C# I'm writing a program that will allow the user to download selected images from Azure Blob Storage. I have it working, however, currently, the images are downloaded to a file and then this file path is used to display the images. I want the images to be displayed and then allow the user to select which images can be downloaded. Below is my code for downloading the images. for (int i = 1; i<=dira.ListBlobs().Count(); i++) { try { CloudBlob blob = dira.GetBlobReference(i + ".png"); blob.DownloadToFile(localFilePath + "/" + i.ToString() + ".png", FileMode.Create); // MessageBox.Show(i.ToString()); } catch (StorageException ex) { } } Then my code for displaying the downloaded image is here: pictureBox1.BackgroundImage= Image.FromFile(filePath + ".png"); How would I display the images before they have been downloaded? ...

Azure topic and sending message over MQTT

Image
Azure topic and sending message over MQTT Is it possible to send messages to azure to any custom topic via mqtt. All example that I've found so far work with standard topics 'devices/' + hubName + '/messages/events/' 'devices/' + hubName + '/messages/devicebound/#' Btw, I tried to send/subscribe on the topic/subscription above with MQTT.fx application and never received messages, although the connection was successful. What did you mean about 'never received messages'? Did it mean that the back end can not receive the messages which sent from MQTT.fx(Device-To-Cloud), or MQTT.fx can not receive the messages which sent from service(Cloud-To-Device)? – Michael Xu - MSFT Jul 2 at 6:11 MQTT.fx being subscribed on devices/mydevice/messages/devicebound/#, never received messa...

Can't Connect to the table azure SQL in given DB connection using .net

Image
Can't Connect to the table azure SQL in given DB connection using .net My question is the Azure DB connection is working perfectly but when i use the sample Todo by given in the link https://docs.microsoft.com/en-us/azure/app-service/app-service-web-tutorial-dotnet-sqldatabase so i have already table in the database called "PhotoTable" but every time i run the sample (asp.net)it creates it own table ( Todoes table)in my DB ( DB is already i created and its connect fine with my existing DB) so the issue is its not connecting with mt table , i have done changing the controller and all other stuff , but it dosen't work, if anyone knows how to connect with existing table please kindly let me know , thanks ( if more information needed please let me know, i have added the screenshot of my table list and the table i need to connect i have highlighted with red) Did you give the right link? That link is about Azure Storage , but your question is abo...

When I am running azure HTTP Trigger function i am getting 401 unauthorized

When I am running azure HTTP Trigger function i am getting 401 unauthorized I am trying to run Azure HTTP Trigger Azure Function and I am receiving a 401 Unauthorized . It was working fine for me earlier. 401 Unauthorized When I created the new function under the same Function App and copied the same code then also it is running fine but when I am trying to run my created function then I am getting the same error that I mentioned. I'm seeing the following logs in the streaming service. 2018-07-02T07:09:41 Welcome, you are now connected to log-streaming service. 2018-07-02T07:09:48.893 [Info] Executing HTTP request: { "requestId": "53e54698-c46b-4cb6-9ed0-d042eaf9ec71", "method": "POST", "uri": "/api/Source/MPAA/false" } 2018-07-02T07:09:48.893 [Info] Executed HTTP request: { "requestId": "53e54698-c46b-4cb6-9ed0-d042eaf9ec71", "method": "POST", "uri...

Webjob on azure not running continuously even when Always on option is ON

Webjob on azure not running continuously even when Always on option is ON I am having a continuous Webjob which works fine for a couple of hours and then does not work until I restart. It seems to me azure takes it to idle mode but it shows me it's running but doesn't actually run. I have set the Always on option ON. I am having a paid plan with Azure. Do I need to use a timer or thread delay or some doughy code to keep it alive in my code? If that's the case whats the purpose of continuous option in webjob. Is this happening multiple times, or just one time? – Joy Wang Jul 2 at 6:33 Someone use the Azure SDK in application which is not supported in the WebApp environment cause this problem, you could refer to it. – Joey Cai Jul 2 at 6:39 ...

What are the benefits of Azure Static Website Hosting over Azure CDN

What are the benefits of Azure Static Website Hosting over Azure CDN Just read this article about Static website hosting in Azure Storage : For the moment, I use to deploy my static content to Azure CDN. So far here are the difference that I've found: I am wondering what could be a good candidate for Static website hosting in Azure Storage: Content for local application that does not need to scale globally ? By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Azure Mobile App Service APIkey

Azure Mobile App Service APIkey I created an Azure Mobile App Service which is currently accessible 'Anonymously' Anonymous access is enabled on the App Service app. Users will not be prompted for login. Anonymous access is enabled on the App Service app. Users will not be prompted for login. To make it secure I can enable App Service Authentication which will ask users to log in App Service Authentication But this is not what I want - The data in this app is only accessed by Application without the need of each and every user to login to my app before using it. So you might say, in this case, Anonymous access is fine but I want to restrict it with something at least like an API Key so I will have access to the API which my app can use to access the data to prevent random requests as anyone can just go and use Postman and start getting data without any authentication. Anonymous access API Key So in short, I don't want individual user authentication, but at least an API K...

How to assign azure custom dns to public ip

How to assign azure custom dns to public ip I have resource group on azure containing virtual machine and kubernetes and load balancer and public ip address and etc. I can access to my kubernetes app with direct public ip or public ip dns name. But problem is that i can't get azure custom dns (dns zone) working for my public ip. e.g. myapp.com I have tried to assign public ip address in dns zone but not getting custom dns name working for my app. have you done the delegation of your domain to azure dns with your domain registrar? – mdeora Jul 2 at 10:56 1 Answer 1 2 options: 1. A record that points to public ip address explicitly 2. CNAME record that points to azure "internal" dns name Actually i have tried A and...

Entity Framework like ORM for Cosmos DB

Entity Framework like ORM for Cosmos DB I am looking for any ORM for Cosmos DB. Most of the client which have been mentioned in samples create a new connection to table when they need i.e. there is no connection pooling policy. It seems creating new connection always as is given in samples is non scalable. Please correct me if I am wrong. And does anyone have any good ORM solution which comes with connection pooling 2 Answers 2 Cosmonaut is exactly what you're looking for. It is a simple and minimalistic object mapper, which creates a collection-to-object relationship. You can use your POCO objects and do all the CRUD operations. It supports collection sharing in order to reduce the cost of having multiple objects in one collection as well. Read more about Cosmonaut here. Disclaimer, I am the creator of Cosmonaut. Great to know that you're the creator of Cosmonaut...

Does Azure Service Fabric do the same thing as Docker?

Does Azure Service Fabric do the same thing as Docker? My thinking is that people use Docker to be sure that local environment is the same as production and that I they can stop thinking about where are their apps running physically and balancing mechanisms should just allocate apps in best places for that moment. I'm 100% web based and I'm going to move to cloud together with our databases, and what cannot be moved will be seamlessly bridged so the corporate stuff and the cloud will become one subnetwork. And so I'm wondering, maybe Service Fabric already does the same thing that Docker does plus it gives as address translation service (fabric:// that acts a bit like DNS for the processes in fabric space) plus (important for some) encourages on demand worker allocation - huge scalability perk. 2 Answers 2 It's confusing since Docker (the company) is trying to stake claims in everyth...

Java standalone application want to connect with azure [closed]

Java standalone application want to connect with azure [closed] I have created a java standalone application for windows and used SQLite as database and now I want to connect this application with Azure so that database can be saved on cloud Can anyone helps me how to do this ?? Let's make it simple I want to connect java standalone application with azure how to do this.. Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

Microsoft Graph REST API invalid client secret

Microsoft Graph REST API invalid client secret I have the following POST call I need to make. However, even if I provided the right client id and secret id, my call is getting rejected. curl POST https://login.microsoftonline.com/f02....e3/oauth2/token -H 'Content-Type: application/x-www-form-urlencoded' --data 'grant_type=authorization_code&redirect_uri=https://requestb.in/ac& source=https://graph.microsoft.com&client_id=1e1....-913d9 &client_secret=YmbSFYz.....4Uk=&scope=mail.read&code=AaAAA........on0a569' This is the error I receive: curl: (6) Could not resolve host: POST {"error":"invalid_client","error_description":"AADSTS70002: Error validating credentials. AADSTS50012: Invalid client secret is provided.rnTrace ID: 78d...a2brnCorrelation ID: 01....ab2rnTimestamp: 2016-12-14 01:46:47Z","error_codes":[70002,50012],"timestamp":"2016-12-14 01:46:47Z","tra...

Cannot connect to Azure Point to Site VPN from MAC

Cannot connect to Azure Point to Site VPN from MAC I need to establish a p2s connection from a Mac against Azure. From Azure I've downloaded the vpn client zip file with a certificate inside: VpnServerRoot.cer. I can import the certificate in keychain, but when I create the vpn on network preferences, the certificate is not shown. After reading many documents, I've found that apart from the root certificate, a client certificate is needed. This client certificate should be generated from the root certificate. The Microsoft documentation does not include how to do that in Mac (which makes sense). So my question is how do I create a client certificate from the root certificate in Mac? Thanks! Questions on professional server- or networking-related infrastructure administration are off-topic for Stack Overflow unless they directly involve programming or programming tools. You may be able to get help on Server Fault. – tambre ...