func GetTimeSeriesInsightsGen2Environment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TimeSeriesInsightsGen2EnvironmentState, opts ...pulumi.ResourceOption) (*TimeSeriesInsightsGen2Environment, error) {
	var resource TimeSeriesInsightsGen2Environment
	err := ctx.ReadResource("azure:iot/timeSeriesInsightsGen2Environment:TimeSeriesInsightsGen2Environment", name, id, state, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// GetTimeSeriesInsightsGen2Environment gets an existing TimeSeriesInsightsGen2Environment resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
GetTimeSeriesInsightsGen2Environment gets an existing TimeSeriesInsightsGen2Environment resource's state with the given name, ID, and optional
state properties that are used to uniquely qualify the lookup (nil if not required).
// GetTimeSeriesInsightsGen2Environment gets an existing TimeSeriesInsightsGen2Environment resource ' s state with the given name ID and optional // state properties that are used to uniquely qualify the lookup ( nil if not required ) .
func GetTimeSeriesInsightsGen2Environment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TimeSeriesInsightsGen2EnvironmentState, opts ...pulumi.ResourceOption) (*TimeSeriesInsightsGen2Environment, error) {
	var resource TimeSeriesInsightsGen2Environment
	err := ctx.ReadResource("azure:iot/timeSeriesInsightsGen2Environment:TimeSeriesInsightsGen2Environment", name, id, state, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func GetTimeSeriesInsightsGen2Environment ( ctx * pulumi . Context , name string , id pulumi . IDInput , state * TimeSeriesInsightsGen2EnvironmentState , opts ... pulumi . ResourceOption ) ( * TimeSeriesInsightsGen2Environment , error ) { var resource TimeSeriesInsightsGen2Environment err := ctx . ReadResource ( " " , name , id , state , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
GetTimeSeriesInsightsGen2Environment gets an existing TimeSeriesInsightsGen2Environment resource's state with the given name, ID, and optional
state properties that are used to uniquely qualify the lookup (nil if not required).
GetTimeSeriesInsightsGen2Environment gets an existing TimeSeriesInsightsGen2Environment resource ' s state with the given name ID and optional state properties that are used to uniquely qualify the lookup ( nil if not required ) .