### Install dependencies and start Azure Chat application Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/communication-services/quickstarts/chat/includes/chat-js.md Installs project dependencies using npm and then starts the application by executing the 'start' script defined in `package.json`. This command typically launches the development server for the Azure Chat application. ```console npm install npm run start ``` -------------------------------- ### Install Project Dependencies for Local Development with npm Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/communication-services/samples/includes/web-calling-hero.md Executes the `setup` script defined in the project's `package.json` to install all necessary node package dependencies for the application. This command should be run after cloning the repository and before starting local development. ```bash npm run setup ``` -------------------------------- ### Install SAP Deployment Automation Framework Prerequisites on Ubuntu Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/sap/automation/get-started.md This Bash command installs essential packages required for the SAP Deployment Automation Framework on an Ubuntu virtual machine. It uses 'apt-get' to install 'git', 'jq', 'unzip', and 'virtualenv', ensuring the system has the necessary tools for deployment. ```bash sudo apt-get install -y git jq unzip virtualenv ``` -------------------------------- ### Run Node.js SPA Sample Application Commands Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/active-directory-b2c/quickstart-single-page-app.md These commands install dependencies, update packages, and then start the Node.js server for the single-page application. The 'npm start' command launches the application, making it accessible via a local URL. ```console npm install npm update npm start ``` -------------------------------- ### Example Output of Azure Blob Storage Quickstart Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/storage/blobs/storage-quickstart-blobs-java.md This output example illustrates the typical flow of the Azure Blob Storage Java quickstart application, showing steps like uploading, listing, downloading blobs, and prompting for cleanup. ```output Azure Blob Storage - Java quickstart sample Uploading to Blob storage as blob: https://mystorageacct.blob.core.windows.net/quickstartblobsUUID/quickstartUUID.txt Listing blobs... quickstartUUID.txt Downloading blob to ./data/quickstartUUIDDOWNLOAD.txt Press the Enter key to begin clean up Deleting blob container... Deleting the local source and downloaded files... Done ``` -------------------------------- ### Install Dependencies and Run React Application (Bash) Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/communication-services/tutorials/calling-widget/calling-widget-tutorial.md This Bash script provides the necessary commands to set up and run a React application. It first installs all project dependencies using `npm install` and then launches the development server with `npm run dev`. This sequence is a standard procedure for preparing and starting a React-based project locally. ```bash # Install the new dependencies npm install # run the React app npm run dev ``` -------------------------------- ### JavaScript Azure Web PubSub Publisher Project Setup Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/azure-web-pubsub/quickstart-use-sdk.md Sets up a new JavaScript project, initializes npm, and installs the `@azure/web-pubsub` npm package. This prepares the environment for creating a JavaScript-based Web PubSub publisher. ```bash mkdir publisher cd publisher npm init -y npm install --save @azure/web-pubsub ``` -------------------------------- ### Complete AzAcSnap Setup and Test Connectivity Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/azure-netapp-files/azacsnap-installation.md This snippet provides commands to finalize the AzAcSnap setup and test its connectivity to storage and various databases (SAP HANA, Oracle DB, IBM Db2). It includes configuring customer details, testing storage, and then testing each database type. Finally, it shows an example backup command, noting that full paths might be needed if AzAcSnap is not in the system's PATH. ```bash su - azacsnap azacsnap -c configure --configuration new azacsnap -c test --test storage azacsnap -c test --test hana azacsnap -c test --test oracle azacsnap -c test --test db2 azacsnap -c backup --volume data --prefix adhoc_test --retention 1 ``` ```cmd rem Log in as AzAcSnap user (GUI action on Windows) azacsnap.exe -c configure --configuration new azacsnap.exe -c test --test storage azacsnap.exe -c test --test hana azacsnap.exe -c test --test oracle azacsnap.exe -c test --test db2 azacsnap.exe -c backup --volume data --prefix adhoc_test --retention 1 ``` -------------------------------- ### Install Webpack and Related Tools Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/communication-services/quickstarts/chat/includes/chat-js.md This command installs webpack, webpack-cli, and webpack-dev-server. Webpack is used to bundle your application's assets, while webpack-cli provides command-line tools, and webpack-dev-server offers a development server with live reloading. These are installed as development dependencies. ```console npm install webpack webpack-cli webpack-dev-server --save-dev ``` -------------------------------- ### Install SAP Deployment Automation Framework Deployer Components on Ubuntu Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/sap/automation/get-started.md This sequence of Bash commands downloads the 'configure_deployer.sh' script from the Azure SAP automation repository, grants it execute permissions, and then runs it to set up the deployer components. Finally, it sources the newly defined environment variables. ```bash wget https://raw.githubusercontent.com/Azure/sap-automation/main/deploy/scripts/configure_deployer.sh -O configure_deployer.sh chmod +x ./configure_deployer.sh ./configure_deployer.sh # Source the new variables . /etc/profile.d/deploy_server.sh ``` -------------------------------- ### Run Azure Job Router Quickstart Example (Console) Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/communication-services/quickstarts/router/includes/router-quickstart-javascript.md This console command demonstrates how to execute the JavaScript quickstart file to run the Azure Communication Services Job Router example. It also provides the expected output, illustrating the full lifecycle of the worker and job. ```console node index.js Azure Communication Services - Job Router Quickstart Worker worker-1 has an active offer for job job-1 Worker worker-1 is assigned job job-1 Worker worker-1 has completed job job-1 Worker worker-1 has closed job job-1 Deleting job job-1 ``` -------------------------------- ### Install Azure Communication Services Calling SDK for JavaScript Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/communication-services/quickstarts/voice-video-calling/includes/teams-call-queue/teams-call-queue-javascript.md This command uses npm to install the necessary Azure Communication Services SDK packages for a JavaScript project. It installs both `@azure/communication-common` and `@azure/communication-calling`, specifically targeting the `next` version for access to the latest features required for this quickstart. ```console npm install @azure/communication-common@next --save npm install @azure/communication-calling@next --save ``` -------------------------------- ### Install Azure Blob Storage Go module Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/storage/blobs/storage-blob-go-get-started.md This command installs the Azure Blob Storage client module for Go, enabling your application to interact with Azure Blob Storage services and manage containers and blobs. ```console go get github.com/Azure/azure-sdk-for-go/sdk/storage/azblob ``` -------------------------------- ### Create and run a local Node.js Express application Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/app-service/quickstart-nodejs.md These commands demonstrate how to use `express-generator` to scaffold a new Node.js Express application, navigate into its directory, install dependencies, update them for security, and start the development server. This sequence sets up a basic web app running on `http://localhost:3000` for local testing. ```bash npx express-generator myExpressApp --view ejs ``` ```bash cd myExpressApp && npm install ``` ```bash npm audit fix --force ``` ```bash DEBUG=myexpressapp:* npm start ``` -------------------------------- ### Initialize Java SE Spring Boot Project Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/app-service/includes/quickstart-java/quickstart-java-windows-maven-pivot.md Clones the Spring Boot Getting Started sample project from GitHub and then navigates into its 'complete' subdirectory. This sequence prepares a ready-to-deploy Java SE application for further steps. ```bash git clone https://github.com/spring-guides/gs-spring-boot ``` ```bash cd gs-spring-boot/complete ``` -------------------------------- ### Install Azure Web PubSub client SDK Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/azure-web-pubsub/quickstart-use-client-sdk.md This snippet provides commands to install the Azure Web PubSub client SDK for both JavaScript (via npm) and C# (via dotnet CLI). Ensure Node.js and .NET Core SDK are installed respectively before running these commands. ```bash npm install @azure/web-pubsub-client ``` ```bash # create project directory mkdir webpubsub-client # change to the project directory cd webpub-client # Add a new .net project dotnet new console # Add the client SDK dotnet add package Azure.Messaging.WebPubSub.Client --prerelease ``` -------------------------------- ### Check Python Version Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/app-service/quickstart-python-1.md Verify that Python version 3.6 or higher is installed on your system using platform-specific commands. This ensures compatibility with the quickstart guide's requirements. ```bash python3 --version ``` ```powershell py -3 --version ``` ```cmd py -3 --version ``` -------------------------------- ### Example package.json after Azure CDN SDK Installation Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/cdn/cdn-app-dev-node.md This JSON snippet shows the structure of the `package.json` file after initializing the Node.js project and installing the `@azure/identity` and `@azure/arm-cdn` npm packages. It lists project metadata and dependencies with their versions. ```json { "name": "cdn_node", "version": "1.0.0", "description": "Azure CDN Node.js tutorial project", "main": "app.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "Cam Soper", "license": "MIT", "dependencies": { "@azure/arm-cdn": "^7.0.1", "@azure/identity": "^2.0.4" } } ``` -------------------------------- ### Clone and Run PHP Sample Application Locally with Azure CLI Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/app-service/quickstart-php.md This snippet demonstrates how to clone the sample PHP 'Hello World' application from GitHub using Git and then run it locally with PHP's built-in web server. It provides commands for cloning the repository, navigating into its directory, and starting the local server for testing. ```bash git clone https://github.com/Azure-Samples/php-docs-hello-world cd php-docs-hello-world php -S localhost:8080 ``` -------------------------------- ### Example Azure Site Recovery Unified Setup Silent Installation Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/site-recovery/vmware-azure-set-up-process-server-scale.md This example demonstrates a silent installation of Azure Site Recovery Unified Setup. It first extracts the setup files to a temporary directory and then executes UNIFIEDSETUP.EXE with specific parameters. These parameters include accepting the EULA, setting the server mode to 'PS', defining an installation location, specifying the environment type (VMware), providing the CS IP address, and referencing a passphrase file. It also configures a secure port for data transfer. ```cmd MicrosoftAzureSiteRecoveryUnifiedSetup.exe /q /x:C:\Temp\Extracted cd C:\Temp\Extracted UNIFIEDSETUP.EXE /AcceptThirdpartyEULA /servermode "PS" /InstallLocation "D:\" /EnvType "VMware" /CSIP "10.150.24.119" /PassphraseFilePath "C:\Users\Administrator\Desktop\Passphrase.txt" /DataTransferSecurePort 443 ``` -------------------------------- ### C# Azure Web PubSub Publisher Project Setup Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/azure-web-pubsub/quickstart-use-sdk.md Initializes a new C# console project, creates a directory for it, and adds the necessary `Azure.Messaging.WebPubSub` NuGet package. This prepares the environment for developing a C# publisher application. ```bash mkdir publisher cd publisher dotnet new console dotnet add package Azure.Messaging.WebPubSub ``` -------------------------------- ### Azure Site Recovery: Sample Command-Line Installation Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/site-recovery/physical-manage-configuration-server.md This example demonstrates how to perform a silent installation of the Azure Site Recovery server using the `UnifiedSetup.exe` command-line tool. It shows the steps to extract the installer, navigate to the extracted directory, and then execute the setup with parameters for accepting the EULA, setting server mode to 'CS', specifying an installation location, and providing paths for MySQL and vault credentials, as well as the environment type. ```cmd MicrosoftAzureSiteRecoveryUnifiedSetup.exe /q /x:C:\Temp\Extracted cd C:\Temp\Extracted UNIFIEDSETUP.EXE /AcceptThirdpartyEULA /servermode "CS" /InstallLocation "D:\" /MySQLCredsFilePath "C:\Temp\MySQLCredentialsfile.txt" /VaultCredsFilePath "C:\Temp\MyVault.vaultcredentials" /EnvType "VMWare" ``` -------------------------------- ### Create Node.js Application Directory Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/communication-services/quickstarts/voice-video-calling/includes/get-started/get-started-javascript-setup.md This console command creates a new directory named 'calling-quickstart' and then navigates into it, preparing the file system for a new Node.js project. ```console mkdir calling-quickstart cd calling-quickstart ``` -------------------------------- ### Run JavaScript Service Bus Receiver Script Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/service-bus-messaging/service-bus-nodejs-how-to-use-queues.md This command executes the `receive.js` Node.js script. It starts the message receiver, allowing it to process messages from the configured Azure Service Bus queue. Ensure Node.js is installed and the script file exists in the current directory before running. ```console node receive.js ``` -------------------------------- ### Install and Start XRDP for Remote Desktop on Linux Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/high-performance-computing/lift-and-shift-step-5-end-user-entry-point.md This command installs the XRDP server package on a Debian/Ubuntu system, facilitating remote desktop access to the machine. Following installation, `systemctl` is used to enable the XRDP service for automatic startup upon system boot and to start it immediately for use. This setup allows users to connect to a graphical desktop environment remotely. ```bash sudo apt-get install xrdp sudo systemctl enable xrdp sudo systemctl start xrdp ``` -------------------------------- ### Run Django Development Server Locally Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/app-service/quickstart-python-1.md This command starts the Django development server for local testing and development of a Django application. It provides commands tailored for Bash, PowerShell, and Cmd environments. Before running, ensure that all project dependencies are installed within your Python virtual environment. ```bash python3 manage.py runserver ``` ```powershell py -3 manage.py runserver ``` ```cmd py -3 manage.py runserver ``` -------------------------------- ### Install and Start SSH Server on Linux Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/high-performance-computing/lift-and-shift-step-5-end-user-entry-point.md This command sequence installs the `openssh-server` package on a Debian/Ubuntu-based system, enabling SSH capabilities. It then uses `systemctl` to ensure the SSH service is enabled to start automatically on boot and is immediately started for current use. ```bash sudo apt-get install openssh-server sudo systemctl enable ssh sudo systemctl start ssh ``` -------------------------------- ### Set up Python project for Azure Web PubSub publisher Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/azure-web-pubsub/quickstart-use-sdk.md These bash commands create a new project directory, set up and activate a Python virtual environment, and install the `azure-messaging-webpubsubservice` SDK required for interacting with Azure Web PubSub. ```bash mkdir publisher cd publisher # Create venv python -m venv env # Active venv source ./env/bin/activate pip install azure-messaging-webpubsubservice ``` -------------------------------- ### Install Parcel Bundler for Web Assets Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/communication-services/quickstarts/voice-video-calling/includes/get-started/get-started-javascript-setup.md This command installs Parcel, a zero-configuration web application bundler, as a development dependency. It's used to bundle client-side assets for the application, making them ready for web deployment. ```console npm install parcel --save-dev ``` -------------------------------- ### Install Azure Service Bus and Identity npm Packages (JavaScript) Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/service-bus-messaging/service-bus-nodejs-how-to-use-queues.md These commands install the necessary npm packages for interacting with Azure Service Bus queues in a JavaScript application. Different packages are required based on the authentication method: passwordless authentication includes `@azure/identity`, while connection string authentication only requires `@azure/service-bus`. ```bash npm install @azure/service-bus @azure/identity ``` ```bash npm install @azure/service-bus ``` -------------------------------- ### Install and Start JupyterHub on Linux Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/high-performance-computing/lift-and-shift-step-5-end-user-entry-point.md This set of commands installs JupyterHub, a multi-user server for Jupyter notebooks, on a Debian/Ubuntu-based system. After installation, it enables the JupyterHub service to automatically launch at system boot using `systemctl`. Finally, the service is started immediately, making JupyterHub available for users. ```bash sudo apt-get install jupyterhub sudo systemctl enable jupyterhub sudo systemctl start jupyterhub ``` -------------------------------- ### Clone and Run Fluid Dice Roller App Locally (CLI) Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/azure-fluid-relay/quickstarts/quickstart-dice-roll.md This command-line sequence clones the FluidHelloWorld sample repository, navigates into the project directory, installs necessary Node.js dependencies, and starts the dice roller application against a local Fluid server. This setup is for initial development and testing. ```cli git clone -b main-azure https://github.com/microsoft/FluidHelloWorld.git cd FluidHelloWorld npm install npm start ``` -------------------------------- ### Setup Initial C# Program Structure for Azure Queue Quickstart Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/storage/queues/storage-quickstart-queues-dotnet.md This code sets up the basic C# program structure, including necessary `using` directives for Azure Storage and Identity libraries, and initializes the console application for the Azure Queue Storage quickstart. ```csharp 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 ``` -------------------------------- ### Configure CORS for Azure Storage Account Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/digital-twins/quickstart-3d-scenes-studio.md Configures Cross-Origin Resource Sharing (CORS) rules for the blob service of your Azure storage account. This setup is essential to allow 3D Scenes Studio, hosted at a different origin, to securely access your storage container. ```azurecli az storage cors add --services b --methods GET OPTIONS POST PUT --origins https://explorer.digitaltwins.azure.net --allowed-headers Authorization x-ms-version x-ms-blob-type --account-name ``` -------------------------------- ### Get List of Participants in Azure Communication Services Room (Java) Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/communication-services/quickstarts/rooms/includes/rooms-quickstart-java.md This Java example retrieves and prints the list of all participants for a specific Azure Communication Services room. It uses the `listParticipants` method from the `roomsClient`, iterating through the `PagedIterable` results and handling potential exceptions. ```java // Get list of participants try { PagedIterable participants = roomsClient.listParticipants(roomId); System.out.println("Participants:/n"); for (RoomParticipant participant : participants) { System.out.println(participant.getCommunicationIdentifier().getRawId() + " (" + participant.getRole() + ")"); } } catch (Exception ex) { System.out.println(ex); } ``` -------------------------------- ### Setup and Run FastAPI Development Server Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/app-service/tutorial-ai-integrate-azure-ai-agent-python.md These Bash commands illustrate the steps to initialize a Python virtual environment, install project dependencies, seed initial data, and then start the FastAPI application development server. This setup is crucial for local testing and development before deployment. ```bash python3 -m venv .venv source .venv/bin/activate pip install -r src/requirements.txt pip install -e src python3 src/fastapi_app/seed_data.py python3 -m uvicorn fastapi_app:app --reload --port=8000 ``` -------------------------------- ### Get AzAcSnap Command Help Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/azure-netapp-files/azacsnap-get-started.md This command displays a list of all available AzAcSnap commands and their usage examples. It is useful for quickly understanding the tool's capabilities and syntax for various operations. ```bash azacsnap -h ``` -------------------------------- ### Copy Sample Configuration Files for SAP Deployment Automation Framework Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/sap/automation/get-started.md These Bash commands navigate to the SAP Automated Deployment directory and copy sample Terraform workspace configuration files. This action provides a foundational set of configurations, enabling users to begin testing the deployment automation framework with pre-defined examples. ```bash cd ~/Azure_SAP_Automated_Deployment cp -Rp samples/Terraform/WORKSPACES ~/Azure_SAP_Automated_Deployment ``` -------------------------------- ### Clone Sample API Repository and Navigate to Source Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/container-apps/quickstart-code-to-cloud.md These commands clone a sample album API application from a GitHub repository, available in different programming languages. After cloning, the current directory is changed to the application's source code folder, preparing for deployment. ```bash git clone https://github.com/azure-samples/containerapps-albumapi-csharp.git cd containerapps-albumapi-csharp/src ``` ```bash git clone https://github.com/azure-samples/containerapps-albumapi-java.git cd containerapps-albumapi-java ``` ```bash git clone https://github.com/azure-samples/containerapps-albumapi-javascript.git cd containerapps-albumapi-javascript/src ``` ```bash git clone https://github.com/azure-samples/containerapps-albumapi-python.git cd containerapps-albumapi-python/src ``` ```bash git clone https://github.com/azure-samples/containerapps-albumapi-go.git cd containerapps-albumapi-go/src ``` -------------------------------- ### Install Node.js Device Provisioning Sample Dependencies Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/iot-dps/quick-create-simulated-device-x509.md This command navigates to the Node.js device provisioning sample directory and installs all necessary npm packages. This is a prerequisite for running the Node.js sample successfully. ```cmd cd .\azure-iot-sdk-node\provisioning\device\samples npm install ``` -------------------------------- ### Azure Blob Storage Quickstart Application Output Example Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/storage/blobs/storage-quickstart-blobs-nodejs-typescript.md This output example illustrates the console messages generated by the quickstart application, detailing the process of creating a container, uploading a blob, listing blobs, downloading blob content, and finally deleting the container. ```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 ``` -------------------------------- ### Install msrest Library for Python Source: https://github.com/microsoftdocs/azure-docs/blob/main/includes/iot-hub-howto-module-twins-python.md This command installs the `msrest` Python library, which is used to handle and catch `HTTPOperationError` exceptions in Azure SDK applications. ```cmd/sh pip install msrest ``` -------------------------------- ### Get Help for Azure Trusted Signing Certificate Profile creation (Azure CLI) Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/trusted-signing/quickstart.md Displays the help documentation, including sample commands and detailed parameter descriptions, for the Azure CLI command used to create Trusted Signing certificate profiles. ```azurecli az trustedsigning certificate-profile create --help ``` -------------------------------- ### Subscribe to a group with Azure Web PubSub client Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/azure-web-pubsub/quickstart-use-client-sdk.md This example shows how to subscribe a client to a specific group ('group1') and register a callback function to handle messages received from that group. The client must be started before joining a group. ```javascript // callback to group messages. client.on("group-message", (e) => { console.log(`Received message: ${e.message.data}`); }); // before joining group, the client needs to start client.start(); // join a group to subscribe message from the group client.joinGroup("group1"); ``` ```csharp // callback to group messages. client.GroupMessageReceived += eventArgs => { Console.WriteLine($"Receive group message from {eventArgs.Message.Group}: {eventArgs.Message.Data}"); return Task.CompletedTask; }; // before joining group, the client needs to start await client.StartAsync(); // join a group to subscribe message from the group await client.JoinGroupAsync("group1"); ``` -------------------------------- ### Install Azure Communication Services JavaScript SDKs Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/communication-services/quickstarts/chat/includes/chat-js.md Install the required Azure Communication Services JavaScript SDK packages for common functionalities, identity management, signaling, and chat. The '--save' option adds these libraries as dependencies to your 'package.json' file. ```console npm install @azure/communication-common --save npm install @azure/communication-identity --save npm install @azure/communication-signaling --save npm install @azure/communication-chat --save ``` -------------------------------- ### Install NVIDIA GPU Drivers on Windows NC VMs using Batch Start Task Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/batch/batch-pool-compute-intensive-sizes.md This command line is used within an Azure Batch start task to silently install NVIDIA GPU drivers on Windows NC virtual machines. It leverages an application package containing the driver setup executable. The command runs with administrator privileges and waits for the installation to complete successfully. ```cmd cmd /c "%AZ_BATCH_APP_PACKAGE_GPUDriver#411.82%\GPUDriverSetup.exe /s" ``` -------------------------------- ### Set up and run Azure IoT Operations CounterServer .NET sample Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/iot-operations/develop-edge-apps/quickstart-get-started-sdks.md These commands navigate to the CounterServer sample directory, build the .NET project, and then run the server application. It requires the .NET 9.0 SDK and reads configuration from environment variables defined in an '.env' file, setting a unique client ID for the server. ```bash cd /dotnet/samples/Protocol/Counter/CounterServer/ ``` ```bash dotnet build ``` ```bash source `git rev-parse --show-toplevel`/.env; export AIO_MQTT_CLIENT_ID=counter-server; dotnet run ``` -------------------------------- ### Utility Commands for Azure CLI Batch: Help and JSON Output Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/batch/batch-cli-get-started.md These commands provide examples for getting help on a specific Batch command and formatting the output of a Batch command as JSON. These flags are essential for understanding command usage, debugging, and parsing output programmatically. ```azurecli-interactive az batch account create -h ``` ```azurecli-interactive az batch pool show pool001 --json ``` -------------------------------- ### Clone Azure Blob Storage Go Quickstart Sample Repository Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/storage/blobs/storage-quickstart-blobs-go.md This command uses Git to download a copy of the Azure Blob Storage quickstart sample application for Go. The repository contains a basic Go application demonstrating Blob Storage operations. ```console git clone https://github.com/Azure-Samples/storage-blobs-go-quickstart ``` -------------------------------- ### Display Received Messages from Service Bus Queue in Console Output Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/service-bus-messaging/service-bus-nodejs-how-to-use-queues.md This console output example illustrates the typical messages displayed when the JavaScript Service Bus receiver successfully processes multiple messages from the queue. Each line shows a 'Received message:' prefix followed by the message body. ```console Received message: Albert Einstein Received message: Werner Heisenberg Received message: Marie Curie Received message: Steven Hawking Received message: Isaac Newton Received message: Niels Bohr Received message: Michael Faraday Received message: Galileo Galilei Received message: Johannes Kepler Received message: Nikolaus Kopernikus ``` -------------------------------- ### Install Azure Event Hubs and Blob Storage Go Packages Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/event-hubs/event-hubs-go-get-started-send.md This snippet demonstrates how to install the necessary Go packages for Azure Event Hubs messaging and Azure Blob Storage, which is used for checkpointing, using the `go get` command. These packages are part of the Azure SDK for Go. ```bash go get github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs go get github.com/Azure/azure-sdk-for-go/sdk/storage/azblob ``` -------------------------------- ### Install Go Dependencies for Gin and Feature Management Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/azure-app-configuration/quickstart-feature-flag-go-gin.md These `go get` commands install the required Go packages for the project. They include the Gin web framework for building the application, the core `featuremanagement` library, and the `azappconfig` provider for integrating with Azure App Configuration's feature management capabilities. ```go go get github.com/gin-gonic/gin go get github.com/microsoft/Featuremanagement-Go/featuremanagement go get github.com/microsoft/Featuremanagement-Go/featuremanagement/providers/azappconfig ``` -------------------------------- ### Display Successful AzureRM PowerShell Module Installation Output Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/databox-online/azure-stack-edge-gpu-connect-resource-manager.md This example output illustrates the expected console messages after successfully executing the installation commands. It confirms that the AzureRM modules, including the specified version 2.5.0, are correctly installed and available on the system. ```powershell PS C:\windows\system32> Install-Module -Name AzureRM.BootStrapper PS C:\windows\system32> Use-AzureRmProfile -Profile 2019-03-01-hybrid -Force Loading Profile 2019-03-01-hybrid PS C:\windows\system32> Get-Module -Name "Azure*" -ListAvailable Directory: C:\Program Files\WindowsPowerShell\Modules ModuleType Version Name ExportedCommands ---------- ------- ---- ---------------- Script 4.5.0 Azure.Storage {Get-AzureStorageTable, New-AzureStorageTableSASToken, New... Script 2.5.0 AzureRM Script 0.5.0 AzureRM.BootStrapper {Update-AzureRmProfile, Uninstall-AzureRmProfile, Install-... Script 4.6.1 AzureRM.Compute {Remove-AzureRmAvailabilitySet, Get-AzureRmAvailabilitySet... Script 3.5.1 AzureRM.Dns {Get-AzureRmDnsRecordSet, New-AzureRmDnsRecordConfig, Remo... Script 5.1.5 AzureRM.Insights {Get-AzureRmMetricDefinition, Get-AzureRmMetric, Remove-Az... Script 4.2.0 AzureRM.KeyVault {Add-AzureKeyVaultCertificate, Set-AzureKeyVaultCertificat... Script 5.0.1 AzureRM.Network {Add-AzureRmApplicationGatewayAuthenticationCertificate, G... Script 5.8.3 AzureRM.profile {Disable-AzureRmDataCollection, Disable-AzureRmContextAuto... Script 6.4.3 AzureRM.Resources {Get-AzureRmProviderOperation, Remove-AzureRmRoleAssignmen... Script 5.0.4 AzureRM.Storage {Get-AzureRmStorageAccount, Get-AzureRmStorageAccountKey, ... Script 4.0.2 AzureRM.Tags {Remove-AzureRmTag, Get-AzureRmTag, New-AzureRmTag} Script 4.0.3 AzureRM.UsageAggregates Get-UsageAggregates Script 5.0.1 AzureRM.Websites {Get-AzureRmAppServicePlan, Set-AzureRmAppServicePlan, New... Directory: C:\Program Files (x86)\Microsoft Azure Information Protection\Powershell ModuleType Version Name ExportedCommands ---------- ------- ---- ---------------- Binary 1.48.204.0 AzureInformationProtection {Clear-RMSAuthentication, Get-RMSFileStatus, Get-RMSServer..." ``` -------------------------------- ### Create Go Web Application Directory Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/azure-app-configuration/quickstart-go-web-app.md This bash command creates a new directory named `app-configuration-web` for the Go web application and then changes the current working directory into it, preparing the environment for project setup. ```bash mkdir app-configuration-web cd app-configuration-web ``` -------------------------------- ### Initiate SAP HANA Installation Program Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/sap/workloads/sap-hana-high-availability-netapp-files-suse.md This command starts the SAP HANA installation process using the `hdblcm` program. It is the first step in an interactive installation wizard that guides the user through various configuration choices for the SAP HANA system. ```bash ./hdblcm ``` -------------------------------- ### Set up and run Azure IoT Operations CounterClient .NET sample Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/iot-operations/develop-edge-apps/quickstart-get-started-sdks.md These commands navigate to the CounterClient sample directory, build the .NET project, and then run the client application. The client interacts with the CounterServer using RPC for reading and incrementing a counter, utilizing environment variables for MQTT connection and server identification. ```bash cd /dotnet/samples/Protocol/Counter/CounterClient/ ``` ```bash dotnet build ``` ```bash source `git rev-parse --show-toplevel`/.env; export AIO_MQTT_CLIENT_ID=counter-client; export COUNTER_SERVER_ID=counter-server; dotnet run ``` -------------------------------- ### Create Project Directory for Azure Communication Services App (Console) Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/communication-services/quickstarts/rooms/includes/rooms-quickstart-call-web.md Creates a new directory 'calling-rooms-quickstart' and navigates into it, setting up the project workspace. This is the initial step for organizing application files. ```console mkdir calling-rooms-quickstart && cd calling-rooms-quickstart ``` -------------------------------- ### Install Azure SDK Dependencies for Node.js Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/cdn/cdn-app-dev-node.md These commands install the necessary npm packages for Azure authentication (`@azure/identity`) and the Azure CDN client library (`@azure/arm-cdn`) as project dependencies, saving them to `package.json`. ```console npm install --save @azure/identity npm install --save @azure/arm-cdn ``` -------------------------------- ### Create .NET Console Project for Azure Queue Storage Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/storage/queues/storage-quickstart-queues-dotnet.md This command initializes a new C# console application named `QueuesQuickstart` using the .NET SDK, providing a basic project structure for integrating with Azure Queue Storage. ```console dotnet new console -n QueuesQuickstart ``` -------------------------------- ### Setup Azure Web PubSub Publisher Project and Install SDK Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/azure-web-pubsub/tutorial-pub-sub-messages.md These commands create a new directory, navigate into it, initialize a project, and install the necessary Azure Web PubSub SDK dependencies for C#, JavaScript, or Python projects. ```bash mkdir publisher cd publisher dotnet new console dotnet add package Azure.Messaging.WebPubSub ``` ```bash mkdir publisher cd publisher npm init -y npm install --save @azure/web-pubsub ``` ```bash mkdir publisher cd publisher # Create venv python -m venv env # Active venv source ./env/bin/activate pip install azure-messaging-webpubsubservice ``` -------------------------------- ### Clone Azure Batch .NET Quickstart Repository Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/batch/quick-run-dotnet.md This command clones the Azure Batch .NET Quickstart application repository from GitHub using Git, providing the source code needed to run the quickstart example. This is the first step to obtain the sample project. ```cmd git clone https://github.com/Azure-Samples/batch-dotnet-quickstart.git ``` -------------------------------- ### Install Required Command-Line Tools for AGIC Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/application-gateway/ingress-controller-install-new.md This section outlines the essential command-line tools required to install and manage the Application Gateway Ingress Controller (AGIC). It recommends using Azure Cloud Shell, which comes pre-equipped, but also lists tools like 'az' (Azure CLI), 'kubectl', 'helm', and 'jq' for local environment setup with links to their installation guides. -------------------------------- ### Navigate to Project Directory in .NET Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/storage/queues/storage-quickstart-queues-dotnet.md This command changes the current working directory to the newly created `QueuesQuickstart` project folder, which is necessary before installing packages or running the application. ```console cd QueuesQuickstart ``` -------------------------------- ### Initialize Node.js application and create main file Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/communication-services/quickstarts/telephony/includes/number-lookup-js.md These commands set up a new Node.js project directory, initialize `package.json` with default settings, and create a placeholder JavaScript file (`number-lookup-quickstart.js`) where the quickstart code will reside. ```console mkdir number-lookup-quickstart && cd number-lookup-quickstart ``` ```console npm init -y ``` ```javascript async function main() { // quickstart code will go here } main(); ``` -------------------------------- ### Initialize New Node.js Application Directory Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/communication-services/quickstarts/voice-video-calling/includes/teams-call-queue/teams-call-queue-javascript.md These console commands set up the basic project structure for a new Node.js application. It creates a new directory named 'calling-quickstart' and then navigates into it, preparing the environment for further development and package installation. ```console mkdir calling-quickstart && cd calling-quickstart ``` -------------------------------- ### Install Azure Identity Go module Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/storage/blobs/storage-blob-go-get-started.md This command installs the Azure Identity module for Go, which is necessary for authenticating with Microsoft Entra ID (formerly Azure Active Directory) when connecting to Azure services. ```console go get github.com/Azure/azure-sdk-for-go/sdk/azidentity ``` -------------------------------- ### Install Azure Queue Storage .NET Client Library Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/storage/queues/storage-quickstart-queues-dotnet.md Adds the Azure Queue Storage client library to the .NET project, enabling interaction with Azure Queue Storage services. This command fetches the package from NuGet and adds it as a dependency. ```console dotnet add package Azure.Storage.Queues ``` -------------------------------- ### Create Azure Digital Twins Instance and Assign Role with Azure CLI Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/digital-twins/quickstart-3d-scenes-studio.md This set of Azure CLI commands creates a resource group, provision an Azure Digital Twins instance, and assigns the 'Azure Digital Twins Data Owner' role to the current user. This setup is a prerequisite for connecting to and using 3D Scenes Studio. ```azurecli # Set your resource group name and location RESOURCE_GROUP="my-digital-twins-rg" LOCATION="eastus" # Or your preferred Azure region DT_INSTANCE_NAME="myDigitalTwinsInstance" # Replace with a unique name # Create a resource group if it doesn't exist az group create --name $RESOURCE_GROUP --location $LOCATION # Create an Azure Digital Twins instance az dt create --dt-name $DT_INSTANCE_NAME --resource-group $RESOURCE_GROUP --location $LOCATION # Get your user ID (for role assignment) YOUR_USER_ID=$(az ad signed-in-user show --query id -o tsv) # Assign 'Azure Digital Twins Data Owner' role az dt role-assignment create --dt-name $DT_INSTANCE_NAME --assignee $YOUR_USER_ID --role "Azure Digital Twins Data Owner" ``` -------------------------------- ### Run JavaScript Web PubSub Publisher Application Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/azure-web-pubsub/quickstart-use-sdk.md Sets the `WebPubSubConnectionString` environment variable and then executes the JavaScript publisher script with a 'Hello World' message. This command initiates the JavaScript program to publish the message to the Web PubSub service. ```bash export WebPubSubConnectionString=$connection_string node publish "Hello World" ``` -------------------------------- ### Install Python Packages and Run Blob Storage Quickstart Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/storage/blobs/storage-quickstart-blobs-python.md These commands install the required Python client libraries for Azure Blob Storage and Azure Identity using pip, then execute the main quickstart script. This step prepares the local development environment and runs the sample application to perform operations on the Azure Blob Storage account. ```console pip install azure-storage-blob azure-identity ``` ```console python blob_quickstart.py ``` -------------------------------- ### Install NuGet Packages for .NET CDN Management Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/cdn/cdn-app-dev-net.md These commands install the necessary NuGet packages for a .NET console application. `Microsoft.Identity.Client` is used for authentication, and `Microsoft.Azure.Management.Cdn` provides the Azure CDN management functionalities. These packages are installed via the Package Manager Console in Visual Studio. ```powershell Install-Package Microsoft.Identity.Client Install-Package Microsoft.Azure.Management.Cdn ``` -------------------------------- ### Initialize Go Module and Install Azure Service Bus Dependencies (Bash) Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/service-bus-messaging/service-bus-go-how-to-use-queues.md This snippet demonstrates how to initialize a new Go module named `service-bus-go-how-to-use-queues` and install the necessary Azure SDK for Go packages: `azidentity` for authentication and `azservicebus` for Service Bus messaging. These commands are executed in a bash shell to set up the project dependencies. ```bash go mod init service-bus-go-how-to-use-queues go get github.com/Azure/azure-sdk-for-go/sdk/azidentity go get github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus ``` -------------------------------- ### Install Azure Queue Storage Package (NPM) Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/storage/queues/storage-quickstart-queues-nodejs.md Install the official Azure Queue Storage client library for JavaScript from npm. This package provides the necessary functionalities to interact with Azure Queue Storage. ```console npm install @azure/storage-queue ``` -------------------------------- ### Install Azure Communication Services Phone Numbers client library for JavaScript Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/communication-services/quickstarts/telephony/includes/number-lookup-js.md This command installs the `@azure/communication-phone-numbers` package from npm, adding it as a dependency to your project's `package.json` file. ```console npm install @azure/communication-phone-numbers@1.3.0 --save ``` -------------------------------- ### Set up basic JavaScript application framework for Job Router Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/communication-services/quickstarts/router/includes/router-quickstart-javascript.md This JavaScript code sets up the basic structure for the quickstart application. It imports the 'JobRouterClient', defines an asynchronous 'main' function to contain the quickstart logic, and includes error handling. ```javascript const JobRouterClient = require('@azure-rest/communication-job-router').default; const main = async () => { console.log("Azure Communication Services - Job Router Quickstart") // Quickstart code goes here }; main().catch((error) => { console.log("Encountered an error"); console.log(error); }) ``` -------------------------------- ### Run Node.js JavaScript Application from Console Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/communication-services/quickstarts/telephony/includes/number-lookup-js.md Execute the provided JavaScript quickstart application using the Node.js runtime from your terminal or command window. This command starts the script `number-lookup-quickstart.js`. ```console node number-lookup-quickstart.js ``` -------------------------------- ### Install Azure Event Hubs Go SDK Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/event-hubs/event-hubs-go-get-started-send.md This command installs the official Azure SDK for Go's messaging package for Event Hubs. It's a necessary step before developing applications that interact with Azure Event Hubs using Go. ```bash go get github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs ``` -------------------------------- ### Install Azure Blob Storage async client library with aiohttp (pip) Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/storage/blobs/storage-blob-python-get-started.md This command installs the Azure Blob Storage client library with asynchronous capabilities by including the `[aio]` optional dependency. This ensures an asynchronous transport, such as `aiohttp`, is also installed, which is required for using the async APIs. ```console pip install azure-storage-blob[aio] ``` -------------------------------- ### Example Python Application Output Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/storage/blobs/storage-quickstart-blobs-python.md View the expected console output after successfully running the Python quickstart application, demonstrating the sequence of operations performed. ```console Azure Blob Storage Python quickstart sample Uploading to Azure Storage as blob: quickstartUUID.txt Listing blobs... quickstartUUID.txt Downloading blob to ./data/quickstartUUIDDOWNLOAD.txt Press the Enter key to begin clean up Deleting blob container... Deleting the local source and downloaded files... Done ``` -------------------------------- ### Build Java Provisioning Sample with Maven (CMD) Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/iot-dps/quick-create-simulated-device-symm-key.md Execute this Maven command within the sample project directory to clean the build artifacts and compile the Java provisioning sample. This step generates the executable JAR file required to run the device provisioning application. ```cmd mvn clean install ``` -------------------------------- ### Install Azure Storage Management .NET Packages Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/storage/common/storage-srp-dotnet-get-started.md This command-line snippet installs the required NuGet packages for a .NET project. It adds Azure.Identity for passwordless authentication and Azure.ResourceManager.Storage for managing Azure Storage accounts and resources. ```console dotnet add package Azure.Identity dotnet add package Azure.ResourceManager.Storage ``` -------------------------------- ### Install and Verify AzAcSnap on Linux Systems Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/azure-netapp-files/azacsnap-installation.md These Linux shell commands guide you through creating a dedicated user, setting up their environment, downloading the AzAcSnap binary, and performing an initial test. This ensures the tool is correctly installed and executable on the system. ```bash useradd -m azacsnap su – azacsnap cd $HOME/bin wget -O azacsnap https://aka.ms/azacsnap-linux azacsnap -c about ``` -------------------------------- ### Run Azure Web PubSub client application Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/azure-web-pubsub/quickstart-use-client-sdk.md Instructions for executing the client application from the terminal. This involves setting the 'WebPubSubClientURL' environment variable with the Client Access URL obtained from the Azure portal, then running the appropriate command for JavaScript or C#. ```bash export WebPubSubClientURL="" node index.js ``` ```bash export WebPubSubClientURL="" dotnet run ``` -------------------------------- ### Install Azure Communication Services Phone Numbers Client Library for .NET Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/communication-services/quickstarts/telephony/includes/number-lookup-net.md This command installs the Azure Communication Services Phone Numbers client library package into your C# project. The `--version` flag specifies the exact package version to install. ```console dotnet add package Azure.Communication.PhoneNumbers --version 1.3.0 ``` -------------------------------- ### Display Azure Trusted Signing Help with Azure CLI Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/trusted-signing/quickstart.md This command provides comprehensive help documentation and lists all available options for the Azure Trusted Signing CLI commands. It's an essential tool for exploring command syntax and parameters. ```azurecli az trustedsigning -h ``` -------------------------------- ### Install Python Package for Azure Service Bus (Connection String) Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/service-bus-messaging/service-bus-python-how-to-use-topics-subscriptions.md Installs the `azure-servicebus` Python package. This package is essential for interacting with Azure Service Bus when using connection string authentication for sending and receiving messages. ```bash pip install azure-servicebus ``` -------------------------------- ### Build and Start GCZ Provider (PowerShell) Source: https://github.com/microsoftdocs/azure-docs/blob/main/articles/energy-data-services/includes/how-to/how-to-deploy-gcz/deploy-gcz-on-windows.md Navigates to the GCZ Provider core directory, installs its Node.js dependencies using `npm install`, and then starts the provider service with `npm start`. The GCZ Provider will then be accessible at `http://localhost:8083` by default. ```powershell cd C:\gcz\gcz-provider\gcz-provider-core npm install npm start ```