Skip to content

SecurityDataUri argument unknow of New-AzDiskConfig #28716

@litian1992

Description

@litian1992

Description

I want to create an OS disk for a confidential VM. Additionally, I want to attach VMGS to it.

Issue script & Debug output

New-AzDiskConfig -SecurityDataUri "https://lisav2cvmeastus.blob.core.windows.net/vhds/XXX-vmgs.vhd" -CreateOption ImportSecure -SourceUri "https://lisav2cvmeastus.blob.core.windows.net/vhds/XXX.vhd" -HyperVGeneration V2 -Architecture X64 -OsType Linux

Environment data

> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.19041.6456
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.6456
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Module versions

> get-installedmodule -name Az

Version    Name                                Repository           Description
-------    ----                                ----------           -----------
14.5.0     Az                                  PSGallery            Microsoft Azure PowerShell - Cmdlet...

Error output

New-AzDiskConfig : A parameter cannot be found that matches parameter name 'SecurityDataUri'.
At line:1 char:23
+ $a = New-AzDiskConfig -SecurityDataUri "https://lisav2cvmeastus.blob. ...
+                       ~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [New-AzDiskConfig], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.Azure.Commands.Compute.Automation.NewAzure
   RmDiskConfigCommand

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reported

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions