[Application Insights] Fail to create new application using REST API

Hi,
I'm trying to create new application in Application Insights using the REST API.
I followed the instructions on
this page, but keep getting '404 Not Found', with the following error stream:
"{"error":{"code":"InvalidResourceType","message":"The resource type could not be found in the namespace 'microsoft.insights' for api version '2014-04-01'."}}"
The http method I'm using is: PUT
The request URI is:
"https://management.azure.com/subscriptions/some_real_subscription_id/resourceGroups/yonisha-new-rg/providers/microsoft.insights/component/yonisha-new-app?api-version=2014-04-01".
Can you please advice what am I doing wrong?
Few things:
I tried both with existing/non-existing resource group.
I set the Content-Length header to '0' (otherwise the server returns an error the the length is required).

Try the API Version "2014-08-01" and also make sure you are sending a location of "Central US" (its the only location available right now).  An example of a PowerShell call that works is below.  I would also suggest checking
out the new https://resources.azure.com/ which can help you construct the REST call.
New-AzureResource -Name TestAppInsights -ResourceGroupName TestRG -ResourceType "Microsoft.Insights/Components" -Location "Central US" -ApiVersion "2014-08-01"

Similar Messages

  • Create List Item using REST API

    Hi All
      I try create list item using REST in SharePoint 2013.  when code is try add new item in list , getting error :
    A node of type 'EndOfInput' was read from the JSON reader when trying to read the start of an entry. A 'StartObject' node was expected.
    Please help me
    function addData() {
    var title = $('#txtTitile').val();
    //alert(title);
    var items = {
    __metadata: { "Type": "SP.Data.OrderDetailsListItem"},
    Title:title
    var exec = new SP.RequestExecutor(appweburl);
    exec.executeAsync(
    url: appweburl + "/_api/SP.AppContextSite(@target)/web/lists/getbytitle('OrderDetails')/Items?@target='" + hostweburl + "'",
    method: "POST",
    data: JSON.stringify(items),
    headers: {
    Accept: "application/json;odata=verbose",
    "Content-Type": "application/json;odata=verbose",
    "X-RequestDigest": $("#__REQUESTDIGEST").val()
    success: function (data) { alert(JSON.parse(data)); },
    error: function (error)
    { alert(JSON.stringify(error)); }
    with Regards Sivam

    Hi,                                                             
    Here is a demo which works in my environment for your reference:
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
    <script type="text/javascript">
    $(document).ready(function()
    $("#Button1").click(function(){
    createListItemWithDetails("list2", "http://sp2013sps", "item1");
    // Getting the item type for the list
    function GetItemTypeForListName(name) {
    //alert("GetItemTypeForListName: "+name);
    return"SP.Data." + name.charAt(0).toUpperCase() + name.slice(1) + "ListItem";
    // CREATE Operation
    // listName: The name of the list you want to get items from
    // siteurl: The url of the site that the list is in. // title: The value of the title field for the new item
    // success: The function to execute if the call is sucesfull
    // failure: The function to execute if the call fails
    function createListItemWithDetails(listName, siteUrl, title) {
    var itemType = GetItemTypeForListName(listName);
    //alert("itemType :"+itemType);
    var item = {
    "__metadata": { "type": itemType },
    "Title": title
    $.ajax({
    url: siteUrl + "/_api/web/lists/getbytitle('" + listName + "')/items",
    type: "POST",
    contentType: "application/json;odata=verbose",
    data: JSON.stringify(item),
    headers: {
    "Accept": "application/json;odata=verbose",
    "X-RequestDigest": $("#__REQUESTDIGEST").val()
    success: function (data) {
    location.href=location.href;
    //success(data);
    error: function (data) {
    alert("error");
    //failure(data);
    </script>
    <input id="Button1" type="button" value="Run Code"/>
    Best regards
    Patrick Liang
    TechNet Community Support

  • Create new application

    Hi Iam new to workshop. I downloaded 10.3 from
    http://www.oracle.com/technology/software/products/ias/bea_main.html
    I would like to create new application.
    I dont see Application option.
    in File->new.
    I see Project and etc. But not Application.
    Did I miss any thing . Pls advice.
    Ravi UK

    Hi Ravi,
    From 9.x weblogic start using workshop in form of Eclipse plugin so when we use Eclipse then application is treated as Enterprise project so we need to create Enterprise project and then open any other specific project like Dynamic webproject or EJB project simple java project etc.
    Or we can also able to create direct web dynamic project or direct simple java project.
    For more details please go to Help >> Help contents in your workshop.
    you will find document which gives more details about the creation project and different types of project.
    Please follow the first Basic tutorial you will understand about the workshop completely.
    Regards,
    Kalyan Pasupuleti.

  • How to Create New Application for iPhone

    Hi,
    Can anyone guide me how to create New Applications for the iPhone.
    Regards,
    Mustafa Ali Qizilbash

    If you think Apple's is making a profit off the $99 it collects for the iPhone Developer Program membership, you're badly underestimating how much it costs to run the program.

  • Shortdump when creating new Application set

    Hi All,
    We have a newly installed BPC system (BPC 7.0, SP 02).
    We are facing issues when creating new Application Set. Although on the .Net server it shows that the creation of appset was successful, in SM37 Copy AppSet job is terminated with Shortdump "Raise_Exception, X_Message". 
    I can see the new appset in RSA1, however not all dimensions and applications are copied from Apshell.
    I've seen SAP Note: 1420399, which says that this type of issue happens when the user does not have sufficient access. But we are facing same issue with admin user who has full access.
    Any pointers in resolving this issue would be highly appreciated.
    Thanks in advance.
    Regards,
    Meera

    Please verify you have followed the following steps from the installation guide.
    These steps are required for proper functioning of the Business Planning and Consolidation software:
    1. Set the /CPMB/ namespace to changeable:
    a) Go to transaction SE06 and choose System Change Option.
    b) Make sure that the BPC Addon is set to Restricted Modifiability.
    c) Set the /CPMB/ namespace to Modifiable.
    2. Set the /B28/ namespace to changeable:
    a) Go to transaction SE06 and choose System Change Option.
    b) Make sure that the BPC Addon is set to Restricted Modifiability.
    c) Set the /B28/ namespace to Modifiable.
    Thanks and best regards,
    [Jeffrey Holdeman|http://wiki.sdn.sap.com/wiki/display/profile/Jeffrey+Holdeman]
    SAP BusinessObjects
    Enterprise Performance Management
    Regional Implementation Group

  • Creating new file using report generation express vi

    Hello,
    In my application, I need to write certain data in excel sheet. For that I created an excel template and I used the express vi in report generation toolkit to save the appropriate data in appropritate columns. I need a new file created everyday by that day's name and write the data to it rest of the day. I am having problems creating new file using this express vi. I tried using the low level vi's but not been able to it properly.
    Attaching my code and excel template.
    Please help.
    Thanks!
    Solved!
    Go to Solution.
    Attachments:
    excel write2.vi ‏119 KB
    Book2111.xltx ‏8 KB

    r_te wrote:
    The thing is everyday there cannot be a file provided.
    Sure there can.  Don't you see the input on the Express VI for a file? "Path To Save Report" is the name of the input you want.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Copy an application with plugins into a new application and change theme...

    I copied an application (theme 23) with plugins into a new application and then changed the theme to theme 26. After that, all plugins (skillbuilders super lov, skillbuilders modal, and notification plugin) didn't work at all. However, when I changed the theme back to the original theme, things worked.
    I have applications that use theme 26 with plugins and they all work fine. I think the problem is related to copying one application, containing plugins, into a new application. Does anyone have any idea of it?
    Thanks.

    Hi,
    Most plugins have css,images or js files which can be placed on the server.
    It might be that you have placed those files on the server in the theme directory.
    If you change the theme then the plugin can not find those files any more.
    Regards,
    Kees Vlek
    <tt>Company: http://www.orcado.nl
    Blog: http://www.orcado.nl/blog/blogger/listings/69-kvlek
    Twitter: http://www.twitter.com/skier66</tt>
    If the question is answered please change it to answered.

  • Win8RP: Failed to create new process "...javaw.exe" - Invalid argument

    Hi all,
    we have a huge Java (JRE 6.0.310.5) app that works fine on the Win 8 CTP, but on RP:
    Failed to create new process "C:\Program Files (x86)\...\jre\bin\javaw.exe" - Invalid Argument
    Thanks for any insight
    G.

    Hi,
    Based on the error message 'Caused by: com.sap.engine.services.jmx.exception.JmxSecurityException: Caller J2EE_GUEST not authorized, only role administrators is allowed to access JMX' , this note shall solve this issue:
    948970 - Caller J2EE_GUEST not authorized, only role administrators
    Also check if the ADSUSER and ADS_AGENT have the correct password and the respective roles.
    944221  - Error analysis for problems in form processing (ADS)
    Which is your NW version?
    Regards,
    Lucas Comassetto.

  • Failed to create new user null

    All Experts
    I am getting the following error message when I am trying to start Java Engine. I am trying to add Java Add on to the ABAP Stack. This was taken from security.0.log .
    #1.5#001143312344001E00000003000006B400044C1E4BBCD4E7#1209592910253#/System/Security/UserStoreUME##com.sap.security.core.server.userstore.UserContextUME#######SAPEngine_System_Thread[impl:5]_14##0#0#Error#1#com.sap.security.core.server.userstore.UserContextUME#Plain###
    Failed to create new user null#
    #1.5#001143312344001E00000005000006B400044C1E4BBCFE64#1209592910253#/System/Security/UserStoreUME##com.sap.security.core.server.userstore.UserContextUME.engineCreateUser(String)#######SAPEngine_System_Thread[impl:5]_14##0#0#Info#1#com.sap.security.core.server.userstore.UserContextUME#Java###Created new user #1#<null>#
    #1.5#001143312344001E00000006000006B400044C1E4BBCFFBA#1209592910253#/System/Security/UserStoreUME##com.sap.security.core.server.userstore.UserContextUME#######SAPEngine_System_Thread[impl:5]_14##0#0#Error#1#/System/Security/UserStoreUME#Java###Error during creation of default users or role assignments: #1#
    Could not create user null: LOGONID_IS_NULL#
    #1.5#001143312344001E00000008000006B400044C1E4BBD03D0#1209592910253#/System/Security##com.sap.engine.services.userstore.UserContext.<init>(UserContextSpi, Properties)#######SAPEngine_System_Thread[impl:5]_14##0#0#Fatal#1#com.sap.engine.services.userstore#Plain###Can not instantiate UserContext with given properties.#
    #1.5#001143312344001E0000000B000006B400044C1E4BBD5C7C#1209592910284#/System/Security##com.sap.engine.services.security#######SAPEngine_System_Thread[impl:5]_14##0#0#Error#1#com.sap.engine.services.security#Java#security_0001#com.sap.engine.services.security.exceptions.SecurityResourceBundle#Unexpected exception:##
    Please suggest

    Hi Prasanna
    I am getting this error while installing the Java Add-on. The installation was in the last stage and there it got struck when it tried to reboot the java engine. I am using SAPJSF user to communicate with ABAP stack and it has the full authorizations. I even checked and see that SAPJSF user is not locked. I also tried with another user and still the same issue. As per the log it the java engine is able to login with the user, but it is trying to create a user and fialing there. I am not sure why it is creating this user.
    Regards,
    Mahesh

  • Am unable to download/updaate ACR on windows 8.1 and CS6.  Get error "Application Manger Damaged".  Downloaded new application manager, same result.  How to proceed?

    Have just upgraded to new computer running windows 8.1 and downloaded CS6.  Unable to upload Nikon D800 raw files, but can upgrade Canon G10 raw files.  When I try to upgrade ACR, I get error message "Application Manager Damaged", so download new Application Manager with the same result.  CS6 came with ACR 7.0.0.308 which seems like it should process the D800 raw files.  How do I proceed?

    update by downloading the files directly and then applying them:
    pre cc updates:  http://www.adobe.com/downloads/updates/
    cc updates:  http://prodesigntools.com/adobe-cc-updates-direct-links-windows.html
    cc 2104 updates:  http://prodesigntools.com/adobe-cc-2014-updates-links-windows.html

  • Failed to create new Authentication Context

    Hi guys!
    Any idea why i'm getting the following error?
    Caused by: com.sun.identity.authentication.spi.AuthLoginException: Failed to create new Authentication Context: {0}
    at com.sun.identity.authentication.AuthContext.login(AuthContext.java:620)
    at com.sun.identity.authentication.AuthContext.login(AuthContext.java:524)
    at com.sun.identity.authentication.AuthContext.login(AuthContext.java:383)
    Thanks a lot

    There could be various reasons for this. You need to provide more details.

  • Failed to create new JCO client connection WD_FLIGHTLIST_RFC_METADATA_DEST:

    I tried the demo in SDN, but failed .
    Why?

    Sorry I forget posting the msg:
    for WD_FLIGHTLIST_MODELDATA_DEST:
    nnection for 'WD_FLIGHTLIST_MODELDATA_DEST' was sucessfully tested with user 'ZZHZHU'
    But :
    for WD_FLIGHTLIST_RFC_METADATA_DEST:
    Failed to create new JCO client connection WD_FLIGHTLIST_RFC_METADATA_DEST: com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscapeException: Error while obtaining JCO connection. at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnection(SystemLandscapeFactory.java:140) at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.createJCOClientConnection(SystemLandscapeFactory.java:286) at com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscape.createJCOClientConnection(WDSystemLandscape.java:107) at com.sap.tc.webdynpro.tools.sld.ButtonBar.onActionFinish(ButtonBar.java:224) at com.sap.tc.webdynpro.tools.sld.wdp.InternalButtonBar.wdInvokeEventHandler(InternalButtonBar.java:252) at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87) at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67) at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleAction(WebDynproMainTask.java:100) at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:299) at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:640) at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59) at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:251) at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154) at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116) at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:391) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:265) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:345) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:323) at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:865) at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:240) at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92) at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37) at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged1(Native Method) at java.security.AccessController.doPrivileged(AccessController.java:321) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162) Caused by: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to resolve connection parameter for WD_FLIGHTLIST_RFC_METADATA_DEST at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter4MsgServerJCODestinaton(JCOClientConnection.java:664) at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter(JCOClientConnection.java:508) at com.sap.tc.webdynpro.serverimpl.core.sl.AbstractJCOClientConnection.init(AbstractJCOClientConnection.java:247) at com.sap.tc.webdynpro.serverimpl.core.sl.AbstractJCOClientConnection.<init>(AbstractJCOClientConnection.java:221) at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.<init>(JCOClientConnection.java:101) at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnection(SystemLandscapeFactory.java:138) ... 31 more Caused by: java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:474) at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter4MsgServerJCODestinaton(JCOClientConnection.java:558) ... 36 more

  • Creating new services using ORADIM utility

    Hi,
    i have Oracle 11g R1 on windows XP service pack 3 platform.
    i am having some issue while creating new services using ORADIM utility.
    The Errors are:
    18:13:28 SYS@vik 24-MAY-11> host oradim -delete -sid vik
    Instance deleted.
    18:13:52 SYS@vik 24-MAY-11> host oradim -new -sid vik -intpwd oracle -startmode A -maxusers 100 -pfile D:\app\vikash.chauradia\product\11.1.0\db_1\database\initvik.ora -timeout 60
    OPW-00005: File with same name exists - please delete or rename
    Instance created.
    Error while deleting value, OS Error = 2
    Can anyone please help me to fiinf the solution?
    Thanks and regards,
    Vikash Chauradia(DBA Trainee)

    Vikash Chauradia(Junior DBA) wrote:
    Hi,
    i have Oracle 11g R1 on windows XP service pack 3 platform.
    i am having some issue while creating new services using ORADIM utility.
    The Errors are:
    18:13:28 SYS@vik 24-MAY-11> host oradim -delete -sid vik
    Instance deleted.
    18:13:52 SYS@vik 24-MAY-11> host oradim -new -sid vik -intpwd oracle -startmode A -maxusers 100 -pfile D:\app\vikash.chauradia\product\11.1.0\db_1\database\initvik.ora -timeout 60
    OPW-00005: File with same name exists - please delete or rename
    Instance created.
    Error while deleting value, OS Error = 2
    check for the files in ORACLE_HOME/database. You have dropped existing instance and creating service again, move all the files to other folder then create using ORADIM

  • JCo client connection Failed to create new JCO client connection

    hi All
    I am trying to create a new JCO destination ion CE7.1 webdynpro content Admin. but I am getting following error.
    Exception while creating JCo client connection Failed to create new JCO client connection weter: com.sap.lcr.api.cimclient.LcrException: CIM_ERR_ACCESS_DENIED: User is not in role LcrInstanceWriterLD at com.sap.lcr.api.cimclient.SimpleResponseAnalyser.raiseExceptionOnError(SimpleResponseAnalyser.java:120) at com.sap.lcr.api.cimclient.SimpleResponseAnalyser.getIResult(SimpleResponseAnalyser.java:53) at com.sap.lcr.api.cimclient.CIMOMClient.sendImpl(CIMOMClient.java:220) at com.sap.lcr.api.cimclient.CIMOMClient.send(CIMOMClient.java:148) at com.sap.lcr.api.cimclient.CIMOMClient.createInstanceImpl(CIMOMClient.java:669) at ......
    SLD is Up and running
    CIM data is imported
    Solution tried :
    1) As no role wtih name LcrInstanceWriterLD was existing in the server ,hence created a new role with same name and assigned the LCR related action . Assigned the role to the user through which we are creating JCOs.
    But we still getting the same error.
    regards
    Poonam

    Hi Poonam!
    Got to dig in the past a bit, I remember Users being able to create SLD object have to have certain permissions set in the J2EE UME. Simple Admin rights do not suffer, if I recall right.
    Unfortunately I cannot go further in detail because this issue has been solved by a long gone collegue of mine.
    Good luck anyway!
    Jürgen

  • Creating new Positions using RH_CREATE_POSITIONS?

    Hi
    I tried to use the RFC rh_create_positions to create new positions using C#. But
    i get an error:"Screen output without connection to user".
    Well is there any work around for it or is there any other RFC/BAPI i can use to create positions under an org unit.
    any suggestions are welcome!!!!!
    thanks

    Yes, the BAPI doesn't create the position ID.  You need three tables to be populated for update
    1. hr_object_header - one entry for entire update
    2. hr_infotype_header - one entry for each infotype record update
    3. pd_object - required if you have IT1000 in hr_infotype_header
    4. pd_object_relationships - required if you have IT1001 in hr_infotype header
    Similarly all other tables need update based on records on hr_infotype_header.
    Regards

Maybe you are looking for

  • Power Mac G4 sleep problem

    Hello! My G4 (mdd) won't go to sleep anymore. Neither on its own via energy saver nor when you press the power button or select sleep in the apple menu. Does anyone know what to do? I already unplugged my USB devices, didn't help. Then I trashed my e

  • Revised IT Slab and Int From House Property not coming properly

    Dear Experts ,     I have applied the SAP Note of Legal Budget Changes 2014 - 2044885 & 2041819. After applying that ,We are not getting the correct Tax Deduction and income from House Property(Self Occupied). We have maintained the IT 0584 as 200000

  • Service Options for ES 5000

    What are my options to have an es5000 camcorder serviced? Thanks for a response  I have used this since 1995 and NEVER had to have it service until now with a "stuck" ejector. To me its a Canon "Super Star"

  • I have a HP pavilon DV4 that i'm trying to fix.

    i have a HP pavilon DV4 that i'm trying to fix. i need to reinstall windows 7. i don't have the cd recovery

  • HT1390 Difficulties with movie rental! Help!!

    I downloaded a movie rental and watched two thirds of it. I stopped in and now can't get back into it. It only shows a stop sign and won't let me start the movie again.