"New-AzDiskConfig"

Hongbo Yang 20 Reputation points
2024-02-06T07:27:13.5066667+00:00

When I type "$diskConfig = New-AzDiskConfig", there is no prompt for input. The training vidoe is different. Why?

Azure Training
Azure Training
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Training: Instruction to develop new skills.
1,730 questions
{count} votes

Accepted answer
  1. Abdul 2,615 Reputation points Microsoft Vendor
    2024-02-06T12:39:55.4333333+00:00

    Hi Hongbo Yang,

    Thank you for your presence on the Microsoft Q&A forum. It seems you're currently undertaking the following exercise as part of the Learn path.

    As you mentioned that the Input parameters for the command $diskConfig = "New-AzDiskConfig" will be prompted once the command is terminated with the backtick (`) symbol, as illustrated below:

    $diskConfig = New-AzDiskConfig `
      >> -Location eastus2 `
      >> -CreateOption Empty `
      >> -DiskSizeGB 16 `
      >> -Sku Standard_LRS
    
    

    The backtick (`) at the end of the "New-AzDiskConfig" command indicates that input parameters will be requested once the command concludes.

    Note: backtick (`). On a standard keyboard layout, it is typically located on the same key as the tilde (~), usually to the left of the 1 key on the top row.

    Input was successfully provided in the prompt from my end. Below is a Screenshot for your reference.

    User's image

    If you encounter any further difficulties, please feel free to share screenshots for reference in the comments below. We're here to assist you.

    If the provided solution has proven effective, please consider marking it as accepted by clicking on "Accept answer". Your action will help increase the exposure of this question, facilitating assistance for other members on Microsoft Q&A.

    Thank you.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.