Samples

We want to help you to create great applications on Azure by providing a comprehensive list of code samples. To do this, we need your help to decide where our resources should be applied.

Is there a Azure code sample that you need? Or is there an existing sample that could be improved?

Please use your vote or create a new suggestion to give your feedback. Thank you!

I suggest you ...

You've used all your votes and won't be able to post a new idea, but you can still search and comment on existing ideas.

There are two ways to get more votes:

  • When an admin closes an idea you've voted on, you'll get your votes back from that idea.
  • You can remove your votes from an open idea you support.
  • To see ideas you have already voted on, select the "My feedback" filter and select "My open ideas".
(thinking…)

Enter your idea and we'll search to see if someone has already suggested it.

If a similar idea already exists, you can support and comment on it.

If it doesn't exist, you can post your idea so others can support it.

Enter your idea and we'll search to see if someone has already suggested it.

  1. Start answering on github pull requests faster than 1-2 months after initial PR came

    It's not about some specific samples... Microsoft just working with samples on GitHub like we are not maintaining our samples.

    My pull requests without answers from 6-7 of May 2017 were ignored 1.5months with any answers from Microsoft.

    1 vote
    Vote
    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      You have left! (?) (thinking…)
      0 comments  ·  Flag idea as inappropriate…  ·  Admin →
    • Mobile Apps & Mobile Apps Files SDK using RLS (Azure AD B2C)

      Extend the existing samples for Mobile Apps & Mobile Apps Files SDK to use RLS for Azure SQL & manage access to only specific Blobs/Containers in .NET based on Azure AD B2C

      3 votes
      Vote
      Sign in
      Check!
      (thinking…)
      Reset
      or sign in with
      • facebook
      • google
        Password icon
        I agree to the terms of service
        Signed in as (Sign out)
        You have left! (?) (thinking…)
        0 comments  ·  Code Gallery  ·  Flag idea as inappropriate…  ·  Admin →
      • Code sample to play mpeg-dash silverlight ismv

        Code sample to play mpeg-dash Silverlight ismv files

        1 vote
        Vote
        Sign in
        Check!
        (thinking…)
        Reset
        or sign in with
        • facebook
        • google
          Password icon
          I agree to the terms of service
          Signed in as (Sign out)
          You have left! (?) (thinking…)
          0 comments  ·  Flag idea as inappropriate…  ·  Admin →
        • Write mock tests for simulating uploading, downloading files and error handling

          Show us how to write repeatable Mock tests which simulate downloading and uploading files to and from the remote server and tests that mock potential errors thrown e.g. files not found, disrupted connection, corrupted file, virus detected, status codes etc.

          3 votes
          Vote
          Sign in
          Check!
          (thinking…)
          Reset
          or sign in with
          • facebook
          • google
            Password icon
            I agree to the terms of service
            Signed in as (Sign out)
            You have left! (?) (thinking…)
            0 comments  ·  Code Gallery  ·  Flag idea as inappropriate…  ·  Admin →
          • Drag and Drop file explorer using ASP.NET MVC and Azure

            Show users how to code Drag and Drop files into a browser window using ASP.NET MVC and Azure. Files should be uploaded automatically to Azure and show all files in the remote destination folder. This functionality in action would be much more usable than how Dropbox's UI currently is.

            3 votes
            Vote
            Sign in
            Check!
            (thinking…)
            Reset
            or sign in with
            • facebook
            • google
              Password icon
              I agree to the terms of service
              Signed in as (Sign out)
              You have left! (?) (thinking…)
              0 comments  ·  Codeplex  ·  Flag idea as inappropriate…  ·  Admin →
            • ContinuationTokens in TableStorageClient BeginExecuteQuerySegmented

              I need to use continuation tokens in BeginExecuteQuerySegmented and have no idea how to implement this.

              Ideally I'd like to hook this up to TPL or TPL Dataflow so I can process entries as they are read in in batches of 100.

              Here is what I have on StackOverflow
              http://stackoverflow.com/q/13426430/328397

              13 votes
              Vote
              Sign in
              Check!
              (thinking…)
              Reset
              or sign in with
              • facebook
              • google
                Password icon
                I agree to the terms of service
                Signed in as (Sign out)
                You have left! (?) (thinking…)
                0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                under review  ·  Jason RothJason Roth responded

                Thank you for the samples suggestion. I apologize for the very delayed response. I see that some solutions have been provided on StackOverflow in the thread you mentioned. However, we will look into whether we could use an actual sample on this. Thanks.

              • Azure InstanceInput endpoint usage

                Can you please post a sample code for using InstanceInput endpoints?
                I used the below configuration in a worker role where a sample WCF service listens at port 8080.

                <Endpoints>
                <InstanceInputEndpoint name="InstanceAccess" protocol="tcp" localPort="8080">
                <AllocatePublicPortFrom>
                <FixedPortRange max="10105" min="10101" />
                </AllocatePublicPortFrom>
                </InstanceInputEndpoint>
                </Endpoints>

                But I was not able to access this WCF service from an external consumer using any of the ports 10101 to 10105. Should we use the public DNS name of the Azure service along with the public ports in the give range?

                Also, I was not able to access this endpoint details from within the worker role OnStart()…

                5 votes
                Vote
                Sign in
                Check!
                (thinking…)
                Reset
                or sign in with
                • facebook
                • google
                  Password icon
                  I agree to the terms of service
                  Signed in as (Sign out)
                  You have left! (?) (thinking…)
                  0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                • Windows Azure Storage REST APIs

                  Samples that demonstrate using the Storage Services REST APIs (http://msdn.microsoft.com/en-us/library/windowsazure/dd179355.aspx).

                  8 votes
                  Vote
                  Sign in
                  Check!
                  (thinking…)
                  Reset
                  or sign in with
                  • facebook
                  • google
                    Password icon
                    I agree to the terms of service
                    Signed in as (Sign out)
                    You have left! (?) (thinking…)
                    0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                  • connect to SQL Azure with a NETMF device

                    A sample tutorial for connecting a NETMF device, FEZ Panda II or Cobra, to SQL Azure would be great

                    5 votes
                    Vote
                    Sign in
                    Check!
                    (thinking…)
                    Reset
                    or sign in with
                    • facebook
                    • google
                      Password icon
                      I agree to the terms of service
                      Signed in as (Sign out)
                      You have left! (?) (thinking…)
                      0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                      under review  ·  Jason RothJason Roth responded

                      I apologize for the delay. I’m looking into what samples might exist for this request. Thank you.

                    • Samples for integration with Office365

                      Integration of Sharepoint and Exchange with Azure apps (Silverlight and asp.net)

                      9 votes
                      Vote
                      Sign in
                      Check!
                      (thinking…)
                      Reset
                      or sign in with
                      • facebook
                      • google
                        Password icon
                        I agree to the terms of service
                        Signed in as (Sign out)
                        You have left! (?) (thinking…)
                        1 comment  ·  Flag idea as inappropriate…  ·  Admin →
                        under review  ·  Jason RothJason Roth responded

                        Thank you for this samples suggestion. I apologize for the long delay. I believe there are a lot of various samples out now for this. I will try to find some good ones to post here. If you have more specifics about what you are looking for, please add more details to the comments of this thread. Thank you.

                      • 45 votes
                        Vote
                        Sign in
                        Check!
                        (thinking…)
                        Reset
                        or sign in with
                        • facebook
                        • google
                          Password icon
                          I agree to the terms of service
                          Signed in as (Sign out)
                          You have left! (?) (thinking…)
                          3 comments  ·  Flag idea as inappropriate…  ·  Admin →
                        • WF4 & Persistence

                          How to utilize WF4 in Azure. Specially long run workflows with persistence.

                          12 votes
                          Vote
                          Sign in
                          Check!
                          (thinking…)
                          Reset
                          or sign in with
                          • facebook
                          • google
                            Password icon
                            I agree to the terms of service
                            Signed in as (Sign out)
                            You have left! (?) (thinking…)
                            1 comment  ·  Flag idea as inappropriate…  ·  Admin →
                            under review  ·  Jason RothJason Roth responded

                            I need to review what we currently have and what might be planned. Thank you.

                          • silverlight pivot /Deepzoom collection using private blob containers

                            I want to generate Deepzoom images of hi resolution images. However, I want these to be stored in a private blob container. Is there a way to do this and still use these files in a silverlight pivot viewer?

                            6 votes
                            Vote
                            Sign in
                            Check!
                            (thinking…)
                            Reset
                            or sign in with
                            • facebook
                            • google
                              Password icon
                              I agree to the terms of service
                              Signed in as (Sign out)
                              You have left! (?) (thinking…)
                              0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                              under review  ·  Jason RothJason Roth responded

                              This question seems like it might best be handled in the forums rather than a sample. I will investigate and see whether there is a samples opportunity here or some other action we can take on this. Thank you.

                            • SharePoint Integration with Azure

                              Code demonstrating reading and writing to SharePoint from Azure and vice-versa.

                              1 vote
                              Vote
                              Sign in
                              Check!
                              (thinking…)
                              Reset
                              or sign in with
                              • facebook
                              • google
                                Password icon
                                I agree to the terms of service
                                Signed in as (Sign out)
                                You have left! (?) (thinking…)
                                1 comment  ·  Flag idea as inappropriate…  ·  Admin →
                                under review  ·  Jason RothJason Roth responded

                                This is related to another Samples request. I will look into the samples we have today on SharePoint integration with Windows Azure and update this request. Thank you.

                              • How to work with office automation in windows Azure

                                We have an application which uses microsoft excel for creating reports in application.There are no concrete solution till now to sole the problem .
                                So if you provide some sample example it would be very nice.

                                4 votes
                                Vote
                                Sign in
                                Check!
                                (thinking…)
                                Reset
                                or sign in with
                                • facebook
                                • google
                                  Password icon
                                  I agree to the terms of service
                                  Signed in as (Sign out)
                                  You have left! (?) (thinking…)
                                  1 comment  ·  Flag idea as inappropriate…  ·  Admin →
                                  under review  ·  Jason RothJason Roth responded

                                  I’m reviewing this samples request for office automation in Windows Azure. I believe this would be possible in a Windows Azure Virtual Machine. Are you interested in doing this in Cloud Services or Web Sites as well? I will investigate to see what we have out there. I apologize for the delayed response. Thank you.

                                • 1 vote
                                  Vote
                                  Sign in
                                  Check!
                                  (thinking…)
                                  Reset
                                  or sign in with
                                  • facebook
                                  • google
                                    Password icon
                                    I agree to the terms of service
                                    Signed in as (Sign out)
                                    You have left! (?) (thinking…)
                                    0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                    under review  ·  Jason RothJason Roth responded

                                    I apologize for the delayed response. We’re looking at this samples request, and it would be great to have some more details on it. Can you provide some additional details on the scenario. Considering the age of the request, you might already have a solution or sample that you’ve since found. Thank you.

                                  • How to work around 30 second OnStop timeout before force Shutdown

                                    If my role has a task that must complete but takes 45 seconds, I cannot do so in a RoleEntryPoint OnStop method. I need to work around this.

                                    2 votes
                                    Vote
                                    Sign in
                                    Check!
                                    (thinking…)
                                    Reset
                                    or sign in with
                                    • facebook
                                    • google
                                      Password icon
                                      I agree to the terms of service
                                      Signed in as (Sign out)
                                      You have left! (?) (thinking…)
                                      0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                      under review  ·  Jason RothJason Roth responded

                                      I’m not sure that there is a work around for the 30 second OnStop time limit. I will look into this and update this samples request. Thank you.

                                    • sharding

                                      Have some on a workaround in F# using Tuples, same idea could be used in C#, the first item is your federationID (any scope), the second the original entity; realize SQL Azure is getting the FEDERATION statement this spring, this worked pretty good for in between.

                                      11 votes
                                      Vote
                                      Sign in
                                      Check!
                                      (thinking…)
                                      Reset
                                      or sign in with
                                      • facebook
                                      • google
                                        Password icon
                                        I agree to the terms of service
                                        Signed in as (Sign out)
                                        You have left! (?) (thinking…)
                                        0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                        under review  ·  Jason RothJason Roth responded

                                        I apologize for the very long delay on this response. For your idea of using Tuples for sharding, I would like to understand it better. Can you describe the advantage that you get from using Tuples? Or can you give a quick description of a few items being added and how they go to (or are accessed from) the appropriate sharded database? Thank you.

                                      • 55 votes
                                        Vote
                                        Sign in
                                        Check!
                                        (thinking…)
                                        Reset
                                        or sign in with
                                        • facebook
                                        • google
                                          Password icon
                                          I agree to the terms of service
                                          Signed in as (Sign out)
                                          You have left! (?) (thinking…)
                                          2 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                        • Effitiently upload and download blobs which handles timeout, retrypolicies

                                          Sample application that is coded effitiently to upload and download large files to blob storage

                                          5 votes
                                          Vote
                                          Sign in
                                          Check!
                                          (thinking…)
                                          Reset
                                          or sign in with
                                          • facebook
                                          • google
                                            Password icon
                                            I agree to the terms of service
                                            Signed in as (Sign out)
                                            You have left! (?) (thinking…)
                                            0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                          ← Previous 1
                                          • Don't see your idea?

                                          Samples

                                          Feedback and Knowledge Base