/// <summary> /// ProcessRecord /// </summary> protected override void ProcessRecord() { if (string.IsNullOrEmpty(ContentType)) { ContentType = "txt"; } if (string.IsNullOrEmpty(Enabled)) { Enabled = "true"; } string Id = Guid.NewGuid().ToString().Replace("-", ""); KeyVaultSecretHelper.NewItemThrow(Id, VaultName, Name, Version, Enabled, Expires, NotBefore, ContentType, Tags, SecretValue); }