azure

How to setup ContentType for Azure ServiceBus from Spring JMS

ε祈祈猫儿з 提交于 2021-02-11 12:24:40
问题 I'm trying to use library azure-servicebus-jms-spring-boot-starter to send messages to topic. Everything works, however messages are being stored in subscriptions as application/xml type and I can't find the way how to setup this correctly to have them stored as application/json . I've tried to configure message converter to send ContentType as described here but that doesn't work either. @Bean public MessageConverter jacksonJmsMessageConverter() { final MappingJackson2MessageConverter

How to disable Enable connection to IoT Hub?

烂漫一生 提交于 2021-02-11 12:23:09
问题 I am rehistering succesfully a device in a Azure IoT hub via device provisioning service, but i want to disable the property Enable connection to IoT Hub to disable for every registered device. Is there any way to do this from the code. 回答1: You can use the REST API that allows to create or update enrollments (either group enrollments or single enrollments), in particular the provisioningStatus flag. (there is a similar API for individual enrollments). Next time your device tries to use DPS

Http request blocked by Azure WAF, how to do right encoding?

不想你离开。 提交于 2021-02-11 12:23:07
问题 I'm running a asp.net web application on Azure, I have an Application Gateway in front of it, enable the WAF (Web application Firewall). But many of my http requests from the front-end are blocked by the WAF, for example my payload in JSON: [{"inputtype":"text","name":"wwwwww","memo":"","score":1,"sort":1,"isrequired":false,"allowseeresult":false,"choicenummin":null,"choicenummax":null,"options":[]}] The error message is: "message": "Warning. Pattern match \"((?: [\\\\~\\\\!\\\\@\\\\#\\\\$\\\

Migrate JSON data from Azure SQL DB to Cosmos DB results in string values

匆匆过客 提交于 2021-02-11 12:20:42
问题 I'm trying to migrate data from SQL DB using CosmosDB Data Migration Tool and I successfully migrated data from SQL DB but the result is all values are string Wondering if there's a way to convert those JSON to Object during migration process? Here's my sample Query select json_value(Data, '$.timestamp') as timestamp, json_query(Data, '$.Product.detail') as [Product.detail], json_value(Data, '$.Product.price') as [Product.price] from myTable nesting seperator: . 回答1: 1.create a dataflow and

How can we configure CI for the iOS app with App Extensions

那年仲夏 提交于 2021-02-11 12:17:58
问题 I have tried multiple things in Azure DevOps (VSTS) to create CI for the iOS app but turns out that Azure DevOps doesn't support the apps that have App extensions. Is it really the case? I'm using the OneSignal Notification Service Extension in our project which is dependent on the main target. So, when Xcode task tries to sign the app an error occurs related to the build identifiers as the Xcode main target has a different build identifier than OneSignalNotificationServiceExtension's build

How can we configure CI for the iOS app with App Extensions

淺唱寂寞╮ 提交于 2021-02-11 12:17:31
问题 I have tried multiple things in Azure DevOps (VSTS) to create CI for the iOS app but turns out that Azure DevOps doesn't support the apps that have App extensions. Is it really the case? I'm using the OneSignal Notification Service Extension in our project which is dependent on the main target. So, when Xcode task tries to sign the app an error occurs related to the build identifiers as the Xcode main target has a different build identifier than OneSignalNotificationServiceExtension's build

Option to saving and not saving UTC time in Azure Table

♀尐吖头ヾ 提交于 2021-02-11 12:13:56
问题 It seems to me that Azure Table always saves UTC time to the table. Even the date type has time zone, e.g. DateTimeOffset . Is there an option to save original time, instead of UTC time? 回答1: Is there an option to save original time, instead of UTC time? If you are looking to save the data as Edm.DateTime , then the answer is no. That data is always stored as UTC. From this link about Edm.DateTime: A 64-bit value expressed as Coordinated Universal Time (UTC). The supported DateTime range

Option to saving and not saving UTC time in Azure Table

大城市里の小女人 提交于 2021-02-11 12:06:07
问题 It seems to me that Azure Table always saves UTC time to the table. Even the date type has time zone, e.g. DateTimeOffset . Is there an option to save original time, instead of UTC time? 回答1: Is there an option to save original time, instead of UTC time? If you are looking to save the data as Edm.DateTime , then the answer is no. That data is always stored as UTC. From this link about Edm.DateTime: A 64-bit value expressed as Coordinated Universal Time (UTC). The supported DateTime range

Deploying a self signed ceritificates in an Azure webapp

六眼飞鱼酱① 提交于 2021-02-11 11:52:30
问题 I have created a webapp in Azure and deployed few webapi 2 services. It is not a cloud service. No web and worker roles involved. No public domain name is attached to it. Also I don't want to use the default Microsoft certificate. Is it possible to install a self signed certificate to that webapp to enable https? 回答1: Yes it is possible, you can use a "cloudapp.net" domain for this, but only for test purposes as Microsoft documentation explains: For test purposes, you can create and use a

Compiling Azure Function v1 (.NET Framework) gives FileNotFoundException for Microsoft.Azure.WebJobs

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-11 09:40:19
问题 I have an Azure Functions v1 project (ala .NET Framework) in Visual Studio 2017. It would build / compile just fine for a long time, now it's giving the following FileNotFoundException complaining it can't find 'Microsoft.Azure.WebJobs' v2.2. The thing it this project was building just fine, then all of a sudden this error is occurring. In the past I would close Visual Studio, then reopen it and the build would work. Or even if you Clean the solution, the build would then work. The problem is