### Example: Start an Azure Large Instance Source: https://learn.microsoft.com/en-us/cli/azure/large-instance?view=azure-cli-latest This example demonstrates how to start a specific Azure Large Instance by providing the subscription ID, resource group, and instance name. ```azure-cli az large-instance start --subscription $SUBSCRIPTION_ID --resource-group $RESOURCE_GROUP --instance-name $INSTANCE_NAME ``` -------------------------------- ### Example: Start Storage Account Migration Source: https://learn.microsoft.com/en-us/cli/azure/storage/account/migration This example demonstrates how to start a storage account migration to Standard_ZRS redundancy. It specifies the account name, resource group, and uses the --no-wait flag to return immediately. ```bash az storage account migration start --account-name "storage_account_name" -g "resource_group_name" --sku Standard_ZRS --name default --no-wait ``` -------------------------------- ### Start an Application Gateway Source: https://learn.microsoft.com/en-us/cli/azure/network/application-gateway This example demonstrates how to start a specific application gateway by providing its resource group and name. Ensure you have the necessary permissions and the gateway exists. ```bash az network application-gateway start -g MyResourceGroup -n MyAppGateway ``` -------------------------------- ### Start a replica of WebPubSub Service Source: https://learn.microsoft.com/en-us/cli/azure/webpubsub/replica?view=azure-cli-latest Use this command to start a replica for your WebPubSub Service. Ensure you provide the replica name, service name, and resource group. ```bash az webpubsub replica start --replica-name MyReplica --name MyWebPubSub -g MyResourceGroup ``` -------------------------------- ### Create a BulkDeploySolution Example Source: https://learn.microsoft.com/en-us/cli/azure/workload-orchestration/solution-template Example of how to create a bulk deployment for a solution template. Ensure the targets file and solution template details are correctly specified. ```azurecli az workload-orchestration solution-template bulk-deploy --targets "@targets.json" --name "" --version "" -g ``` -------------------------------- ### Get the detail of a replica Source: https://learn.microsoft.com/en-us/cli/azure/webpubsub/replica?view=azure-cli-latest This example shows how to create a replica with a specified SKU, location, replica name, service name, and resource group. ```azurecli az webpubsub replica create --sku Premium_P1 -l eastus --replica-name MyReplica --name MyWebPubSub -g MyResourceGroup ``` -------------------------------- ### Example: Get Extended Information for a Device Source: https://learn.microsoft.com/en-us/cli/azure/databoxedge/device This example demonstrates how to retrieve extended information for a specific Azure Stack Edge or Data Box Gateway device by providing its name and resource group. Ensure you have the Azure CLI installed and are logged in. ```azurecli az databoxedge device get-extended information --device-name name -g rg ``` -------------------------------- ### Start a virtual machine Source: https://learn.microsoft.com/en-us/cli/azure/connectedvmware/vm Example of how to start a virtual machine using its resource ID, name, resource group, and subscription. Ensure all required parameters are provided for successful execution. ```bash az connectedvmware vm start --ids "resource id" --name "virtual machine name" --resource-group "resource group name" --subscription "Name or ID of subscription" ``` -------------------------------- ### az webpubsub replica start command syntax Source: https://learn.microsoft.com/en-us/cli/azure/webpubsub/replica?view=azure-cli-latest This is the general syntax for the `az webpubsub replica start` command. It lists all available parameters, both required and optional. ```bash az webpubsub replica start [--acquire-policy-token] [--change-reference] [--ids] [--name] [--replica-name] [--resource-group] [--subscription] ``` -------------------------------- ### Create Context Resource Example Source: https://learn.microsoft.com/en-us/cli/azure/workload-orchestration/context Example of creating a context resource with specified resource group, context name, location, capabilities, and hierarchies. Ensure the JSON format for capabilities and hierarchies is correct. ```bash az workload-orchestration context create -g MyResourceGroup -n MyContext --location eastus --capabilities '[{"description":"description","name":"name"}]' --hierarchies '[{"description":"description","name":"name"}]' ``` -------------------------------- ### Get pipeline resource example Source: https://learn.microsoft.com/en-us/cli/azure/data-transfer/pipeline Example of how to get a specific pipeline resource using its resource group and pipeline name. ```azurecli az data-transfer pipeline show --resource-group testRG --pipeline-name testPipeline ``` -------------------------------- ### Start virtual machine Source: https://learn.microsoft.com/en-us/cli/azure/networkcloud/virtualmachine This example demonstrates how to start a virtual machine using its resource group and name. Ensure you replace 'resourceGroupName' and 'virtualMachineName' with your actual resource identifiers. ```bash az networkcloud virtualmachine start --resource-group "resourceGroupName" --name "virtualMachineName" ``` -------------------------------- ### Get webhook configuration example Source: https://learn.microsoft.com/en-us/cli/azure/acr/webhook Example of how to get the configuration information for a specific webhook named 'mywebhook' within the 'myregistry' container registry. ```bash az acr webhook get-config -n mywebhook -r myregistry ``` -------------------------------- ### Create a PostgreSQL Server with All Parameters Source: https://learn.microsoft.com/en-us/cli/azure/postgres/server This example demonstrates creating a PostgreSQL server with a comprehensive set of parameters, including SKU, SSL enforcement, minimal TLS version, network access, backup retention, geo-redundancy, storage size, tags, and version. ```bash az postgres server create -l northeurope -g testgroup -n testsvr -u username -p password \ --sku-name B_Gen5_1 --ssl-enforcement Enabled --minimal-tls-version TLS1_0 --public-network-access Disabled \ --backup-retention 10 --geo-redundant-backup Enabled --storage-size 51200 \ --tags "key=value" --version 11 ``` -------------------------------- ### Create a MySQL server with all parameters Source: https://learn.microsoft.com/en-us/cli/azure/mysql/server?view=azure-cli-latest This example demonstrates creating a MySQL server with all possible configurations, including SSL enforcement, TLS version, network access, backup retention, storage size, tags, and server version. ```bash az mysql server create -l northeurope -g testgroup -n testsvr -u username -p password \ --sku-name B_Gen5_1 --ssl-enforcement Enabled --minimal-tls-version TLS1_0 --public-network-access Disabled \ --backup-retention 10 --geo-redundant-backup Enabled --storage-size 51200 \ --tags "key=value" --version 5.7 ``` -------------------------------- ### az webpubsub replica start Source: https://learn.microsoft.com/en-us/cli/azure/webpubsub/replica?view=azure-cli-latest Start a replica of WebPubSub Service. ```APIDOC ## az webpubsub replica start ### Description Start a replica of WebPubSub Service. ### Method Not applicable (CLI command) ### Endpoint Not applicable (CLI command) ### Parameters (Parameters not explicitly detailed in the source) ### Request Example (Request example not explicitly detailed in the source) ### Response (Response details not explicitly detailed in the source) ``` -------------------------------- ### az webpubsub replica start Source: https://learn.microsoft.com/en-us/cli/azure/webpubsub/replica Start a replica of WebPubSub Service. ```APIDOC ## az webpubsub replica start ### Description Start a replica of WebPubSub Service. ### Method Not specified (CLI command) ### Endpoint Not specified (CLI command) ### Parameters This command requires parameters that are not detailed in the source text. Please refer to the Azure CLI documentation for `az webpubsub replica start` for a full list of parameters. ### Request Example ```bash az webpubsub replica start --name MyReplica --resource-group MyResourceGroup --hub MyHub ``` ### Response Success Response: Indicates successful start. Response Example: ```json { "message": "Replica start initiated." } ``` ``` -------------------------------- ### Get test run details example Source: https://learn.microsoft.com/en-us/cli/azure/load/test-run?view=azure-cli-latest Example of how to get the details of a specific test run by providing the load test resource name, resource group, and test run ID. ```bash az load test-run show --load-test-resource sample-alt-resource --resource-group sample-rg --test-run-id sample-test-run-id ``` -------------------------------- ### Create a VMware Site Example Source: https://learn.microsoft.com/en-us/cli/azure/offazure/vmware/site This example demonstrates how to create a VMware site using the 'az offazure vmware site create' command with essential parameters. ```bash az offazure vmware site create -g MyResourceGroup --site-name MySiteName --location centralus ``` -------------------------------- ### Get MariaDB server configuration example Source: https://learn.microsoft.com/en-us/cli/azure/mariadb/server/configuration?view=azure-cli-latest Example of how to get the configuration for a specific MariaDB server using its name, resource group, and server name. Commonly used with the --output parameter. ```azurecli az mariadb server configuration show --name MyServerConfiguration --resource-group MyResourceGroup --server-name MyServer ``` -------------------------------- ### az webapp start Command Syntax Source: https://learn.microsoft.com/en-us/cli/azure/webapp This is the general syntax for the az webapp start command. It outlines all available parameters. ```bash az webapp start [--acquire-policy-token] [--change-reference] [--ids] [--name] [--resource-group] [--slot] [--subscription] ``` -------------------------------- ### Get Next Hop Example Source: https://learn.microsoft.com/en-us/cli/azure/network/watcher Example of how to get the next hop from a VM's assigned IP address to a specific destination IP. Ensure the resource group and VM name are correctly specified. ```bash az network watcher show-next-hop -g MyResourceGroup --vm MyVm --source-ip 10.0.0.4 --dest-ip 10.1.0.4 ``` -------------------------------- ### Example: Create Application Live View Source: https://learn.microsoft.com/en-us/cli/azure/spring/application-live-view This example demonstrates how to create an Application Live View by specifying the service name and resource group. ```bash az spring application-live-view create -s MyService -g MyResourceGroup ``` -------------------------------- ### Start a Web App Source: https://learn.microsoft.com/en-us/cli/azure/webapp Use this command to start a specific web app. Ensure you provide the correct web app name and resource group. ```bash az webapp start --name MyWebapp --resource-group MyResourceGroup ``` -------------------------------- ### az workloads sap-application-server-instance start Source: https://learn.microsoft.com/en-us/cli/azure/workloads/sap-application-server-instance?view=azure-cli-latest Starts the SAP Application Server Instance. This command allows you to initiate the SAP application server and optionally start its underlying virtual machines. ```APIDOC ## az workloads sap-application-server-instance start ### Description Starts the SAP Application Server Instance. This command allows you to initiate the SAP application server and optionally start its underlying virtual machines. ### Method POST ### Endpoint /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/sapVirtualInstances/{sapVirtualInstanceName}/applicationInstances/{applicationInstanceName}/start ### Parameters #### Path Parameters - **sapVirtualInstanceName** (string) - The name of the Virtual Instances for SAP solutions resource. - **applicationInstanceName** (string) - The name of SAP Application Server instance resource. - **resourceGroupName** (string) - Name of resource group. You can configure the default group using `az configure --defaults group=`. - **subscription** (string) - Name or ID of subscription. You can configure the default subscription using `az account set -s NAME_OR_ID`. #### Query Parameters - **acquire-policy-token** (boolean) - Acquiring an Azure Policy token automatically for this resource operation. - **change-reference** (string) - The related change reference ID for this resource operation. - **start-vm** (boolean) - The boolean value indicates whether to start the virtual machines before starting the SAP instances. Default value: False. - **no-wait** (boolean) - Do not wait for the long-running operation to finish. ### Request Example ``` az workloads sap-application-server-instance start --sap-virtual-instance-name -g -n ``` ### Request Example (with VM start) ``` az workloads sap-application-server-instance start --sap-virtual-instance-name -g -n --start-vm ``` ### Request Example (using resource ID) ``` az workloads sap-application-server-instance start --id ``` ### Response #### Success Response (200) - **operationStatus** (string) - The status of the operation. - **operationId** (string) - The ID of the operation. - **statusMessage** (string) - A message describing the status of the operation. ``` -------------------------------- ### az webpubsub start Command Syntax Source: https://learn.microsoft.com/en-us/cli/azure/webpubsub?view=azure-cli-latest This snippet shows the basic syntax for the 'az webpubsub start' command, outlining its required and optional parameters. ```bash az webpubsub start [--acquire-policy-token] [--change-reference] [--ids] [--name] [--resource-group] [--subscription] ``` -------------------------------- ### Create virtual machine Source: https://learn.microsoft.com/en-us/cli/azure/networkcloud/virtualmachine This example demonstrates how to create a virtual machine with various configurations, including network attachments, storage profiles, SSH keys, and image repository credentials. Ensure all required resource IDs and values are correctly specified. ```bash az networkcloud virtualmachine create --resource-group "resourceGroupName" --name "virtualMachineName" --extended-location name="/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName" type="CustomLocation" --location "location" --admin-username "admin" --boot-method "UEFI" --cloud-services-network-attachment attached-network-id="/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/CloudServicesNetworks/cloudServicesNetworkName" --cpu-cores 2 --memory-size 8 --network-attachments "[{attachedNetworkId:'/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName',defaultGateway:'True',ipAllocationMethod:'Dynamic',ipv4Address:'198.51.100.1',ipv6Address:'2001:0db8:0000:0000:0000:0000:0000:0000',networkAttachmentName:'networkAttachmentName'}]" --network-data-content "bmV0d29ya0RhdGVTYW1wbGU=" --placement-hints "[{hintType:'Affinity',resourceId:'/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName',schedulingExecution:'Hard,scope:''}]" --ssh-key-values "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT= admin@vm" --storage-profile disk-size=120 create-option="Ephemeral" delete-option="Delete" --tags key1="myvalues1" --tags key2="myvalues2" --user-data-content "dXNlckRhdGVTYW1wbGU=" --vm-device-model "T2" --vm-image "myacr.azurecr.io/ubuntu-pw:20.04" --vm-image-repository-credentials password="password" registry-url="myacr.azurecr.io" username="username" ``` -------------------------------- ### Start SAP Application Server Instance Source: https://learn.microsoft.com/en-us/cli/azure/workloads/sap-application-server-instance Starts the SAP Application Server Instance. ```APIDOC ## az workloads sap-application-server-instance start ### Description Starts the SAP Application Server Instance. ### Method POST (implied) ### Endpoint (Not explicitly defined, but implied by CLI command structure) ### Parameters (Not explicitly defined in the provided text) ### Request Example ```bash az workloads sap-application-server-instance start --resource-group --sap-solutions-resource-name --application-instance-name ``` ### Response (Not explicitly defined in the provided text) ``` -------------------------------- ### Example: Create a Site Reference Source: https://learn.microsoft.com/en-us/cli/azure/workload-orchestration/context/site-reference This example demonstrates how to create a site reference using specific resource group, site reference name, context name, and site ID. ```azurecli az workload-orchestration context site-reference create -g {rg} -n {site_reference_name} --context-name {context_name} --site-id {site_id} ``` -------------------------------- ### az webpubsub start Source: https://learn.microsoft.com/en-us/cli/azure/webpubsub Starts a Web PubSub service instance. This command allows you to initiate the operation of a Web PubSub resource. ```APIDOC ## az webpubsub start ### Description Starts a Webpubsub service instance. ### Method CLI Command ### Endpoint N/A (CLI Command) ### Parameters #### Optional Parameters - **--acquire-policy-token** (boolean) - Acquiring an Azure Policy token automatically for this resource operation. - **--change-reference** (string) - The related change reference ID for this resource operation. - **--ids** (array of strings) - One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments. - **--name -n** (string) - Name of the webpubsub. - **--resource-group -g** (string) - Name of resource group. You can configure the default group using `az configure --defaults group=`. - **--subscription** (string) - Name or ID of subscription. You can configure the default subscription using `az account set -s NAME_OR_ID`. ### Global Parameters - **--debug** (boolean) - Increase logging verbosity to show all debug logs. - **--help -h** (boolean) - Show this help message and exit. - **--only-show-errors** (boolean) - Only show errors, suppressing warnings. - **--output -o** (string) - Output format. Default value: json. Accepted values: json, jsonc, none, table, tsv, yaml, yamlc. - **--query** (string) - JMESPath query string. See http://jmespath.org/ for more information and examples. - **--verbose** (boolean) - Increase logging verbosity. Use --debug for full debug logs. ``` -------------------------------- ### Install a solution on a target Source: https://learn.microsoft.com/en-us/cli/azure/workload-orchestration/target?view=azure-cli-latest This command installs a solution on a target. It can be used for a full deployment chain or a direct install. ```azure-cli az workload-orchestration target install [--acquire-policy-token] [--change-reference] [--config --configuration] [--ids] [--name --target-name] [--no-wait {0, 1, f, false, n, no, t, true, y, yes}] [--resource-group] [--solution-template-name] [--solution-template-resource-group --solution-template-rg] [--solution-template-version --version] [--solution-version-id] [--subscription] ``` -------------------------------- ### Get SQL DB Classification Example Source: https://learn.microsoft.com/en-us/cli/azure/sql/db/classification Example of how to get the sensitivity classification for a specific column in an Azure SQL Database. Ensure you have the correct resource group, server, database, schema, table, and column names. ```bash az sql db classification show -g mygroup -s myserver -n mydb --schema dbo --table mytable --column mycolumn ``` -------------------------------- ### Show build service example Source: https://learn.microsoft.com/en-us/cli/azure/spring/build-service?view=azure-cli-latest Example of how to show a specific build service by providing the service name and resource group. ```bash az spring build-service show --service clitest --resource-group cli ``` -------------------------------- ### Create a Target Resource Example Source: https://learn.microsoft.com/en-us/cli/azure/workload-orchestration/target An example demonstrating how to create a Target Resource using the 'az workload-orchestration target create' command with specified parameters. ```azurecli az workload-orchestration target create -g {rg} -n {target_name} --location {location} --capabilities {capabilities} --description {description} --display-name {display_name} --hierarchy-level {hierarchy_level} --solution-scope {solution_scope} --state {state} --target-specification {target_specification} ``` -------------------------------- ### Start a Disk Pool Source: https://learn.microsoft.com/en-us/cli/azure/disk-pool?view=azure-cli-latest This example demonstrates how to start a Disk Pool using its name and resource group. ```APIDOC ## az disk-pool start ### Description The operation to start a Disk Pool. This start operation can take 10 minutes to complete. This is expected service behavior. ### Method ``` az disk-pool start [--acquire-policy-token] [--change-reference] [--disk-pool-name --name] [--ids] [--no-wait] [--resource-group] [--subscription] ``` ### Parameters #### Path Parameters This command does not have path parameters. #### Query Parameters * **--acquire-policy-token** (boolean) - Acquiring an Azure Policy token automatically for this resource operation. * **--change-reference** (string) - The related change reference ID for this resource operation. * **--disk-pool-name --name -n** (string) - The name of the Disk Pool. * **--ids** (array) - One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments. * **--no-wait** (boolean) - Do not wait for the long-running operation to finish. * **--resource-group -g** (string) - Name of resource group. You can configure the default group using `az configure --defaults group=`. * **--subscription** (string) - Name or ID of subscription. You can configure the default subscription using `az account set -s NAME_OR_ID`. ### Request Example ```bash az disk-pool start --name "myDiskPool" --resource-group "myResourceGroup" ``` ### Response This command does not explicitly define success or error response formats in the provided documentation. ``` -------------------------------- ### Connector Configuration Examples Source: https://learn.microsoft.com/en-us/cli/azure/iot/ops/connector/template?view=azure-cli-latest Demonstrates how to provide space-separated connector-specific key-value configurations. Shows examples for setting broker address, QoS, and keep-alive, as well as clearing existing configurations. ```bash --cc brokerAddress=mqtt://broker:1883 qos=1 keepAlive=60 OR --cc brokerAddress=mqtt://broker:1883 --cc qos=1 --cc keepAlive=60. Use '' to clear existing configurations. ``` -------------------------------- ### Start an SAP system with Virtual Machines Source: https://learn.microsoft.com/en-us/cli/azure/workloads/sap-virtual-instance Starts the SAP application tier and its associated virtual machines. ```azurecli az workloads sap-virtual-instance start -g -n --start-vm ``` -------------------------------- ### Example: List VNet Integrations for a Web App Source: https://learn.microsoft.com/en-us/cli/azure/webapp/vnet-integration This example shows how to list the virtual network integrations for a specific web app within a resource group. The `--slot` parameter is optional. ```bash az webapp vnet-integration list -g MyResourceGroup -n MyWebapp -s [slot] ``` -------------------------------- ### Get route table details example Source: https://learn.microsoft.com/en-us/cli/azure/network/route-table This example demonstrates how to get the details of a specific route table named 'MyRouteTable' within the resource group 'MyResourceGroup'. Ensure you have the correct resource group and route table names. ```bash az network route-table show -g MyResourceGroup -n MyRouteTable ``` -------------------------------- ### Create a new VM with template overrides Source: https://learn.microsoft.com/en-us/cli/azure/scvmm/vm This example demonstrates creating a new VM with specific overrides for CPU count, memory size, dynamic memory settings, disk configuration, and network interface. This allows for fine-tuning the VM's hardware and network settings during creation. ```bash az scvmm vm create --subscription contoso-sub --resource-group contoso-rg --location eastus --custom-location contoso-cl --vm-template contoso-vmtemplate --cloud contoso-cloud --name contoso-vm --cpu-count 2 --memory-size 2048 --dynamic-memory-enabled true --disk name=disk_1 disk-size=2 bus=0 --nic name=nic_1 network=contoso-vnet ``` -------------------------------- ### Get Active Directory administrator example Source: https://learn.microsoft.com/en-us/cli/azure/mysql/flexible-server/ad-admin Example of how to get the Active Directory administrator for a specific Azure Database for MySQL flexible server. Ensure you replace 'testgroup' and 'testsvr' with your actual resource group and server names. ```azurecli az mysql flexible-server ad-admin show -g testgroup -s testsvr ``` -------------------------------- ### Create an instance with minimum configuration Source: https://learn.microsoft.com/en-us/cli/azure/iot/du/instance?view=azure-cli-latest Use this example to create a Device Update instance with only the essential parameters. ```bash az iot du instance create -n {account_name} -i {instance_name} --iothub-ids {iothub_resource_id} ``` -------------------------------- ### Example: List VM Sizes Source: https://learn.microsoft.com/en-us/cli/azure/aksarc/vmsize This example demonstrates how to list virtual machine sizes for a custom location named 'sample-cl' within the resource group 'sample-rg'. ```bash az aksarc vmsize list -g sample-rg --custom-location sample-cl ``` -------------------------------- ### Get Storage TaskAssignment Source: https://learn.microsoft.com/en-us/cli/azure/storage/account/task-assignment?view=azure-cli-latest This example demonstrates how to get the properties of a storage task assignment using the Azure CLI. ```APIDOC ## az storage account task-assignment show ### Description Get the storage task assignment properties. ### Method GET ### Endpoint ``` az storage account task-assignment show [--account-name] [--ids] [--name --storage-task-assignment-name] [--resource-group] [--subscription] ``` ### Parameters #### Path Parameters None #### Query Parameters * **--account-name** (string) - The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. * **--ids** (string) - One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments. * **--name --storage-task-assignment-name -n** (string) - The name of the storage task assignment within the specified resource group. Storage task assignment names must be between 3 and 24 characters in length and use numbers and lower-case letters only. * **--resource-group -g** (string) - Name of resource group. You can configure the default group using `az configure --defaults group=`. * **--subscription** (string) - Name or ID of subscription. You can configure the default subscription using `az account set -s NAME_OR_ID`. ### Request Example ``` az storage account task-assignment show -g rg_name -n task_assignment_name --account-name storage_account_name ``` ### Response #### Success Response (200) Details about the storage task assignment properties would be returned here. (Specific schema not provided in source) #### Response Example (Example response not provided in source) ``` -------------------------------- ### Example: List Contexts by Subscription Source: https://learn.microsoft.com/en-us/cli/azure/workload-orchestration/context This example demonstrates how to list all workload orchestration contexts available within the current Azure subscription. No specific parameters are required for a basic listing. ```azurecli az workload-orchestration context list-subscriptions ``` -------------------------------- ### Start Cloud HSM Restore Example Source: https://learn.microsoft.com/en-us/cli/azure/cloudhsm/restore?view=azure-cli-latest This example demonstrates how to start a Cloud HSM restore operation. Ensure you replace the placeholder values with your actual resource group, cluster name, backup ID, and blob container URI. ```azure-cli az cloudhsm restore start --resource-group rgcloudhsm --cluster-name chsm1 --backup-id cloudhsm-eb0e0bf9-9d12-4201-b38c-567c8a452dd5-2025052912032456 --blob-container-uri https://myaccount.blob.core.windows.net/sascontainer/sasContainer ``` -------------------------------- ### Create an instance with diagnostics and tags Source: https://learn.microsoft.com/en-us/cli/azure/iot/du/instance?view=azure-cli-latest This example demonstrates creating a Device Update instance with diagnostics enabled and a user-provided storage account, including resource tags. ```bash az iot du instance create -n {account_name} -i {instance_name} --iothub-ids {iothub_resource_id} --enable-diagnostics --diagnostics-storage-id {storage_account_resource_id} --tags a=b ``` -------------------------------- ### Get Map Operations Example Source: https://learn.microsoft.com/en-us/cli/azure/maps/map An example of how to execute the 'az maps map list-operation' command to retrieve a list of available operations. This is a basic usage example. ```Azure CLI az maps map list-operation ``` -------------------------------- ### Create deployment stack with parameters from key/value pairs Source: https://learn.microsoft.com/en-us/cli/azure/stack/mg This example demonstrates creating a deployment stack using a template file and providing parameters directly as key-value pairs, with resources deleted on unmanage. ```bash az stack mg create --name StackName --management-group-id myMg --template-file simpleTemplate.json --location westus --description description --parameters simpleTemplateParams.json value1=foo value2=bar --deny-settings-mode None --action-on-unmanage deleteResources ``` -------------------------------- ### Start SAP HANA Database Instance Source: https://learn.microsoft.com/en-us/cli/azure/workloads/sap-database-instance Use this command to start the database instance of an SAP system. This action is currently supported for SAP HANA Database only. ```azurecli az workloads sap-database-instance start --sap-virtual-instance-name -g -n ``` -------------------------------- ### Get Reservation History Example Source: https://learn.microsoft.com/en-us/cli/azure/reservations/reservation This example demonstrates how to retrieve the history of a specific reservation by providing its ID and order ID. ```bash az reservations reservation list-history --reservation-id 50000000-aaaa-bbbb-cccc-100000000002 --reservation-order-id 10000000-aaaa-bbbb-cccc-100000000005 ``` -------------------------------- ### Create Data Product with All Parameters Source: https://learn.microsoft.com/en-us/cli/azure/network-analytics/data-product?view=azure-cli-latest Example demonstrating how to create a data product with a comprehensive set of parameters, including encryption, network access, and identity configurations. ```azure-cli az network-analytics data-product create --name dpname --resource-group rgname --location westcentralus --publisher Microsoft --product MCC --major-version 2.0.0 --owners xyz@email --customer-managed-key-encryption-enabled Enabled --key-encryption-enable Enabled --encryption-key '{"keyVaultUri":"","keyName":"","keyVersion":""}' --managed-rg '{"location":"westcentralus","name":""}' --networkacls '{"virtualNetworkRule":[{"id":"","action":"","state":""}],"ipRules":[{"value":"","action":""}],"allowedQueryIpRangeList":["1.2.3.4-1.2.3.10"],"defaultAction":"Allow"}' --private-links-enabled Enabled --public-network-access Enabled --purview-account perviewaccount --purview-collection collection --redundancy Enabled --identity '{"type":"userAssigned","userAssignedIdentities":{"/subscriptions//resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/"}}' --tags '{"key1":"value1","key2":"value2"}' ``` -------------------------------- ### Get LocalRulesResource Example Source: https://learn.microsoft.com/en-us/cli/azure/palo-alto/cloudngfw/local-rulestack/local-rule Example of how to retrieve a specific LocalRulesResource using its resource group, local rulestack name, and priority. ```bash az palo-alto cloudngfw local-rulestack local-rule show -g MyResourceGroup --local-rulestack-name MyLocalRulestacks --priority "1" ``` -------------------------------- ### Show batch configuration example Source: https://learn.microsoft.com/en-us/cli/azure/logic/integration-account/batch-configuration This example demonstrates how to show a specific batch configuration by providing the resource group, batch configuration name, and integration account name. ```bash az logic integration-account batch-configuration show -g rg -n batch --integration-account-name name ```