### Example: View Content of a Specific Wiki Page Source: https://learn.microsoft.com/en-us/azure/devops/project/wiki/wiki-create-repo This example retrieves the content for the 'Get Started' page within 'MyProjectwiki', adding 'Hello World' as content. ```Azure CLI az devops wiki page show --path 'Get Started' --wiki 'MyProjectwiki' --content "Hello World" ``` -------------------------------- ### Setup and Start Python Bot Source: https://learn.microsoft.com/en-us/azure/bot-service/bot-service-quickstart-create-bot Change directory to the bot, install dependencies, and then run the Python bot application locally. ```Console cd echo_bot ``` ```Console pip install -r requirements.txt ``` ```Console python app.py ``` -------------------------------- ### Install Dependencies and Start Local Development Source: https://learn.microsoft.com/en-us/azure/api-management/developer-portal-extend-custom-functionality Run these commands to install project dependencies and start the local development server, connecting your widget to the developer portal. ```bash npm install npm start ``` -------------------------------- ### Run Command Line Step: Start In Directory Examples Source: https://learn.microsoft.com/en-us/mem/configmgr/osd/understand/task-sequence-steps Examples of valid paths for the 'Start in' property, specifying the executable folder for the program. ```cmd c:\officexp ``` ```cmd i386 ``` -------------------------------- ### Install Node.js Packages for Blob Storage Quickstart Source: https://learn.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-nodejs Install necessary client libraries and utility packages for the Azure Blob Storage Node.js quickstart application. ```Console npm install @azure/storage-blob @azure/identity uuid dotenv ``` -------------------------------- ### Install NuGet Packages using CLI Source: https://learn.microsoft.com/en-us/nuget/reference/cli-reference/cli-ref-install These examples demonstrate how to install a specific package, install all packages listed in a 'packages.config' file, and install a package to a custom output directory using the 'nuget install' command. ```cli nuget install elmah ``` ```cli nuget install packages.config ``` ```cli nuget install ninject -OutputDirectory c:\proj ``` -------------------------------- ### Example Start Menu JSON Pins with Applications (Partial) Source: https://learn.microsoft.com/en-us/windows/configuration/lock-down-windows-11-to-specific-apps This partial example shows how to define pinned applications and desktop links within a JSON Start menu configuration, embedded in an XML `v5:StartPins` element. ```XML $log_file 2>&1 & echo "Waiting for Dev Proxy to start..." while true; do if grep -q "Listening on 127.0.0.1:8000" $log_file; then break fi sleep 1 done echo "Exporting the Dev Proxy's Root Certificate" openssl pkcs12 -in ~/.config/dev-proxy/rootCert.pfx -clcerts -nokeys -out dev-proxy-ca.crt -passin pass:"" echo "Installing the Dev Proxy's Root Certificate" sudo cp dev-proxy-ca.crt /usr/local/share/ca-certificates/ echo "Updating the CA certificates" sudo update-ca-certificates echo "Set proxy variables" export http_proxy=http://127.0.0.1:8000 export https_proxy=http://127.0.0.1:8000 ``` -------------------------------- ### Create Project Folder and Navigate (Shell) Source: https://learn.microsoft.com/en-us/azure/ai-services/speech-service/get-started-speech-translation Use this command to create a new directory for the quickstart project and change into it. ```shell mkdir translation-quickstart && cd translation-quickstart ``` -------------------------------- ### Set up initial application framework Source: https://learn.microsoft.com/en-us/azure/storage/queues/storage-quickstart-queues-dotnet Provides the initial C# framework for the quickstart, including necessary using directives and a placeholder for quickstart code. ```C# using Azure; using Azure.Identity; using Azure.Storage.Queues; using Azure.Storage.Queues.Models; using System; using System.Threading.Tasks; Console.WriteLine("Azure Queue Storage client library - .NET quickstart sample"); // Quickstart code goes here ``` -------------------------------- ### GetStatusSchemas Source: https://learn.microsoft.com/en-us/connectors/seismicplanner Get a list of task/request status schemas. These schemas hold the data for set statuses for specific work. Example: (Not started, In progress, Complete) ```APIDOC ## Operation: GetStatusSchemas ### Description Get a list of task/request status schemas. These schemas hold the data for set statuses for specific work. Example: `(Not started, In progress, Complete)` ### Parameters - **spaceId** (string) - Required - Space ID - **isDefault** (boolean) - Optional - Get default status schema - **type** (string) - Optional - Query by node type - **ids** (array) - Optional - List of status schemas IDs - **creatorIds** (array) - Optional - List of user IDs to query by creator - **cursor** (string) - Optional - Cursor used for pagination - **limit** (integer) - Optional - Number to limit returned records ### Returns **Body** (StatusSchemaQueryResponse) ``` -------------------------------- ### Clone Azure Blob Storage Go Quickstart Sample Source: https://learn.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-go Use git to download the sample application to your local development environment. ```Console git clone https://github.com/Azure-Samples/storage-blobs-go-quickstart ``` -------------------------------- ### GetStatusSchema Source: https://learn.microsoft.com/en-us/connectors/seismicplanner Get a single status schema by ID. These schemas hold the data for set statuses for specific work. Example: (Not started, In progress, Complete) ```APIDOC ## Operation: GetStatusSchema ### Description Get a single status schema by ID. These schemas hold the data for set statuses for specific work. Example: `(Not started, In progress, Complete)` ### Parameters - **spaceId** (string) - Required - Space ID - **statusSchemaId** (string) - Required - Status schema ID ### Returns **Body** (StatusSchema) ``` -------------------------------- ### Get All Target Objects for Object Type GUID Source: https://learn.microsoft.com/en-us/azure/energy-data-services/tutorial-reservoir-ddms-apis Use these `curl` commands to retrieve all target objects that reference a specific data object type and GUID within a dataspace. The first example is generic, and the second provides a concrete instance. ```Bash curl --request GET \ --url https:///api/reservoir-ddms/v2/dataspaces//resources///targets \ --header 'Authorization: Bearer ' \ --header 'data-partition-id: ' ``` ```Bash curl --request GET \ --url https://admetest.energy.azure.com/api/reservoir-ddms/v2/dataspaces/demo%2FVolve/resources/resqml20.obj_Grid2dRepresentation/07cb9ebb-299f-469b-9792-e76633a72b89/targets \ --header 'Authorization: Bearer ey........' \ --header 'data-partition-id: dp1' ``` -------------------------------- ### Navigate to Quickstart Directory Source: https://learn.microsoft.com/en-us/azure/search/search-get-started-text Change the current directory to the quickstart project folder after cloning the repository. ```Bash cd azure-search-javascript-samples/quickstart-keyword-search ``` -------------------------------- ### Get All Source Objects for Object Type GUID Source: https://learn.microsoft.com/en-us/azure/energy-data-services/tutorial-reservoir-ddms-apis Use these `curl` commands to retrieve all source objects associated with a specific data object type and GUID within a dataspace. The first example is generic, and the second provides a concrete instance. ```Bash curl --request GET \ --url https:///api/reservoir-ddms/v2/dataspaces//resources///sources \ --header 'Authorization: Bearer ' \ --header 'data-partition-id: ' ``` ```Bash curl --request GET \ --url https://admetest.energy.azure.com/api/reservoir-ddms/v2/dataspaces/demo%2FVolve/resources/resqml20.obj_Grid2dRepresentation/07cb9ebb-299f-469b-9792-e76633a72b89/sources \ --header 'Authorization: Bearer ey........' \ --header 'data-partition-id: dp1' ``` -------------------------------- ### Run .NET Sense HAT Quickstart Script Source: https://learn.microsoft.com/en-us/dotnet/iot/quickstarts/sensehat This command downloads and executes a script that installs the .NET SDK, clones the Sense HAT quickstart project, builds it, and runs it. ```Bash . <(wget -q -O - https://aka.ms/dotnet-iot-sensehat-quickstart) ``` -------------------------------- ### Get Fabric Data Item ID URL Example Source: https://learn.microsoft.com/en-us/azure/databricks/query-federation/onelake This URL format shows where to find the Data Item ID (GUID) for a Fabric Lakehouse or Warehouse in the browser. ```text https://app.fabric.microsoft.com/groups//lakehouses/?experience=power-bi ``` -------------------------------- ### Build and Run .NET Sample Application Source: https://learn.microsoft.com/en-us/entra/verified-id/verifiable-credentials-configure-verifier Use these commands to navigate to the project directory, build the .NET sample application, and then run it from the command line. ```bash cd active-directory-verifiable-credentials-dotnet\1-asp-net-core-api-idtokenhint dotnet build "AspNetCoreVerifiableCredentials.csproj" -c Debug -o .\bin\Debug\net6 dotnet run ``` -------------------------------- ### Example Application Output Source: https://learn.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-nodejs Illustrative output demonstrating the sequence of operations performed by the quickstart application. ```Output Azure Blob storage - JavaScript quickstart sample Creating container... quickstart4a0780c0-fb72-11e9-b7b9-b387d3c488da Uploading to Azure Storage as blob: quickstart4a3128d0-fb72-11e9-b7b9-b387d3c488da.txt Listing blobs... quickstart4a3128d0-fb72-11e9-b7b9-b387d3c488da.txt Downloaded blob content... Hello, World! Deleting container... Done ``` -------------------------------- ### Get app installed in team Source: https://learn.microsoft.com/en-us/graph/api/resources/team Get the specified app installed in a team. ```APIDOC ## GET /teams/{id}/installedApps/{app-id} ### Description Get the specified app installed in a team. ### Method GET ### Endpoint /teams/{id}/installedApps/{app-id} ### Response #### Success Response (200) - **Return Type** (object) - teamsAppInstallation ``` -------------------------------- ### Navigate to the Quickstart Folder Source: https://learn.microsoft.com/en-us/azure/search/search-get-started-text Change the current directory to the quickstart project folder after cloning the repository. ```Bash cd azure-search-dotnet-samples/quickstart-keyword-search/AzureSearchQuickstart ``` -------------------------------- ### Complete Slack Bolt App Initialization Source: https://learn.microsoft.com/en-us/microsoftteams/platform/teams-sdk/migrations/slack-bolt A comprehensive example of setting up the `App` class for a Slack Bolt application, including all necessary authentication and installation options, and starting the local server. ```typescript import { App } from '@slack/bolt'; const app = new App({ signingSecret: process.env.SLACK_SIGNING_SECRET, clientId: process.env.SLACK_CLIENT_ID, clientSecret: process.env.SLACK_CLIENT_SECRET, scopes: [ "channels:manage", "channels:read", "chat:write", "groups:read", "incoming-webhook", ], installerOptions: { authVersion: "v2", directInstall: false, installPath: "/slack/install", metadata: "", redirectUriPath: "/slack/oauth_redirect", stateVerification: "true", /** * Example pages to navigate to on certain callbacks. */ callbackOptions: { success: (installation, installUrlOptions, req, res) => { res.send("The installation succeeded!"); }, failure: (error, installUrlOptions, req, res) => { res.send("Something strange happened..."); } }, /** * Example validation of installation options using a random state and an * expiration time between requests. */ stateStore: { generateStateParam: async (installUrlOptions, now) => { const state = randomStringGenerator(); const value = { options: installUrlOptions, now: now.toJSON() }; await database.set(state, value); return state; }, verifyStateParam: async (now, state) => { const value = await database.get(state); const generated = new Date(value.now); const seconds = Math.floor( (now.getTime() - generated.getTime()) / 1000, ); if (seconds > 600) { throw new Error("The state expired after 10 minutes!"); } return value.options; } } } }); // App starts local server with route for /slack/events (async () => { await app.start(); })(); ``` -------------------------------- ### Install dependencies and start Azure Functions (npm script) Source: https://learn.microsoft.com/en-us/azure/azure-functions/create-first-function-azure-developer-cli Install Node.js dependencies and start the Azure Functions host locally using an npm start script. ```Console npm install npm start ``` -------------------------------- ### Run an executable with arguments Source: https://learn.microsoft.com/en-us/intune/configmgr/osd/understand/task-sequence-steps Use this command line to execute a program with specified arguments within a task sequence. This example runs 'setup.exe' with the '/a' switch. ```cmd setup.exe /a ``` -------------------------------- ### Dockerfile for .NET 5.0 Tests with Debugger Setup Source: https://learn.microsoft.com/en-us/visualstudio/test/remote-testing Provides a Dockerfile example for running .NET 5.0 tests, including steps to install the Visual Studio debugger (`vsdbg`) to enable debugging within the container. ```dockerfile FROM mcr.microsoft.com/dotnet/sdk:5.0 RUN wget https://aka.ms/getvsdbgsh && \ sh getvsdbgsh -v latest -l /vsdbg ``` -------------------------------- ### Create Quickstart Directory Source: https://learn.microsoft.com/en-us/azure/event-hubs/event-hubs-kafka-connect-tutorial Creates a directory to store input and output data files for the Kafka Connect quickstart. ```Bash mkdir ~/connect-quickstart ``` -------------------------------- ### Run Python Quickstart Application Source: https://learn.microsoft.com/en-us/azure/ai-services/content-safety/quickstart-groundedness Use this command to execute a Python script named `quickstart.py` from the console, initiating the application's functionality. ```Console python quickstart.py ``` -------------------------------- ### Example Web App Manifest (manifest.json) Source: https://learn.microsoft.com/en-us/microsoft-edge/progressive-web-apps/how-to This JSON file provides metadata about the PWA, enabling browsers to install it on a device. It defines properties like name, description, start URL, theme colors, display mode, and icons. ```json { "lang": "en-us", "name": "Temperature converter app", "short_name": "Temperature converter", "description": "A basic temperature converter application that can convert to and from Celsius, Kelvin, and Fahrenheit", "start_url": "./", "background_color": "#2f3d58", "theme_color": "#2f3d58", "orientation": "any", "display": "standalone", "icons": [ { "src": "./icon512.png", "sizes": "512x512" } ] } ``` -------------------------------- ### Example Start Menu XML Layout with Pinned Applications Source: https://learn.microsoft.com/en-us/windows/configuration/lock-down-windows-11-to-specific-apps This example demonstrates a complete XML Start menu layout configuration, pinning specific applications like Zune Music, Zune Video, Paint, and Notepad to different groups. ```XML ]]> ``` -------------------------------- ### Install Dependencies and Start Outlook Add-in (Console) Source: https://learn.microsoft.com/en-us/samples/officedev/office-add-in-samples/outlook-spam-reporting Installs project dependencies and starts the local web server, sideloading the add-in manifest to Outlook for development. ```Console npm install npm run start:xml ``` -------------------------------- ### Install dependencies and start Azure Functions (npm) Source: https://learn.microsoft.com/en-us/azure/azure-functions/create-first-function-azure-developer-cli Install Node.js dependencies and start the Azure Functions host locally using npm and func CLI. ```Console npm install func start ``` -------------------------------- ### LibMan Install Output Example (single file) Source: https://learn.microsoft.com/en-us/aspnet/core/tutorials/signalr Example output displayed in the console after successfully running the LibMan install command for the SignalR client library. ```Console wwwroot/js/signalr/dist/browser/signalr.js written to disk wwwroot/js/signalr/dist/browser/signalr.js written to disk Installed library "@microsoft/signalr@latest" to "wwwroot/js/signalr" ``` -------------------------------- ### Create Project Folder and Navigate (Shell) Source: https://learn.microsoft.com/en-us/azure/ai-services/speech-service/get-started-text-to-speech Creates a new directory named synthesis-quickstart and changes the current working directory into it. ```shell mkdir synthesis-quickstart && cd synthesis-quickstart ``` -------------------------------- ### Navigate to Quickstart Folder Source: https://learn.microsoft.com/en-us/azure/search/search-get-started-text Change the current directory to the quickstart folder within the cloned repository. ```Bash cd azure-search-java-samples/quickstart-keyword-search ```