public override void ExecuteCmdlet() { try { ResourceIdentifier resourceIdentifier = new ResourceIdentifier(VaultId); string vaultName = resourceIdentifier.ResourceName; string resourceGroupName = resourceIdentifier.ResourceGroupName; var resourceGuardMappingList = ServiceClientAdapter.ListResourceGuardMapping(vaultName, resourceGroupName); WriteObject(resourceGuardMappingList, enumerateCollection: true); } catch (Exception exception) { WriteExceptionError(exception); } }