FAQ Database Discussion Community


Doubts on the correctness of Microsoft Azure Multimedia Services REST API

rest,http,azure,httpverbs
The Azure API claims to be a REST API. I found it while for patterns and sample implementations and verbs in REST, when inspecting it in their (supposedly) REST API reference, they seem to have invented a new verb CancelJob and altering internal state via an HTTP GET GET https://media.windows.net/API/CancelJob?jobid='URL-encodedvalue'...

Not getting Downloaded - “Azure DocumentDB Data Migration Tool”

mongodb,azure,migration,azure-documentdb
Here I'm working with Microsoft Azure. with in that i'm trying to use the open source DocumentDB data migration tool to import data to Microsoft Azure DocumentDB from various sources, including JSON files, CSV files, SQL, MongoDB, Azure Table storage, and DocumentDB collections. But the problem is "Azure DocumentDB Data...

Azure Cloud Service connected with Azure Virtual Network - is the internal IP static or dynamic?

azure,azure-virtual-network,azure-vpn,virtual-network,cscfg
I have deployed cloud service (NOT virtual machine) and attached it to the virtual network that I've created with following cloud service configuration: <NetworkConfiguration> <VirtualNetworkSite name="MyVirtualNetwork" /> <AddressAssignments> <InstanceAddress roleName="SampleAzureVpn"> <Subnets> <Subnet name="Subnet-1" /> </Subnets> </InstanceAddress> </AddressAssignments> </NetworkConfiguration> When I enter the virtual network dashboard in Azure Management panel I...

Azure - Enable diagnostics for worker/web role

azure,logging,azure-diagnostics
I would like to log every exception that occurs, (MVC cloudapp), in my table storage. I followed an official tutorial from Microsoft but it seems like they just complicate things too much. Tutorial can be viewed here: https://azure.microsoft.com/sv-se/documentation/articles/cloud-services-dotnet-diagnostics/#how-to-enable-diagnostics-in-a-worker-role It just feels like it's too much of a hassle just because...

How can I deploy an app using Identity Model to Production on Azure?

c#,asp.net,asp.net-mvc,azure,sql-azure
I'm pretty new to MVC. I'd like to deploy the default sample web app to Azure with a basic Identity Model installed so that I can confirm basic user authentication is working in production. I can't seem to get it working. I am using Visual Studio 2015 RC. I launch...

Why does NServiceBus on Azure append “.events” to my Topic names?

azure,nservicebus,nservicebus5
I have an Azure Topic called "response1" and I would like to subscribe to messages sent to the topic using NServiceBus. My problem is that instead of subscribing to response1, NServiceBus creates a new Topic on azure called response1.events and subscribes to that. Why does NServiceBus add ".events" to some...

Publishing a MVC App in Azure Web App

sql,sql-server,asp.net-mvc,azure
This is my Azure configuration: I have a Virtual Network with a couple of subnets and a gateway configured to allow point-to-site. There is one Virtual Machine with SQL Server (2014) installed. There are some databases in there already. SQL Server is set up to allow SQL Server and Windows...

Azure Active Directory Login: Web App Permissions, User Consent not triggered

azure,oauth,active-directory,azure-active-directory
I have currently set up a AAD instance and I am authenticating my users against it via my web app, and it’s working great. When I added and configured the application on AAD, I added the required Application and Delegated Permissions to access the Office365 Calendar API. However, the only...

How to set-up Wordpress Multi-sites on Azure using sub-directories

wordpress,azure,multisite
A question on Wordpress Multisite running on Windows Azure using Sub-directories: does it work? how do you do it?. I've installed Wordpress(4.2.2) from the Azure Gallery, updated the wp.config.php and web.config files to enable and install Multisites, but the result is a half working solution: Multi-sites is installed, and I...

Azure web site FTP access / 530 User cannot log in

ftp,azure
I'm trying to update an Azure Web Site using FTP. In the past, I was able to do this fine using the credentials from the .publishsettings file as has been widely documented. Today, I can't do that. Instead, I get a 530 User cannot log in. - even if I...

