Skip to content

Remove-AzPrivateDnsRecordSet outputs unformatted verbose string #11798

@abatishchev

Description

@abatishchev

Description

Calling Remove-AzPrivateDnsRecordSet with -Verbose outputs the format string, not a formatted string.

Steps to reproduce

Remove-AzPrivateDnsRecordSet -ResourceGroupName $resourceGroup `
                             -ZoneName $zoneName `
                             -Name $recordName `
                             -RecordType A `
                             -Verbose

Actual outcome

VERBOSE: Performing the operation "Removing record set ..." on target "contoso".
VERBOSE: Success!
VERBOSE: Record set '{0}' was removed from Private DNS zone '{1}'.

Expected outcome

VERBOSE: Performing the operation "Removing record set ..." on target "contoso".
VERBOSE: Success!
VERBOSE: Record set 'contoso' was removed from Private DNS zone 'example.local'.

Environment data

Name                           Value
----                           -----
PSVersion                      7.0.0
PSEdition                      Core
GitCommitId                    7.0.0
OS                             Microsoft Windows 10.0.18363
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.

Module versions

Script     1.0.2                 Az.PrivateDns

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions