rdb Storage Connection String
Parameters
value
The Connection String to the Storage Account. Only supported for Premium SKUs. In the format: DefaultEndpointsProtocol=https;BlobEndpoint=${azurerm_storage_account.example.primary_blob_endpoint};AccountName=${azurerm_storage_account.example.name};AccountKey=${azurerm_storage_account.example.primary_access_key}
.
NOTE: There's a bug in the Redis API where the original storage connection string isn't being returned, which is being tracked in this issue. In the interim you can use the
ignoreChanges
attribute to ignore changes to this field e.g.:
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.redis.Cache;
import com.pulumi.azure.redis.CacheArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Cache("example", CacheArgs.builder()
.ignoreChanges(redis_configuration[0].rdb_storage_connection_string())
.build());
}
}
Content copied to clipboard
resources:
example:
type: azure:redis:Cache
properties:
# ...
ignoreChanges:
- ${redis_configuration[0].rdb_storage_connection_string}
Content copied to clipboard