Upload file to Azure Blob from HTML webpage (C#)?

c#,azure,file-upload,azure-storage-blobs
I am trying to figure out how to take a file from an html form and save it to my Azure Blob storage. I have found many posts about doing this for JavaScript but I am trying to do it via C#. One source I found said to do using...

PHP MSSQL Database Azure

php,sql-server,json,azure
I am trying to get parse data from the SQL Database from Azure into a JSON using PHP. I have the php script on a free web hosting server. I recieve an ERROR when I am to connect to the Azure's SQL Database. My PHP Script <?php $serverName = "tcp:ss4rda587x.database.windows.net,1433";...

Domain redirection to Azure subscription

azure
I have one website running under current domain domain1.com which is not azure site. we build a new application with the new azure subscription I wanted to redirect/host the domain1.com to my azure subscription. how can we achieve this??...

Excel file (azure blob) does not download in chrome

excel,azure,azure-storage-blobs
Excel files are stored in azure blob containers. They are downloaded without incident in IE but in Chrome the page displays this message (and in Canary it crashes): This file appears corrupt and provides a link to download it and all is well from that point. I've tried setting the...

Validate access token for WEB API protected by Azure AD

azure,asp.net-web-api,azure-active-directory
I'm playing with Azure AD authentication and authorization scenarios and not all clear for me. Currently I'm looking at SinglePageApp-WebAPI-AngularJS-DotNet sample project. And one thing that I can't understand. On the client side we get access token using implicit grant flow - that is clear. Then we send request to...

Azure NextMarker

azure,windows-azure-storage,azure-storage-blobs
I have created a container in Azure called files. It has 3 images and 2 txt files. https://attosolstorage.blob.core.windows.net/files?comp=list With the URL listed above, NextMarker will be empty. If I use the following URL.. https://attosolstorage.blob.core.windows.net/files?comp=list&maxresults=1 It shows the NextMarker field populated, and what I understand from this article is that using...

How to refactor repeated code using reflection

c#,linq,generics,azure,reflection
So I have this large switch statement which is essentially the same code repeated multiple times where the only thing changing is the cast to a specific class. I've been trying to figure out a way to refactor it using reflection so I only have to write it once. switch(provider)...

Cordova with Windows Azure Storage, if the access to my container is public, do I still need authentification?

cordova,azure,azure-storage-blobs
So I'm using Cordova with Windows Azure Storage and I'm using the plugins file-transfer and file from Cordova to download a file with public access from Azure. I get the error code 1 (FileTransferError.FILE_NOT_FOUND_ERR). I am pretty sure my URL is correct, so I was wondering if it was due...

Access Registry From WebJob/WebApp

powershell,azure,azure-web-sites,azure-webjobs
I have been trying, without success, to disable the RC4 Cipher on Azure. I came across a code sample that worked with a Web Role: string[] subKeys = new string[] { "RC4 40/128", "RC4 56/128", "RC4 64/128", "RC4 128/128", }; RegistryKey parentKey = Registry.LocalMachine.OpenSubKey(@"SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers", true); foreach(string keyName in subKeys) {...

Signal that an Azure worker role should not be scaled down while processing

azure,azure-worker-roles,azure-cloud-services
We have an Azure cloud service that has auto scaling enabled. We think that some of our messages occasionally are getting processed by a machine that is subsequently switched off by the auto scale down process. This means that the dequeue count on the message is increased and if this...

The RPC server is unavailable while creating user in Active Directory

asp.net,azure,active-directory,rpc,membership-provider
I am trying to get my asp.NET application to register new users in Active Directory. using the default Active Directory Membership Provider in asp (.NET 4.5) While logging in works just fine, I get the following error when trying to create a new user: The RPC server is unavailable. (Exception...

connect to mysql database which is in ubuntu server

php,mysql,ubuntu,azure,virtual-machine
I am using below code to connect MySQL database in PHP. try { shell_exec("ssh -f -L 3307:127.0.0.1:3306 [email protected]_ip sleep 60 >> logfile"); $this->_conn = $this->dbh = new PDO('mysql:host=127.0.0.1;dbname=my_db', DB_USER, DB_PASS); $this->dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch (PDOException $e) { die("Couldn't connect to database. Please try again!"); } I want to direct connect...

Can't associate Office 365 with Azure subscription

azure,office365
For my company, I have an Office 365 E3 subscription (not trial). My office 365 account is also global admin. Now I would like to use Office 365 API. According to the getting started tutorial I was told to associate Azure with Office 365. So I when go to Office...

Azure WebJob or Scheduler or another technology?

azure,azure-webjobs
I am writing an Azure hosted MVC website for a gym booking system. I need to be able to maintain membership expiry, suspensions as well as gym class attendence (i.e. logging to the database if a session has been missed). Each of these tasks requires a "c# service function" to...

Application for viewing Azure service bus dead letters

azure,azureservicebus,dead-letter
I've been looking around the web and GitHub for an off-the-shelf dead letter viewer for Azure service bus. This is to allow our DevOps team to monitor, view and report on any dead letters for each subscription for each topic on our bus. I thought this would be a common...

Application Insights TraceListener: Setting Severity level

azure,ms-application-insights,trace-listener
The answer to this might be a simple no, but I was wanting to set the severity level of the Trace events that are reported. I am using the prerelease versions of the Application Insights API and Application Insights TraceListener. Basically I just want to filter out Trace events with...

Does SQL Azure support REPLACE T-SQL function with cyrillic characters?

sql-server,tsql,azure,sql-azure,management-studio-express
I am trying command like USE [aaa] GO SELECT [Id] ,REPLACE([BlaBlaField], 'xyz','') FROM [dbo].[aaa] GO through SQL Management Studio on SQL EXPRESS and SQL Azure Web Edition DB. In SQL Express it works, but on Azure it does not. I searched on the web at 'Azure SQL Database General Guidelines...

Distributed session implementation detail

c#,asp.net,session,azure
With the reference to the structure of session module in ASP.NET below: As I understand, when the application uses distributed session provider (.e.g. Redis in Azure), the SessionStateModule will deserializes the user's session data into Session dictionary at the beginning of a request. What I'm wondering is whether the module...

Azure: How to manage development and production websites

azure,azure-web-sites
I have been using Azure for some time for some different website I have been working on. Using visual Studio to do the publish and Azure holds the website and the sql. My question is this: How do I manage to publish to the development site and the production site?...

Azure AD Change Password with patch call

c#,azure,azure-active-directory,change-password,http-patch
I'm currently developing a web app in C#. I'm using Azure AD to store the user infomation, so I would like to be able to change the password at some point if the user wishes to do so. Currently the way I'm changing the password is by using a http-patch...

Timeout accesing SQL Azure on Basic/Standard tier - works fine on Web tier

sql,azure,timeout,sql-azure,tiers
I am upgrading a legacy azure site to use one of the current SQL azure tiers from the old web tier. The site works fine on the website and locally but when I switch from web to basic or standard I get timeout errors. The code that is timing out...

How to set network security group rules for azure storage services?

azure,sql-azure,azure-table-storage,windows-azure-networking
I need to setup Network Security Group rules for my application so it can receive HTTPS requests from the Internet and write data into Table Storage and Azure SQL. Nothing else is allowed. I know how to setup the HTTP inbound rule. But I could not figure out how to...

Azure Service Bus 1.1 Failing to Start

azure,fabric,azureservicebus
Service Bus Gateway is not starting. First of all I have tried completely uninstalling all Azure/Fabric/Service Bus type SDKs and installations. I have installed both Windows Azure Pack: Service Bus 1.1 and Windows Azure Pack: Security Update for Service Bus 1.1 (KB2972621) from scratch. After deleting all service bus related...

Azure Active Directory Graph Client 2.0 - Contains Expression

c#,azure,active-directory,graph-api-explorer
When querying Users etc using the Azure ActiveDirectoryClient it does not seem possible to construct a expression that has the 'Contains' keyword e.g. activeDirectoryClient.Users.Where(u => u.Surname.Contains(searchString)) .ExecuteAsync() I can successfully use u.Surname.StartsWith or EndsWith. Is this supported? If not is there an alternative? Thanks....

Getting error 400 bad request when accessing Azure blob storage - all latest components

azure,windows-azure-storage,azure-storage-blobs
I am running in to the "400 bad request" error that many have posted about when accessing Azure blob storage. Most of the fixes relate to updating versions of the Azure SDK and of the Storage Emulator from late '13 or '14, but there have been several subsequent releases since...

TelemetryClient does not send any data unless Flush is called

azure,ms-application-insights
I'm using TelemetryClient (v0.17.0.576) directly in my code and it looks like I can push data to Azure only when I manually call Flush at the end which feels wrong. Am I missing something here ? var configuration = TelemetryConfiguration.CreateDefault(); configuration.InstrumentationKey = "KEY"; var client = new TelemetryClient(configuration); for (int...

Change load-balanced server for Azure web site?

asp.net,azure,session-state,azure-web-sites
I have an ASP.NET Web App (not web role) deployed to Azure that's being load-balanced. I'm using Redis to handle shared Session data. I'd like to provide, for testing purposes, a way to trigger a page load to use a different server. The goal is to output the Server's local...

Instrumenting windows service with Application Insights

azure,windows-services,ms-application-insights
Is it possible to instrument a windows service running on premise with Application Insights? It's not necessary to have it automatically collecting metrics of the application like it does with Web applications, pushing custom events to Azure would suffice.

Exporting data from Azure DocumentDB

azure,azure-documentdb
is there an option in Azure to export an existing collection from DocumentDB? I could only seen an Import option....

Setup Codeigniter For Windows Azure

php,codeigniter,azure
I've been trying to Setup Codeigniter 3 on the Windows Azure platform,everything seems fine for the normal setup but when i uploaded my application(Which i did via github so all the files are intact) and my session is set to autoload from config,i get the error "The resource you are...

Azure: Passing credentials to constructor of ComputeManagementClient requiring incorrect type

c#,.net,azure
I'm trying to deploy an azure cloud service and VM using the .NET SDK following the instructions on https://msdn.microsoft.com/en-us/library/azure/dn722415.aspx. I'm using the SDK version 2.6 (latest). I'm having trouble creating the credential object to pass to the constructor of ComputeManagementClient. The intellisense is attempting to validate the wrong type. It...

Is it possible to configure an NServiceBus endpoint (on Azure transport) to accept a simple string as input?

azure,nservicebus,azureservicebus,nservicebus5
We have an NServiceBus endpoint that monitors an Azure Service Bus Queue (using Azure as a transport). But not all the clients that send messages to the queue are .NET-based. Can an NServiceBus endpoint be configured to accept a simple string as input? I've tried intercepting messages with a class...

Update individual instance of Azure Cloud Service

wcf,azure,azure-cloud-services
I have a cloud service hosted out in Azure. Due to the amount of data it uses, we have an hourly process that tells the service to cache data into memory. To update the cache, we use an exposed method called "RefreshData" that we invoke on a scheduled task on...

Azure data sync not syncing sql database data properly as expected

azure,sql-azure,azure-data-sync
I was checking Azure data sync functionality for azure sql databases and observed that data was not properly synced. Scenario: I have created Sync group having one hub machine [Hub1] and 2 databases one within same data center [DB1] and another from other data center [DB2]. Case: I have made...

409 Conflict when attempting to revert a Page Blob to a previous snapshot

azure,azure-storage-blobs
This issue is happening in premium storage only (SSD-backed storage). This is when attempting to revert a VHD that became corrupted in the last maintenance to a previous snapshot. This is the request being sent (method StartCopyFromBlob): PUT https://contoso.blob.core.windows.net/vhds/OS.vhd HTTP/1.1 User-Agent: WA-Storage/4.3.0 (.NET CLR 4.0.30319.34209; Win32NT 6.2.9200.0) x-ms-version: 2014-02-14 x-ms-copy-source:...

Azure - is one 'block blob' seen as one file?

azure,windows-azure-storage,azure-storage-blobs
Question background: This may be a simple question but I cant find an answer to it. I've just started using Azure storage (for storing images) and want to know if one 'blob' holds a maximum of one file? This is my container called fmfcpics: Within the container I have a...

website creation fails with serverfarm not found Azure Powershell

json,powershell,azure,server-farm
I am struggling to get the Drupal Webapp created using powershell with a GalleryTemplate Json file. It creates Serverfarm, Database servers but fails for website creation. I am not able to figure out how to move ahead as website creation need to use the created hostingplan serverfarm.It would be great...

VS2013 and Azure - deployment template validation failed, although I haven't edited neither template nor project properties

visual-studio,templates,azure
I'm trying to deploy my website to azure from visual studio. It's a pretty standard website, nothing tricky to it, and I'm using the "one click" (HA!) method of deployment from Visual Studio 2013 express. However, I don't even get as far as creating the web-app. The "create web-app on...

Azure deployment from source without TFS?

asp.net-mvc,azure,deployment
Does anyone knows if the deployment from source feature of Azure is intended to work with .NET projects ? I mean, if I put source code in the local git repository of Azure and then trigger a deploy, is my source code going to be compiled and then deployed or...

the size of a string is the same size of a image after convert the image into string?

c#,string,azure
I have uploaded an image of size X and then I convert then into a string, I need to split the string in several strings of size Y. The size of the image and the size of the string is the same? I use javascript for the conversion and then...

Add azure db to mvc5 project

asp.net,azure,visual-studio-2013,asp.net-mvc-5,sql-azure
I have a MVC 5 project using visual studio 2013. How can I add/create a database in azure from visual studio so that EF6 code first can just use and create the models? I've been browsing server explorer but there is nothing there related to azure....

Unable to publish to Azure after 2014 update

asp.net,asp.net-mvc,azure,sql-azure
I have an APS.net MVC project I have been publishing to azure for a while. I recently change laptop and moved to SQL Server 2014. Now when I try to publish I get 3 errors. The fist one looks to be the root course: Error 3 .Net SqlClient Data Provider:...

Azure Mobile Service requires authentication for SignalR HTML/Javascript Client

azure,signalr,azure-mobile-services
I have a fresh Azure Mobile Service running locally at localhost:52253. I installed the latest SignalR Nuget Package: Azure Mobile Services .NET Backend SignalR Extension 1.0.450 I also have a test HTML/Javascript client served from localhost:54697/ After working out the CORs issues, I still cannot connect to signalR hubs because...

Azure linked Resource: Web app + SQL db. What does it actually do?

azure,sql-azure,azure-web-sites
Im using Azure to develop and host my website. Im using an SQL db located in Azure. I have linked my Web App to the SQL db.. But what is the use of it? What changes for my web app that it is not linked to my db? I mean,...

Where does Azure keeps non-vm logs? Can them be downloaded programmatically?

azure
Azure keeps a bunch of VM (and cloud service) related logs in WAD* tables. The question is about actions which do not necessarily affect VMs. Say one deleted a Table Storage. Does Azure keep a log record about that? If yes, where? How to fetch them using a program/script?

How can I add a .props file to a C# project?

azure,visual-studio-2013,azure-webjobs
I am trying to set up continuous delivery of Azure Web Jobs, and came across this post from the Azure blog. One of the steps there is to add a .props file to the web job application's properties. I am having difficulty adding a .props file. My web searches indicate...

Slow Azure Table Search and Insert Operations on small tables

azure,azure-storage-tables
I am trying to benchmark search/read & insert queries on an ATS which is small size(500 entities). Average insert time is 400ms and average search + retrieve time is 190ms. When inserting, I am querying on the partition key and the condition itself is only composed of one predicate :...

Azure, login to separate accounts with one email

azure,azure-active-directory
I'm a developer that has an Azure account for my own dev stuff. I log into my dev account using [email protected] Next, I set up a client with their own Azure account, then invited myself via [email protected] and set myself as a co-administrator for the client's subscription. When I subsequently...

Azure diagnostics configuration after reimaging

azure,azure-diagnostics,windows-azure-diagnostics
With Azure SDK 2.5 the configuration of diagnostics changed. I am now configuring diagnostics with powershell command Set-AzureServiceDiagnosticsExtension. I am normally wary about changing thins in my azure deployment via powershell because I am always unsure where the things are persisted. Here's my question: When I use Set-AzureServiceDiagnosticsExtension, will it...

Active Directory membership provider using LDAP

asp.net,azure,active-directory,ldap,membership-provider
I am working on a school assignment where we handle logins to a web application written in asp.NET using Active Directory. Our Active Directory is installed on a virtual machine on Azure. When trying to login, I am presented with the following error: I have checked my connection string multiple...

How can I view asp.net Azure internal errors?

asp.net,azure
After uploading my site to Microsoft Azure, server returns this text instead of my site: "The page cannot be displayed because an internal server error has occurred." Where can I see what's the problem?...

Do I need other roles than Worker Role for a web site and service layer in Azure?

azure,azure-web-roles,azure-worker-roles,azure-cloud-services
I've deployed web sites and services to the cloud before but it was a while ago and I wanted to revisit my approach to inventorize my skills. During the research, I've been told to use a worker role but I'm not sure in what constellation to apply it. The image...

How to set ContentDisposition using Set-AzureStorageBlobContent

powershell,azure
Using Powershell (with the Azure module), this works: Set-AzureStorageBlobContent -Container $containerName -Context $context -File $localfilename -Force -Properties @{ContentType='text/plain'} This does not: Set-AzureStorageBlobContent -Container $containerName -Context $context -File $localfilename -Force -Properties @{ContentType='text/plain';ContentDisposition='attachment; filename=foo.txt'} The error message I get says, Set-AzureStorageBlobContent : Blob properties 'ContentDisposition' with value 'attachment; filename=foo.txt' is invalid...

setting up azure ad certificate auth using powershell

powershell,azure,azure-active-directory
I am attempting to setup an Azure AD application to authenticate using a certificate. I have been using this guide to successfully set this up after failing following this guide. I wish to now automate the process so it can be added to our general build scripts, looking at the...

Why does NServiceBus on Azure not use my specified endpoint name?

azure,nservicebus,nservicebus5
I have a console app that uses NServiceBus to publish a message to an Azure topic. However, NServiceBus creates a new topic with a different name, instead of the one I specified. Why is this? More details My message configuration looks as follows. This means that messages of Type 'TheResponse'...

How to avoid a 404 when deleting batches from Azure Table Storage

c#,.net,azure,azure-table-storage
Problem I am trying to delete a lot of rows from table storage that may or may not exist. The deal is I need to minimise I/O and maximise bandwidth so 1 hit to rule them all would be awesome. Problem is that if any of the batch entities doesn't...

A parameter cannot be found that matches parameter name 'MaxSizeGB'

azure,sql-azure,azure-powershell
New-AzureSqlDatabase command on execution suddently started failing with parameter not found message. MSDN link mentions the parameter as supported. https://msdn.microsoft.com/en-us/library/dn546722.aspx Command : New-AzureSqlDatabase Input PS C:\scripts>$database1 = New-AzureSqlDatabase -ServerName "lpqd0zbrseg" -DatabaseName "Database1" -Edition "Business" -MaxSizeGB 50 -Collation "SQL_Latin1_General_CP1_CI_AS" Output Error New-AzureSqlDatabase : A parameter cannot be found that matches parameter...

Kestrel Running which framework?

azure,asp.net-5,dnx,dnvm,.net-5.0
I have a new ASP.NET 5 project and setup the project.json as below; "frameworks": { "dnx451": { "dependencies": { "ExternalLibrary": "1.3.0" } }, "dnxcore50": {} } I'm running the project through Kestrel with the default command defined in project.json. "kestrel": "Microsoft.AspNet.Hosting --server Kestrel --server.urls http://localhost:5001" Everything works fine. The project...

ShardMapManager.TryGetRangeShardMap wont retrieve the RangeShardMap

c#,azure,sql-azure,azure-elastic-scale
I am trying to play around with the sample app provided by Microsoft here. This works fine for creating a new database and its shards etc. But it fails when i try to connect it to an existing DB with a single shard. It has a class named ShardManagementUtils which...

How To Update a Web Application In Azure and Keep The App Up the whole time

azure,web-applications,azure-web-sites,azure-deployment
I've a MVC Web Application (.NET) and from time to time I need to upgrade the deployment version on Azure, the problem is that I have customers that are using the Web-App and I cant take it down and make it unavailable. There is a way to deploy a new...

Update activity time on concurrent connections

c#,sql,asp.net,sql-server,azure
I have a api and on each request to this api i save/update the user activity. But the problem is, when there is 5 concurrent connections to the api from the same user, i get this: Violation of PRIMARY KEY constraint 'PK_user_act'. Cannot insert duplicate key in object 'user_activity The...

View local Azure Webjobs SDK dashboard for debugging WebJobs SDK console process

azure,azure-webjobs,azure-webjobssdk
I have a VS 2013 RC 4 Azure Webjobs project that I'm currently debugging. The project is a console project and has a function that uses a QueueTrigger attribute. I get the following errors in the console output when I run the job and insert a message to the template-mail-requests...

Control access to web apps on Azure

azure,azure-web-sites
I currently have numerous web apps which are just webapi's on Azure. I have a gateway web app that is accessible publically as it has its own authentication mechanisms. However the other web apps I don't want to be accessed publically, only the gateway web app should have access to...

Handling service bus Message.Complete() exceptions

c#,azure,servicebus,idempotent
Consider the scenario, an Azure service bus with message deduplication enabled, with a single topic, with a single subscription and an application that is subscribed to that queue. How can I ensure that the application receives messages from the queue once and only once ? Here is the code I'm...

Azure : HOWTO/BEST-Practice : Publish WebApp with Webjob using blobs Q's to multiple destinations?

visual-studio,azure,windows-azure-storage,publish
I have a webapp that I publish from VS. I have 3 publishing profiles (Test, Demo and Production). Each targets a different server on Azure, with it's own SQl behind it. I added a webjob using Queue's and Blob-storage. Again for test, demo and production I create 3 different storage...

How to expose existing REST API through Azure Service Bus (or through something else)

rest,azure,azureservicebus
I have an existing on-premise REST API from an external vendor. I'd like to expose this API unmodified to the outside world through an Azure website. So I have customers that run this API on-premise and I'm developing a PaaS/SaaS app that should access these on-premise API's. I also have...

Azure VM: Single disk (filesystem) greater than 1023 GB?

azure,azure-virtual-machine
I'm using Azure Virtual Machines, specifically Linux. I went to add a blank disk ("attach...blank disk" in the portal) and discovered that Azure only allows a maximum size of 1023GB for disks. The portal won't allow you to specify a size beyond 1023GB. What I'm looking for is a 4TB...

Enabling OPTIONS method on Azure Cloud Service (to enable CORS)

azure,cors,azure-api-management
I am developing a public API using Azure API Management, which then calls service methods in my cloud service. To allow other apps to use this API from a browser environment, I need to enable CORS in the cloud service. Enabling CORS involves handling OPTIONS requests which are sent by...

Retrieving user created roles and user info in Azure

tsql,azure,sql-azure,user-administration
I used to following to create a role in Azure SQL database, grant permissions to the role and assigned the role to the user: CREATE ROLE [DepartmentReadOnly] AUTHORIZATION [dbo] GO GRANT SELECT ON tblDepartment TO DepartmentReadOnly CREATE USER [user1] FROM LOGIN [user1]; EXEC sp_addrolemember DepartmentReadOnly, user1; Now what sql do...

Different output when run on Azure than on local build

c#,asp.net-mvc,azure,encoding
I have a C#, .NET MVC 4.5 web app with an action method which calls out to a web service with a query string parameter. Something like "[email protected]" I'm using Encoding.UTF8 and my return code looks like this: return Content(responseText); This outputs as: 6^.a308666-86 which is correct. However, when I...

C# azure download all files

c#,azure,download,storage,blobs
I want to download all Files from the Container "$logs", but a StorageException is thrown. CloudStorageAccount storageAccount = CloudStorageAccount.Parse("DefaultEndpointsProtocol=https;AccountName=" + accName + ";AccountKey=" + accKey); CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient(); CloudBlobContainer container = blobClient.GetContainerReference("$logs"); IEnumerable<IListBlobItem> ListBlobs = container.ListBlobs(string.Empty, true); foreach (var item in ListBlobs) { CloudBlockBlob blockBlob =...

It was not possible to connect to the redis server(s); to create a disconnected multiplexer

c#,azure,azure-redis-cache
I have the following piece of code to connect to azure redis cache. public class CacheConnectionHelper { private static Lazy<ConnectionMultiplexer> lazyConnection = new Lazy<ConnectionMultiplexer>(() => { return ConnectionMultiplexer.Connect(SettingsHelper.AzureRedisCache); }); public static ConnectionMultiplexer Connection { get { return lazyConnection.Value; } } } And I use it this way public static List<Models.Module>...

Authenticate against an Azure Mobile Service App with ADAL.js acquired token

c#,azure,mobile,azure-mobile-services,adal
I'm trying to authenticate a HTML app against an Azure Mobile Service app. The Setup Both apps use AAD as authentication backend, so both apps have an application registered in the Active Directory: Azure Mobile Service app: configured as described in https://azure.microsoft.com/en-gb/documentation/articles/mobile-services-how-to-register-active-directory-authentication/ I edited the manifest to enable the client...

Using MVC App to run CRUD operations on Existing Azure Database

asp.net,asp.net-mvc,azure,sql-azure
Create an ASP.NET MVC app with auth and SQL DB and deploy to Azure App Service above is a link to a tutorial that I followed to create a database and manipulate seeded data with a MVC app. I am currently learning about ASP.NET & Azure in my internship. How...

Azure mobile service pullasync not retrieving data

c#,android,azure,xamarin
I've followed all the steps described in this tutorial (for Xamarin Android) but after I query the toDoTable like this var items = await toDoTable.Where(x => x.Complete == false).ToListAsync(); at the end of OnCreate() I can't acces the data stored to the cloud, only the data that I added before...

Backing up a single file in Azure website

azure,backup,azure-web-sites
I have a website in Azure which uses a SQL CE 4.0 database. For security reasons, I want to have a backup of the database created daily and stored for two weeks. The database is fairly small (under 10 MB), but the website itself contains a huge folder with images,...

Is there a way to implement a wcf service connected to a database without paying for azure?

database,wcf,azure,windows-phone-8
It seems like everything that I read is saying that for Windows Phone 8 Development, in order to create a database that connects to my WCF Service, I need to pay for it (Azure). Is that the truth? I want to create a database that my mobile app can access...

How to remove Inbound rule from Azure loadbalancer

azure,azure-resource-manager
I have an Azure loadbalancer v2 created and wish to remove a rule from it. So, I will get a load balancer object: $loadBalancer = Get-AzureLoadBalancer -Name myLoadbalancer -ResourceGroupName myResourceGroup Then, I will try to remove a rule: Remove-AzureLoadBalancerInboundNatRuleConfig -LoadBalancer $loadBalancer -Name RuleName But, the rule stays there... Maybe I...

Trying to use Java Message Service (JMS) API with Service Bus and AMQP

java,maven,azure,amqp
I'm trying to execute this example program, but I am getting the following class not found exception: javax.naming.NoInitialContextException: Cannot instantiate class: org.apache.qpid.amqp_1_0.jms.jndi.PropertiesFileInitialContextFactory [Root exception is java.lang.ClassNotFoundException: org.apache.qpid.amqp_1_0.jms.jndi.PropertiesFileInitialContextFactory] at javax.naming.spi.NamingManager.getInitialContext(Unknown Source) at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source) at...

Azure Mobile Services: migrate to non-Azure Windows Server

asp.net,azure,azure-mobile-services
I am planning to use Windows Azure Mobile Services for a new project. As far as I am concerned, Mobile Services are closely tied to Windows Azure. So far, I'm pretty happy with Windows Azure. What if, in the future, I decide to port the functionality to a non-Azure Windows...

Windows Azure. Worker role billing

azure,billing
Can somebody tell please what is the billing policy for worker role instance? Here Cloud Services Pricing at the bottom a FAQ section tells If my deployed instance is in the "stopped" state, do I still get billed? Yes, a stopped instance still occupies the compute resource that powers the...

SoapException: Host is not known, only when called from WebService

asp.net,web-services,azure
I have a web app running .NET 4.5 on the Azure platform. As part of the web app we send leads off to a 3rd party web service. The decision was made for the front end to interact with a local web service (.asmx) via a JS AJAX call which...

Error deploying database to SQL Azure

sql-server,azure,forms-authentication,sql-azure
I'm using forms authentication to handle users and attempting to deploy my database to SQL Azure, but getting this error message: The only table of the four listed that I utilize is aspnet_Membership, and the only other table I use is aspnet_Users from implementing forms authentication. What is TextInRowSize and...

azure method blows up if the records does not exist

azure,azure-mobile-services
I am using this method from the azure mobile services tutorial: await todoTable.LookupAsync(id). I have 2 rows in a table of id 1,2. If i do await todoTable.LookupAsync(1), it works and return the record. If i do await todoTable.LookupAsync(8) to see how it's going to handle null, it just blows...

How to override Azure Sql connection in Azure portal

entity-framework,azure,sql-azure
I tried to override connectionstring in Azure portal with this connection : Server=tcp:server.database.windows.net,1433;Database=mydatabase;User [email protected];Password=xxxxxx;Trusted_Connection=False;Encrypt=True;Connection Timeout=30; It gives me an error Keyword not supported: 'server' and when I tried it as: metadata=res://*/DataAccess.MyDataBase.csdl|res://*/DataAccess.MyDataBase.ssdl|res://*/DataAccess.MyDataBase.msl;provider=System.Data.SqlClient;provider connection string=&quot;data...

Partial support in VS 2013 for certificates and symmetric keys in azure v12

azure,encryption,visual-studio-2013,sql-azure
In a Visual Studio 2013 project targeting azure v12, I get SQL70015 errors (Statement x is not supported in the targeted platform) when creating key and certificate artifacts. However, before creating independent key and certificate objects in the project, I'd had a postdeploy script add them if they didn't exist....

When upload Bitmap stream to Azure storage, it store zero/empty image

asp.net-mvc,azure,cloud
I am using below code to upload a MemoryStream from a bitmap image to my Microsoft azure storage account: MemoryStream memoryStream = new MemoryStream(); img.Save(memoryStream, System.Drawing.Imaging.ImageFormat.Png); blob.Properties.ContentType = model.File.ContentType; blob.UploadFromStream(memoryStream); What happen by use above code is it uploads an empty image to Azure storage :( !(I found the name...

azure existing vpn and gateway, add address space

azure,vpn,gateway
I have an existing side-to-side connectivity azure gateway with one local network having three different address spaces to connect to the intranet of a customer. This is up and running, working like a charm. Now I have the necessity for a fourth address space. I did add it, closed the...

Scheduled WebJob deployed via Visual Studio 2013 Update 4 results in On Demand Job

azure,visual-studio-2013,azure-web-sites,azure-webjobs
I'm using VS 2013 Update 4. I have a web job like below. After I did Publish as Azure WebJobs from Visual Studio, the job became "On Demand". Is there way to get around this today? Thank you. P.S. Is there way to modify the WebJob inside the Azure Portal?...

Can I run SignalR hub through Azure API Management?

c#,azure,signalr,azure-api-management
I have the same question as this guy this guy : can I run my SignalR hub through the Azure API management service? I cannot seem to configure it in the service: it only allows me to forward HTTP/HTTPS traffic. That matches the answer of the person in the forum...